diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index b5c21e15cedd..03f98fd9fe02 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -15,7 +15,7 @@ google-cloud-pom-parent com.google.cloud - 1.74.0 + 1.74.1 ../google-cloud-pom-parent/pom.xml @@ -24,119 +24,119 @@ com.google.analytics google-analytics-admin-bom - 0.90.0 + 0.91.0-SNAPSHOT pom import com.google.analytics google-analytics-data-bom - 0.91.0 + 0.92.0-SNAPSHOT pom import com.google.area120 google-area120-tables-bom - 0.84.0 + 0.85.0-SNAPSHOT pom import com.google.cloud google-cloud-accessapproval-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-advisorynotifications-bom - 0.69.0 + 0.70.0-SNAPSHOT pom import com.google.cloud google-cloud-aiplatform-bom - 3.81.0 + 3.82.0-SNAPSHOT pom import com.google.cloud google-cloud-alloydb-bom - 0.69.0 + 0.70.0-SNAPSHOT pom import com.google.cloud google-cloud-alloydb-connectors-bom - 0.58.0 + 0.59.0-SNAPSHOT pom import com.google.cloud google-cloud-analyticshub-bom - 0.77.0 + 0.78.0-SNAPSHOT pom import com.google.cloud google-cloud-api-gateway-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-apigee-connect-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-apigee-registry-bom - 0.80.0 + 0.81.0-SNAPSHOT pom import com.google.cloud google-cloud-apihub-bom - 0.33.0 + 0.34.0-SNAPSHOT pom import com.google.cloud google-cloud-apikeys-bom - 0.78.0 + 0.79.0-SNAPSHOT pom import com.google.cloud google-cloud-appengine-admin-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-apphub-bom - 0.44.0 + 0.45.0-SNAPSHOT pom import com.google.cloud google-cloud-artifact-registry-bom - 1.79.0 + 1.80.0-SNAPSHOT pom import @@ -150,1264 +150,1264 @@ com.google.cloud google-cloud-assured-workloads-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-automl-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-backupdr-bom - 0.39.0 + 0.40.0-SNAPSHOT pom import com.google.cloud google-cloud-bare-metal-solution-bom - 0.80.0 + 0.81.0-SNAPSHOT pom import com.google.cloud google-cloud-batch-bom - 0.80.0 + 0.81.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.78.0 + 0.79.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.78.0 + 0.79.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.78.0 + 0.79.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.78.0 + 0.79.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.78.0 + 0.79.0-SNAPSHOT pom import com.google.cloud google-cloud-biglake-bom - 0.68.0 + 0.69.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.75.0 + 2.76.0-SNAPSHOT pom import com.google.cloud google-cloud-bigqueryconnection-bom - 2.82.0 + 2.83.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.77.0 + 0.78.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerymigration-bom - 0.83.0 + 0.84.0-SNAPSHOT pom import com.google.cloud google-cloud-bigqueryreservation-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-billing-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-billingbudgets-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-binary-authorization-bom - 1.79.0 + 1.80.0-SNAPSHOT pom import com.google.cloud google-cloud-build-bom - 3.82.0 + 3.83.0-SNAPSHOT pom import com.google.cloud google-cloud-capacityplanner-bom - 0.3.0 + 0.4.0-SNAPSHOT pom import com.google.cloud google-cloud-certificate-manager-bom - 0.83.0 + 0.84.0-SNAPSHOT pom import com.google.cloud google-cloud-channel-bom - 3.84.0 + 3.85.0-SNAPSHOT pom import com.google.cloud google-cloud-chat-bom - 0.44.0 + 0.45.0-SNAPSHOT pom import com.google.cloud google-cloud-chronicle-bom - 0.18.0 + 0.19.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.78.0 + 0.79.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.44.0 + 0.45.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudquotas-bom - 0.48.0 + 0.49.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudsecuritycompliance-bom - 0.7.0 + 0.8.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudsupport-bom - 0.64.0 + 0.65.0-SNAPSHOT pom import com.google.cloud google-cloud-compute-bom - 1.90.0 + 1.91.0-SNAPSHOT pom import com.google.cloud google-cloud-confidentialcomputing-bom - 0.66.0 + 0.67.0-SNAPSHOT pom import com.google.cloud google-cloud-configdelivery-bom - 0.14.0 + 0.15.0-SNAPSHOT pom import com.google.cloud google-cloud-connectgateway-bom - 0.32.0 + 0.33.0-SNAPSHOT pom import com.google.cloud google-cloud-contact-center-insights-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-container-bom - 2.83.0 + 2.84.0-SNAPSHOT pom import com.google.cloud google-cloud-containeranalysis-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-contentwarehouse-bom - 0.76.0 + 0.77.0-SNAPSHOT pom import com.google.cloud google-cloud-data-fusion-bom - 1.80.0 + 1.81.0-SNAPSHOT pom import com.google.cloud google-cloud-databasecenter-bom - 0.1.0 + 0.2.0-SNAPSHOT pom import com.google.cloud google-cloud-datacatalog-bom - 1.86.0 + 1.87.0-SNAPSHOT pom import com.google.cloud google-cloud-dataflow-bom - 0.84.0 + 0.85.0-SNAPSHOT pom import com.google.cloud google-cloud-dataform-bom - 0.79.0 + 0.80.0-SNAPSHOT pom import com.google.cloud google-cloud-datalabeling-bom - 0.200.0 + 0.201.0-SNAPSHOT pom import com.google.cloud google-cloud-datalineage-bom - 0.72.0 + 0.73.0-SNAPSHOT pom import com.google.cloud google-cloud-dataplex-bom - 1.78.0 + 1.79.0-SNAPSHOT pom import com.google.cloud google-cloud-dataproc-bom - 4.77.0 + 4.78.0-SNAPSHOT pom import com.google.cloud google-cloud-dataproc-metastore-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-datastream-bom - 1.79.0 + 1.80.0-SNAPSHOT pom import com.google.cloud google-cloud-deploy-bom - 1.78.0 + 1.79.0-SNAPSHOT pom import com.google.cloud google-cloud-developerconnect-bom - 0.37.0 + 0.38.0-SNAPSHOT pom import com.google.cloud google-cloud-devicestreaming-bom - 0.20.0 + 0.21.0-SNAPSHOT pom import com.google.cloud google-cloud-dialogflow-bom - 4.86.0 + 4.87.0-SNAPSHOT pom import com.google.cloud google-cloud-dialogflow-cx-bom - 0.91.0 + 0.92.0-SNAPSHOT pom import com.google.cloud google-cloud-discoveryengine-bom - 0.76.0 + 0.77.0-SNAPSHOT pom import com.google.cloud google-cloud-distributedcloudedge-bom - 0.77.0 + 0.78.0-SNAPSHOT pom import com.google.cloud google-cloud-dlp-bom - 3.84.0 + 3.85.0-SNAPSHOT pom import com.google.cloud google-cloud-dms-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-dns - 2.78.0 + 2.79.0-SNAPSHOT com.google.cloud google-cloud-document-ai-bom - 2.84.0 + 2.85.0-SNAPSHOT pom import com.google.cloud google-cloud-domains-bom - 1.77.0 + 1.78.0-SNAPSHOT pom import com.google.cloud google-cloud-edgenetwork-bom - 0.48.0 + 0.49.0-SNAPSHOT pom import com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.76.0 + 0.77.0-SNAPSHOT pom import com.google.cloud google-cloud-errorreporting-bom - 0.201.0-beta + 0.202.0-beta-SNAPSHOT pom import com.google.cloud google-cloud-essential-contacts-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-eventarc-bom - 1.80.0 + 1.81.0-SNAPSHOT pom import com.google.cloud google-cloud-eventarc-publishing-bom - 0.80.0 + 0.81.0-SNAPSHOT pom import com.google.cloud google-cloud-filestore-bom - 1.81.0 + 1.82.0-SNAPSHOT pom import com.google.cloud google-cloud-financialservices-bom - 0.21.0 + 0.22.0-SNAPSHOT pom import com.google.cloud google-cloud-functions-bom - 2.82.0 + 2.83.0-SNAPSHOT pom import com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.35.0 + 0.36.0-SNAPSHOT pom import com.google.cloud google-cloud-geminidataanalytics-bom - 0.8.0 + 0.9.0-SNAPSHOT pom import com.google.cloud google-cloud-gke-backup-bom - 0.79.0 + 0.80.0-SNAPSHOT pom import com.google.cloud google-cloud-gke-connect-gateway-bom - 0.81.0 + 0.82.0-SNAPSHOT pom import com.google.cloud google-cloud-gke-multi-cloud-bom - 0.79.0 + 0.80.0-SNAPSHOT pom import com.google.cloud google-cloud-gkehub-bom - 1.80.0 + 1.81.0-SNAPSHOT pom import com.google.cloud google-cloud-gsuite-addons-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-iamcredentials-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-iap-bom - 0.36.0 + 0.37.0-SNAPSHOT pom import com.google.cloud google-cloud-ids-bom - 1.79.0 + 1.80.0-SNAPSHOT pom import com.google.cloud google-cloud-infra-manager-bom - 0.57.0 + 0.58.0-SNAPSHOT pom import com.google.cloud google-cloud-iot-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-kms-bom - 2.83.0 + 2.84.0-SNAPSHOT pom import com.google.cloud google-cloud-kmsinventory-bom - 0.69.0 + 0.70.0-SNAPSHOT pom import com.google.cloud google-cloud-language-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-licensemanager-bom - 0.13.0 + 0.14.0-SNAPSHOT pom import com.google.cloud google-cloud-life-sciences-bom - 0.82.0 + 0.83.0-SNAPSHOT pom import com.google.cloud google-cloud-live-stream-bom - 0.82.0 + 0.83.0-SNAPSHOT pom import com.google.cloud google-cloud-locationfinder-bom - 0.5.0 + 0.6.0-SNAPSHOT pom import com.google.cloud google-cloud-lustre-bom - 0.20.0 + 0.21.0-SNAPSHOT pom import com.google.cloud google-cloud-maintenance-bom - 0.14.0 + 0.15.0-SNAPSHOT pom import com.google.cloud google-cloud-managed-identities-bom - 1.78.0 + 1.79.0-SNAPSHOT pom import com.google.cloud google-cloud-managedkafka-bom - 0.36.0 + 0.37.0-SNAPSHOT pom import com.google.cloud google-cloud-mediatranslation-bom - 0.86.0 + 0.87.0-SNAPSHOT pom import com.google.cloud google-cloud-meet-bom - 0.47.0 + 0.48.0-SNAPSHOT pom import com.google.cloud google-cloud-memcache-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-migrationcenter-bom - 0.62.0 + 0.63.0-SNAPSHOT pom import com.google.cloud google-cloud-modelarmor-bom - 0.21.0 + 0.22.0-SNAPSHOT pom import com.google.cloud google-cloud-monitoring-bom - 3.81.0 + 3.82.0-SNAPSHOT pom import com.google.cloud google-cloud-monitoring-dashboard-bom - 2.82.0 + 2.83.0-SNAPSHOT pom import com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.74.0 + 0.75.0-SNAPSHOT pom import com.google.cloud google-cloud-netapp-bom - 0.59.0 + 0.60.0-SNAPSHOT pom import com.google.cloud google-cloud-network-management-bom - 1.81.0 + 1.82.0-SNAPSHOT pom import com.google.cloud google-cloud-network-security-bom - 0.83.0 + 0.84.0-SNAPSHOT pom import com.google.cloud google-cloud-networkconnectivity-bom - 1.79.0 + 1.80.0-SNAPSHOT pom import com.google.cloud google-cloud-networkservices-bom - 0.36.0 + 0.37.0-SNAPSHOT pom import com.google.cloud google-cloud-notebooks-bom - 1.78.0 + 1.79.0-SNAPSHOT pom import com.google.cloud google-cloud-notification - 0.198.0-beta + 0.199.0-beta-SNAPSHOT com.google.cloud google-cloud-optimization-bom - 1.78.0 + 1.79.0-SNAPSHOT pom import com.google.cloud google-cloud-oracledatabase-bom - 0.29.0 + 0.30.0-SNAPSHOT pom import com.google.cloud google-cloud-orchestration-airflow-bom - 1.80.0 + 1.81.0-SNAPSHOT pom import com.google.cloud google-cloud-orgpolicy-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-os-config-bom - 2.82.0 + 2.83.0-SNAPSHOT pom import com.google.cloud google-cloud-os-login-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-parallelstore-bom - 0.43.0 + 0.44.0-SNAPSHOT pom import com.google.cloud google-cloud-parametermanager-bom - 0.24.0 + 0.25.0-SNAPSHOT pom import com.google.cloud google-cloud-phishingprotection-bom - 0.111.0 + 0.112.0-SNAPSHOT pom import com.google.cloud google-cloud-policy-troubleshooter-bom - 1.79.0 + 1.80.0-SNAPSHOT pom import com.google.cloud google-cloud-policysimulator-bom - 0.59.0 + 0.60.0-SNAPSHOT pom import com.google.cloud google-cloud-private-catalog-bom - 0.82.0 + 0.83.0-SNAPSHOT pom import com.google.cloud google-cloud-privilegedaccessmanager-bom - 0.34.0 + 0.35.0-SNAPSHOT pom import com.google.cloud google-cloud-profiler-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-publicca-bom - 0.77.0 + 0.78.0-SNAPSHOT pom import com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.63.0 + 0.64.0-SNAPSHOT pom import com.google.cloud google-cloud-recaptchaenterprise-bom - 3.77.0 + 3.78.0-SNAPSHOT pom import com.google.cloud google-cloud-recommendations-ai-bom - 0.87.0 + 0.88.0-SNAPSHOT pom import com.google.cloud google-cloud-recommender-bom - 2.82.0 + 2.83.0-SNAPSHOT pom import com.google.cloud google-cloud-redis-bom - 2.83.0 + 2.84.0-SNAPSHOT pom import com.google.cloud google-cloud-redis-cluster-bom - 0.52.0 + 0.53.0-SNAPSHOT pom import com.google.cloud google-cloud-resourcemanager-bom - 1.82.0 + 1.83.0-SNAPSHOT pom import com.google.cloud google-cloud-retail-bom - 2.82.0 + 2.83.0-SNAPSHOT pom import com.google.cloud google-cloud-run-bom - 0.80.0 + 0.81.0-SNAPSHOT pom import com.google.cloud google-cloud-saasservicemgmt-bom - 0.10.0 + 0.11.0-SNAPSHOT pom import com.google.cloud google-cloud-scheduler-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-secretmanager-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-securesourcemanager-bom - 0.50.0 + 0.51.0-SNAPSHOT pom import com.google.cloud google-cloud-security-private-ca-bom - 2.82.0 + 2.83.0-SNAPSHOT pom import com.google.cloud google-cloud-securitycenter-bom - 2.88.0 + 2.89.0-SNAPSHOT pom import com.google.cloud google-cloud-securitycenter-settings-bom - 0.83.0 + 0.84.0-SNAPSHOT pom import com.google.cloud google-cloud-securitycentermanagement-bom - 0.48.0 + 0.49.0-SNAPSHOT pom import com.google.cloud google-cloud-securityposture-bom - 0.45.0 + 0.46.0-SNAPSHOT pom import com.google.cloud google-cloud-service-control-bom - 1.80.0 + 1.81.0-SNAPSHOT pom import com.google.cloud google-cloud-service-management-bom - 3.78.0 + 3.79.0-SNAPSHOT pom import com.google.cloud google-cloud-service-usage-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-servicedirectory-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-servicehealth-bom - 0.47.0 + 0.48.0-SNAPSHOT pom import com.google.cloud google-cloud-shell-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-spanneradapter-bom - 0.16.0 + 0.17.0-SNAPSHOT pom import com.google.cloud google-cloud-speech-bom - 4.75.0 + 4.76.0-SNAPSHOT pom import com.google.cloud google-cloud-storage-transfer-bom - 1.80.0 + 1.81.0-SNAPSHOT pom import com.google.cloud google-cloud-storagebatchoperations-bom - 0.20.0 + 0.21.0-SNAPSHOT pom import com.google.cloud google-cloud-storageinsights-bom - 0.65.0 + 0.66.0-SNAPSHOT pom import com.google.cloud google-cloud-talent-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-tasks-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-telcoautomation-bom - 0.50.0 + 0.51.0-SNAPSHOT pom import com.google.cloud google-cloud-texttospeech-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-tpu-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-trace-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-translate-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-valkey-bom - 0.26.0 + 0.27.0-SNAPSHOT pom import com.google.cloud google-cloud-vectorsearch-bom - 0.1.0 + 0.2.0-SNAPSHOT pom import com.google.cloud google-cloud-vertexai-bom - 1.40.0 + 1.41.0-SNAPSHOT pom import com.google.cloud google-cloud-video-intelligence-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-video-stitcher-bom - 0.80.0 + 0.81.0-SNAPSHOT pom import com.google.cloud google-cloud-video-transcoder-bom - 1.79.0 + 1.80.0-SNAPSHOT pom import com.google.cloud google-cloud-vision-bom - 3.78.0 + 3.79.0-SNAPSHOT pom import com.google.cloud google-cloud-visionai-bom - 0.37.0 + 0.38.0-SNAPSHOT pom import com.google.cloud google-cloud-vmmigration-bom - 1.80.0 + 1.81.0-SNAPSHOT pom import com.google.cloud google-cloud-vmwareengine-bom - 0.74.0 + 0.75.0-SNAPSHOT pom import com.google.cloud google-cloud-vpcaccess-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.cloud google-cloud-webrisk-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-websecurityscanner-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-workflow-executions-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-workflows-bom - 2.80.0 + 2.81.0-SNAPSHOT pom import com.google.cloud google-cloud-workspaceevents-bom - 0.44.0 + 0.45.0-SNAPSHOT pom import com.google.cloud google-cloud-workstations-bom - 0.68.0 + 0.69.0-SNAPSHOT pom import com.google.cloud google-iam-admin-bom - 3.75.0 + 3.76.0-SNAPSHOT pom import com.google.cloud google-iam-policy-bom - 1.78.0 + 1.79.0-SNAPSHOT pom import com.google.cloud google-identity-accesscontextmanager-bom - 1.81.0 + 1.82.0-SNAPSHOT pom import io.grafeas grafeas - 2.81.0 + 2.82.0-SNAPSHOT - + \ No newline at end of file diff --git a/generation_config.yaml b/generation_config.yaml index d400f1a2fb44..6cb2a4f211af 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.64.1 -googleapis_commitish: ba80e9b5251c974d18c3c25fa905e2d0ae4a0f02 -libraries_bom_version: 26.71.0 +googleapis_commitish: 535d161c24965e9ed1a0b27032cc1c8b4beab818 +libraries_bom_version: 26.72.0 # the libraries are ordered with respect to library name, which is # java-{library.library_name} or java-{library.api-shortname} when diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index bb2c8954a83c..f7226320f927 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.79.0 + 2.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.79.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.81.0 [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 diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 68b30dd21ea7..d1b9fbb5e45c 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.79.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.79.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.79.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.81.0 [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 diff --git a/java-admanager/README.md b/java-admanager/README.md index c65ca4bba4c3..82ce7419b4c7 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.api-ads ad-manager - 0.37.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.37.0' +implementation 'com.google.api-ads:ad-manager:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.37.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.39.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.39.0 [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 diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 949a7fd754bc..3867eee65b59 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.67.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.67.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.69.0 [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 diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 1e54c8e1dec5..eb35a5d8855c 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.79.0 + 3.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.79.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.81.0 [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 diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index ffada1adbf99..595cb060b19a 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -13283,6 +13283,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.MutateDeployedIndexOperationMetadata", "queryAllDeclaredConstructors": true, @@ -14840,6 +14858,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.PredefinedSplit", "queryAllDeclaredConstructors": true, @@ -17018,6 +17054,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$DeveloperConnectConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$DeveloperConnectConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$DeveloperConnectSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$DeveloperConnectSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ReasoningEngineSpec$SourceCodeSpec$InlineSource", "queryAllDeclaredConstructors": true, @@ -17198,6 +17270,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.ReservationAffinity", "queryAllDeclaredConstructors": true, @@ -18386,6 +18476,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.SpeakerVoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SpeakerVoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.SpecialistPool", "queryAllDeclaredConstructors": true, @@ -18458,6 +18566,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.SpeechConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.SpeechConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.StartNotebookRuntimeOperationMetadata", "queryAllDeclaredConstructors": true, @@ -22067,6 +22193,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.VoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.VoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.WorkerPoolSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json index e0b20f00e330..af118af63c7c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1beta1/reflect-config.json @@ -9719,6 +9719,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FullFineTunedResources", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FullFineTunedResources$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.FullFineTunedResources$DeploymentType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.FunctionCall", "queryAllDeclaredConstructors": true, @@ -16820,6 +16847,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata", "queryAllDeclaredConstructors": true, @@ -20546,6 +20591,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedVertexVectorSearch", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$RagManagedVertexVectorSearch$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig$VertexFeatureStore", "queryAllDeclaredConstructors": true, @@ -21212,6 +21275,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$DeveloperConnectConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$DeveloperConnectConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$DeveloperConnectSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$DeveloperConnectSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec$SourceCodeSpec$InlineSource", "queryAllDeclaredConstructors": true, @@ -21509,6 +21608,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ReservationAffinity", "queryAllDeclaredConstructors": true, @@ -23219,6 +23336,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.SpecialistPool", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClientTest.java index 23aff018d8aa..95d777779051 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataServiceClientTest.java @@ -122,6 +122,8 @@ public void createRagCorpusTest() throws Exception { .setRagFilesCount(-477680736) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setCorpusTypeConfig(RagCorpus.CorpusTypeConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -181,6 +183,8 @@ public void createRagCorpusTest2() throws Exception { .setRagFilesCount(-477680736) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setCorpusTypeConfig(RagCorpus.CorpusTypeConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -240,6 +244,8 @@ public void updateRagCorpusTest() throws Exception { .setRagFilesCount(-477680736) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setCorpusTypeConfig(RagCorpus.CorpusTypeConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -296,6 +302,8 @@ public void getRagCorpusTest() throws Exception { .setRagFilesCount(-477680736) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setCorpusTypeConfig(RagCorpus.CorpusTypeConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockVertexRagDataService.addResponse(expectedResponse); @@ -344,6 +352,8 @@ public void getRagCorpusTest2() throws Exception { .setRagFilesCount(-477680736) .setEncryptionSpec(EncryptionSpec.newBuilder().build()) .setCorpusTypeConfig(RagCorpus.CorpusTypeConfig.newBuilder().build()) + .setSatisfiesPzs(true) + .setSatisfiesPzi(true) .build(); mockVertexRagDataService.addResponse(expectedResponse); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java index ae535bb981ac..2d1a3f54b4d5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ContentProto.java @@ -48,6 +48,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_VideoMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_VideoMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PrebuiltVoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PrebuiltVoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_VoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_VoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_MultiSpeakerVoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_MultiSpeakerVoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_SpeechConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_SpeechConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ImageConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -220,10 +244,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "VideoMetadata\0224\n" + "\014start_offset\030\001" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\0222\n\n" - + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\">\n" + + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"=\n" + + "\023PrebuiltVoiceConfig\022\027\n\n" + + "voice_name\030\001 \001(\tH\000\210\001\001B\r\n" + + "\013_voice_name\"P\n" + + "\025ReplicatedVoiceConfig\022\026\n" + + "\tmime_type\030\001 \001(\tB\003\340A\001\022\037\n" + + "\022voice_sample_audio\030\002 \001(\014B\003\340A\001\"\312\001\n" + + "\013VoiceConfig\022P\n" + + "\025prebuilt_voice_config\030\001 \001(\0132/.go" + + "ogle.cloud.aiplatform.v1.PrebuiltVoiceConfigH\000\022Y\n" + + "\027replicated_voice_config\030\003 \001(\0132" + + "1.google.cloud.aiplatform.v1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n" + + "\014voice_config\"n\n" + + "\022SpeakerVoiceConfig\022\024\n" + + "\007speaker\030\001 \001(\tB\003\340A\002\022B\n" + + "\014voice_config\030\002" + + " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfigB\003\340A\002\"m\n" + + "\027MultiSpeakerVoiceConfig\022R\n" + + "\025speaker_voice_configs\030\002 " + + "\003(\0132..google.cloud.aiplatform.v1.SpeakerVoiceConfigB\003\340A\002\"\302\001\n" + + "\014SpeechConfig\022=\n" + + "\014voice_config\030\001" + + " \001(\0132\'.google.cloud.aiplatform.v1.VoiceConfig\022\032\n\r" + + "language_code\030\002 \001(\tB\003\340A\001\022W\n" + + "\032multi_speaker_voice_config\030\003 \001(\013" + + "23.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig\">\n" + "\013ImageConfig\022\036\n" + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\000\210\001\001B\017\n\r" - + "_aspect_ratio\"\322\r\n" + + "_aspect_ratio\"\257\016\n" + "\020GenerationConfig\022\035\n" + "\013temperature\030\001 \001(\002B\003\340A\001H\000\210\001\001\022\027\n" + "\005top_p\030\002 \001(\002B\003\340A\001H\001\210\001\001\022\027\n" @@ -243,21 +292,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022>\n" + "\024response_json_schema\030\034" + " \001(\0132\026.google.protobuf.ValueB\003\340A\001H\013\210\001\001\022\\\n" - + "\016routing_config\030\021 \001(\0132:.google.cloud." - + "aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022Y\n" - + "\017thinking_config\030\031 \001(\0132" - + ";.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n" + + "\016routing_config\030\021 \001(\0132:.goo" + + "gle.cloud.aiplatform.v1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022I\n\r" + + "speech_config\030\027" + + " \001(\0132(.google.cloud.aiplatform.v1.SpeechConfigB\003\340A\001H\r" + + "\210\001\001\022Y\n" + + "\017thinking_config\030\031" + + " \001(\0132;.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfigB\003\340A\001\022G\n" + "\014image_config\030\036" - + " \001(\0132\'.google.cloud.aiplatform.v1.ImageConfigB\003\340A\001H\r" - + "\210\001\001\032\302\004\n\r" + + " \001(\0132\'.google.cloud.aiplatform.v1.ImageConfigB\003\340A\001H\016\210\001\001\032\302\004\n\r" + "RoutingConfig\022_\n" - + "\tauto_mode\030\001 \001(\0132J.google.cloud.aiplatfor" - + "m.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n" - + "\013manual_mode\030\002 \001(\0132L.goo" - + "gle.cloud.aiplatform.v1.GenerationConfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n" + + "\tauto_mode\030\001 \001(\0132J.google.cloud.aipl" + + "atform.v1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022c\n" + + "\013manual_mode\030\002 \001(\0132L.google.cloud.aiplatform.v1.GenerationC" + + "onfig.RoutingConfig.ManualRoutingModeH\000\032\233\002\n" + "\017AutoRoutingMode\022\210\001\n" - + "\030model_routing_preference\030\001 \001(\0162a.google.cloud.aiplatform.v1.G" - + "enerationConfig.RoutingConfig.AutoRoutingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n" + + "\030model_routing_preference\030\001 \001(\0162a.google.cloud.aiplatform" + + ".v1.GenerationConfig.RoutingConfig.AutoR" + + "outingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n" + "\026ModelRoutingPreference\022\013\n" + "\007UNKNOWN\020\000\022\026\n" + "\022PRIORITIZE_QUALITY\020\001\022\014\n" @@ -285,15 +337,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_seedB\022\n" + "\020_response_schemaB\027\n" + "\025_response_json_schemaB\021\n" - + "\017_routing_configB\017\n\r" + + "\017_routing_configB\020\n" + + "\016_speech_configB\017\n\r" + "_image_config\"\353\003\n\r" + "SafetySetting\022?\n" - + "\010category\030\001" - + " \001(\0162(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n" - + "\tthreshold\030\002 \001(\0162<" - + ".google.cloud.aiplatform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n" - + "\006method\030\004 \001(" - + "\01629.google.cloud.aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n" + + "\010category\030\001 \001(\0162(.go" + + "ogle.cloud.aiplatform.v1.HarmCategoryB\003\340A\002\022T\n" + + "\tthreshold\030\002 \001(\0162<.google.cloud.aip" + + "latform.v1.SafetySetting.HarmBlockThresholdB\003\340A\002\022N\n" + + "\006method\030\004 \001(\01629.google.cloud." + + "aiplatform.v1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n" + "\022HarmBlockThreshold\022$\n" + " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n" + "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n" @@ -308,11 +361,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014SafetyRating\022?\n" + "\010category\030\001" + " \001(\0162(.google.cloud.aiplatform.v1.HarmCategoryB\003\340A\003\022R\n" - + "\013probability\030\002" - + " \001(\01628.google.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n" + + "\013probability\030\002 \001(\01628.g" + + "oogle.cloud.aiplatform.v1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n" + "\021probability_score\030\005 \001(\002B\003\340A\003\022L\n" - + "\010severity\030\006" - + " \001(\01625.google.cloud.aiplatform.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n" + + "\010severity\030\006 \001(\01625.google.c" + + "loud.aiplatform.v1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n" + "\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n" + "\007blocked\030\003 \001(\010B\003\340A\003\"b\n" + "\017HarmProbability\022 \n" @@ -344,19 +397,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\010 \001(\001B\003\340A\003\022\031\n" + "\014avg_logprobs\030\t \001(\001B\003\340A\003\022H\n" + "\017logprobs_result\030\n" - + " \001(\0132*.google.cloud.aiplatform.v1.LogprobsResultB\003\340A\003\022N\n" - + "\r" - + "finish_reason\030\003" - + " \001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n" + + " \001(\0132*.google.cloud.aiplatform.v1.LogprobsResultB\003\340A\003\022N\n\r" + + "finish_reason\030\003 " + + "\001(\01622.google.cloud.aiplatform.v1.Candidate.FinishReasonB\003\340A\003\022E\n" + "\016safety_ratings\030\004" + " \003(\0132(.google.cloud.aiplatform.v1.SafetyRatingB\003\340A\003\022 \n" + "\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022L\n" - + "\021citation_metadata\030\006" - + " \001(\0132,.google.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n" - + "\022grounding_metadata\030\007" - + " \001(\0132-.google.cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n" - + "\024url_context_metadata\030\013" - + " \001(\0132..google.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n" + + "\021citation_metadata\030\006 \001(\0132,.googl" + + "e.cloud.aiplatform.v1.CitationMetadataB\003\340A\003\022N\n" + + "\022grounding_metadata\030\007 \001(\0132-.google" + + ".cloud.aiplatform.v1.GroundingMetadataB\003\340A\003\022Q\n" + + "\024url_context_metadata\030\013 \001(\0132..goog" + + "le.cloud.aiplatform.v1.UrlContextMetadataB\003\340A\003\"\315\001\n" + "\014FinishReason\022\035\n" + "\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n" + "\004STOP\020\001\022\016\n\n" @@ -372,21 +424,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\021\n" + "\017_finish_message\"X\n" + "\022UrlContextMetadata\022B\n" - + "\014url_metadata\030\001" - + " \003(\0132\'.google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n" + + "\014url_metadata\030\001 \003(\0132\'." + + "google.cloud.aiplatform.v1.UrlMetadataB\003\340A\003\"\374\001\n" + "\013UrlMetadata\022\025\n\r" + "retrieved_url\030\001 \001(\t\022X\n" - + "\024url_retrieval_status\030\002" - + " \001(\0162:.google.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n" + + "\024url_retrieval_status\030\002 \001(\0162:.googl" + + "e.cloud.aiplatform.v1.UrlMetadata.UrlRetrievalStatus\"|\n" + "\022UrlRetrievalStatus\022$\n" + " URL_RETRIEVAL_STATUS_UNSPECIFIED\020\000\022 \n" + "\034URL_RETRIEVAL_STATUS_SUCCESS\020\001\022\036\n" + "\032URL_RETRIEVAL_STATUS_ERROR\020\002\"\217\003\n" + "\016LogprobsResult\022P\n" - + "\016top_candidates\030\001 \003(\01328" - + ".google.cloud.aiplatform.v1.LogprobsResult.TopCandidates\022O\n" - + "\021chosen_candidates\030\002 " - + "\003(\01324.google.cloud.aiplatform.v1.LogprobsResult.Candidate\032\177\n" + + "\016top_candidates\030\001 \003(\01328.google.cloud.aip" + + "latform.v1.LogprobsResult.TopCandidates\022O\n" + + "\021chosen_candidates\030\002 \003(\01324.google.clou" + + "d.aiplatform.v1.LogprobsResult.Candidate\032\177\n" + "\tCandidate\022\022\n" + "\005token\030\001 \001(\tH\000\210\001\001\022\025\n" + "\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n" @@ -404,10 +456,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\004 \001(\tB\003\340A\003\"\322\007\n" + "\016GroundingChunk\022=\n" + "\003web\030\001 \001(\0132..google.cloud.aiplatform.v1.GroundingChunk.WebH\000\022X\n" - + "\021retrieved_context\030\002" - + " \001(\0132;.google.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n" - + "\004maps\030\003" - + " \001(\0132/.google.cloud.aiplatform.v1.GroundingChunk.MapsH\000\032=\n" + + "\021retrieved_context\030\002 \001(\0132;.goo" + + "gle.cloud.aiplatform.v1.GroundingChunk.RetrievedContextH\000\022?\n" + + "\004maps\030\003 \001(\0132/.google" + + ".cloud.aiplatform.v1.GroundingChunk.MapsH\000\032=\n" + "\003Web\022\020\n" + "\003uri\030\001 \001(\tH\000\210\001\001\022\022\n" + "\005title\030\002 \001(\tH\001\210\001\001B\006\n" @@ -429,11 +481,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\002 \001(\tH\001\210\001\001\022\021\n" + "\004text\030\003 \001(\tH\002\210\001\001\022\025\n" + "\010place_id\030\004 \001(\tH\003\210\001\001\022`\n" - + "\024place_answer_sources\030\005 \001(\0132B.go" - + "ogle.cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n" + + "\024place_answer_sources\030\005 \001(\0132B.google.cloud.aiplat" + + "form.v1.GroundingChunk.Maps.PlaceAnswerSources\032\313\001\n" + "\022PlaceAnswerSources\022i\n" - + "\017review_snippets\030\001 \003(\0132P.google" - + ".cloud.aiplatform.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r" + + "\017review_snippets\030\001 \003(\0132P.google.cloud.aiplatform" + + ".v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r" + "ReviewSnippet\022\021\n" + "\treview_id\030\001 \001(\t\022\027\n" + "\017google_maps_uri\030\002 \001(\t\022\r\n" @@ -444,25 +496,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_place_idB\014\n\n" + "chunk_type\"\225\001\n" + "\020GroundingSupport\0229\n" - + "\007segment\030\001 \001(" - + "\0132#.google.cloud.aiplatform.v1.SegmentH\000\210\001\001\022\037\n" + + "\007segment\030\001" + + " \001(\0132#.google.cloud.aiplatform.v1.SegmentH\000\210\001\001\022\037\n" + "\027grounding_chunk_indices\030\002 \003(\005\022\031\n" + "\021confidence_scores\030\003 \003(\002B\n\n" + "\010_segment\"\240\005\n" + "\021GroundingMetadata\022\037\n" + "\022web_search_queries\030\001 \003(\tB\003\340A\001\022R\n" - + "\022search_entry_point\030\004 \001(\0132," - + ".google.cloud.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n" - + "\020grounding_chunks\030\005 \003(\013" - + "2*.google.cloud.aiplatform.v1.GroundingChunk\022M\n" - + "\022grounding_supports\030\006 \003(\0132,.googl" - + "e.cloud.aiplatform.v1.GroundingSupportB\003\340A\001\022V\n" - + "\022retrieval_metadata\030\007 \001(\0132-.google" - + ".cloud.aiplatform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n" + + "\022search_entry_point\030\004" + + " \001(\0132,.google.cloud.aiplatform.v1.SearchEntryPointB\003\340A\001H\000\210\001\001\022D\n" + + "\020grounding_chunks\030\005" + + " \003(\0132*.google.cloud.aiplatform.v1.GroundingChunk\022M\n" + + "\022grounding_supports\030\006" + + " \003(\0132,.google.cloud.aiplatform.v1.GroundingSupportB\003\340A\001\022V\n" + + "\022retrieval_metadata\030\007" + + " \001(\0132-.google.cloud.aiplatform.v1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n" + " google_maps_widget_context_token\030\010 \001(" + "\tB\006\340A\001\340A\003H\002\210\001\001\022]\n" - + "\024source_flagging_uris\030\t \003(\0132?.google.cloud.aiplatfo" - + "rm.v1.GroundingMetadata.SourceFlaggingUri\032@\n" + + "\024source_flagging_uris\030\t \003(\0132" + + "?.google.cloud.aiplatform.v1.GroundingMetadata.SourceFlaggingUri\032@\n" + "\021SourceFlaggingUri\022\021\n" + "\tsource_id\030\001 \001(\t\022\030\n" + "\020flag_content_uri\030\002 \001(\tB\025\n" @@ -497,13 +549,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005VIDEO\020\003\022\t\n" + "\005AUDIO\020\004\022\014\n" + "\010DOCUMENT\020\005B\257\002\n" - + "\036com.google.cloud.aiplatform.v1B\014ContentPro" - + "toP\001Z>cloud.google.com/go/aiplatform/api" - + "v1/aiplatformpb;aiplatformpb\252\002\032Google.Cl" - + "oud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatf" - + "orm\\V1\352\002\035Google::Cloud::AIPlatform::V1\352Ab\n" - + "\"modelarmor.googleapis.com/Template\022cloud.googl" + + "e.com/go/aiplatform/apiv1/aiplatformpb;a" + + "iplatformpb\252\002\032Google.Cloud.AIPlatform.V1" + + "\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352Ab\n" + + "\"modelarmor.googleapis.com/Template\022 + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + * + * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+     * Optional. The zone where the underlying Bigtable cluster for the primary
+     * Bigtable instance will be provisioned. Only the zone must be provided.
+     * For example, only "us-central1-a" should be provided.
+     * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); } /** Protobuf type {@code google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable} */ @@ -373,7 +403,9 @@ private Bigtable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Bigtable() {} + private Bigtable() { + zone_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -2472,6 +2504,63 @@ public boolean hasBigtableMetadata() { : bigtableMetadata_; } + public static final int ZONE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Optional. The zone where the underlying Bigtable cluster for the primary
+     * Bigtable instance will be provisioned. Only the zone must be provided.
+     * For example, only "us-central1-a" should be provided.
+     * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The zone where the underlying Bigtable cluster for the primary
+     * Bigtable instance will be provisioned. Only the zone must be provided.
+     * For example, only "us-central1-a" should be provided.
+     * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2495,6 +2584,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getBigtableMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, zone_); + } getUnknownFields().writeTo(output); } @@ -2514,6 +2606,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBigtableMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, zone_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2539,6 +2634,7 @@ public boolean equals(final java.lang.Object obj) { if (hasBigtableMetadata()) { if (!getBigtableMetadata().equals(other.getBigtableMetadata())) return false; } + if (!getZone().equals(other.getZone())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2561,6 +2657,8 @@ public int hashCode() { hash = (37 * hash) + BIGTABLE_METADATA_FIELD_NUMBER; hash = (53 * hash) + getBigtableMetadata().hashCode(); } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2717,6 +2815,7 @@ public Builder clear() { bigtableMetadataBuilder_.dispose(); bigtableMetadataBuilder_ = null; } + zone_ = ""; return this; } @@ -2771,6 +2870,9 @@ private void buildPartial0( : bigtableMetadataBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zone_ = zone_; + } result.bitField0_ |= to_bitField0_; } @@ -2832,6 +2934,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FeatureOnlineStore.Bigta if (other.hasBigtableMetadata()) { mergeBigtableMetadata(other.getBigtableMetadata()); } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2877,6 +2984,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 34 + case 42: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3407,6 +3520,127 @@ public Builder clearBigtableMetadata() { return bigtableMetadataBuilder_; } + private java.lang.Object zone_ = ""; + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java index 77bb5efbac70..e8bb4c47997f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FeatureOnlineStoreProto.java @@ -65,60 +65,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n5google/cloud/aiplatform/v1/feature_onl" - + "ine_store.proto\022\032google.cloud.aiplatform" + "\n" + + "5google/cloud/aiplatform/v1/feature_online_store.proto\022\032google.cloud.aiplatform" + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\0320google/cloud/ai" - + "platform/v1/encryption_spec.proto\0323googl" + + "ogle/api/resource.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\0323googl" + "e/cloud/aiplatform/v1/service_networking" - + ".proto\032\037google/protobuf/timestamp.proto\"" - + "\365\014\n\022FeatureOnlineStore\022K\n\010bigtable\030\010 \001(\013" - + "27.google.cloud.aiplatform.v1.FeatureOnl" - + "ineStore.BigtableH\000\022M\n\toptimized\030\014 \001(\01328" - + ".google.cloud.aiplatform.v1.FeatureOnlin" - + "eStore.OptimizedH\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n" - + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB" - + "\003\340A\001\022O\n\006labels\030\006 \003(\0132:.google.cloud.aipl" - + "atform.v1.FeatureOnlineStore.LabelsEntry" - + "B\003\340A\001\022H\n\005state\030\007 \001(\01624.google.cloud.aipl" - + "atform.v1.FeatureOnlineStore.StateB\003\340A\003\022" - + "p\n\032dedicated_serving_endpoint\030\n \001(\0132G.go" - + "ogle.cloud.aiplatform.v1.FeatureOnlineSt" - + "ore.DedicatedServingEndpointB\003\340A\001\022H\n\017enc" - + "ryption_spec\030\r \001(\0132*.google.cloud.aiplat" - + "form.v1.EncryptionSpecB\003\340A\001\022\032\n\rsatisfies" - + "_pzs\030\017 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\020 \001(\010B\003" - + "\340A\003\032\304\003\n\010Bigtable\022^\n\014auto_scaling\030\001 \001(\0132C" - + ".google.cloud.aiplatform.v1.FeatureOnlin" - + "eStore.Bigtable.AutoScalingB\003\340A\002\022*\n\035enab" - + "le_direct_bigtable_access\030\003 \001(\010B\003\340A\001\022h\n\021" - + "bigtable_metadata\030\004 \001(\0132H.google.cloud.a" - + "iplatform.v1.FeatureOnlineStore.Bigtable" - + ".BigtableMetadataB\003\340A\003\032l\n\013AutoScaling\022\033\n" - + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016max_node_c" - + "ount\030\002 \001(\005B\003\340A\002\022#\n\026cpu_utilization_targe" - + "t\030\003 \001(\005B\003\340A\001\032T\n\020BigtableMetadata\022\031\n\021tena" - + "nt_project_id\030\001 \001(\t\022\023\n\013instance_id\030\002 \001(\t" - + "\022\020\n\010table_id\030\003 \001(\t\032\013\n\tOptimized\032\313\001\n\030Dedi" - + "catedServingEndpoint\022(\n\033public_endpoint_" - + "domain_name\030\002 \001(\tB\003\340A\003\022d\n\036private_servic" - + "e_connect_config\030\003 \001(\01327.google.cloud.ai" - + "platform.v1.PrivateServiceConnectConfigB" - + "\003\340A\001\022\037\n\022service_attachment\030\004 \001(\tB\003\340A\003\032-\n" - + "\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" - + ":\0028\001\"8\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006" - + "STABLE\020\001\022\014\n\010UPDATING\020\002:\206\001\352A\202\001\n,aiplatfor" - + "m.googleapis.com/FeatureOnlineStore\022Rpro" - + "jects/{project}/locations/{location}/fea" - + "tureOnlineStores/{feature_online_store}B" - + "\016\n\014storage_typeB\325\001\n\036com.google.cloud.aip" - + "latform.v1B\027FeatureOnlineStoreProtoP\001Z>c" - + "loud.google.com/go/aiplatform/apiv1/aipl" - + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP" - + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352" - + "\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + ".proto\032\037google/protobuf/timestamp.proto\"\210\r\n" + + "\022FeatureOnlineStore\022K\n" + + "\010bigtable\030\010 \001(\013" + + "27.google.cloud.aiplatform.v1.FeatureOnlineStore.BigtableH\000\022M\n" + + "\toptimized\030\014 \001(\01328" + + ".google.cloud.aiplatform.v1.FeatureOnlineStore.OptimizedH\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + + "\004etag\030\005 \001(\tB\003\340A\001\022O\n" + + "\006labels\030\006 \003(\0132:.google.cloud.aipl" + + "atform.v1.FeatureOnlineStore.LabelsEntryB\003\340A\001\022H\n" + + "\005state\030\007 \001(\01624.google.cloud.aipl" + + "atform.v1.FeatureOnlineStore.StateB\003\340A\003\022p\n" + + "\032dedicated_serving_endpoint\030\n" + + " \001(\0132G.go" + + "ogle.cloud.aiplatform.v1.FeatureOnlineStore.DedicatedServingEndpointB\003\340A\001\022H\n" + + "\017encryption_spec\030\r" + + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpecB\003\340A\001\022\032\n\r" + + "satisfies_pzs\030\017 \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030\020 \001(\010B\003\340A\003\032\327\003\n" + + "\010Bigtable\022^\n" + + "\014auto_scaling\030\001 \001(\0132C" + + ".google.cloud.aiplatform.v1.FeatureOnlineStore.Bigtable.AutoScalingB\003\340A\002\022*\n" + + "\035enable_direct_bigtable_access\030\003 \001(\010B\003\340A\001\022h\n" + + "\021bigtable_metadata\030\004 \001(\0132H.google.cloud.a" + + "iplatform.v1.FeatureOnlineStore.Bigtable.BigtableMetadataB\003\340A\003\022\021\n" + + "\004zone\030\005 \001(\tB\003\340A\001\032l\n" + + "\013AutoScaling\022\033\n" + + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n" + + "\016max_node_count\030\002 \001(\005B\003\340A\002\022#\n" + + "\026cpu_utilization_target\030\003 \001(\005B\003\340A\001\032T\n" + + "\020BigtableMetadata\022\031\n" + + "\021tenant_project_id\030\001 \001(\t\022\023\n" + + "\013instance_id\030\002 \001(\t\022\020\n" + + "\010table_id\030\003 \001(\t\032\013\n" + + "\tOptimized\032\313\001\n" + + "\030DedicatedServingEndpoint\022(\n" + + "\033public_endpoint_domain_name\030\002 \001(\tB\003\340A\003\022d\n" + + "\036private_service_connect_config\030\003 \001(" + + "\01327.google.cloud.aiplatform.v1.PrivateServiceConnectConfigB\003\340A\001\022\037\n" + + "\022service_attachment\030\004 \001(\tB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"8\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006STABLE\020\001\022\014\n" + + "\010UPDATING\020\002:\206\001\352A\202\001\n" + + ",aiplatform.googleapis.com/FeatureOnlineStore\022Rprojects/{project}/locat" + + "ions/{location}/featureOnlineStores/{feature_online_store}B\016\n" + + "\014storage_typeB\325\001\n" + + "\036com.google.cloud.aiplatform.v1B\027FeatureOn" + + "lineStoreProtoP\001Z>cloud.google.com/go/aiplatform/apiv1/aiplatformpb;aiplatformpb" + + "\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google\\C" + + "loud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -158,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_descriptor, new java.lang.String[] { - "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata", + "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata", "Zone", }); internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_AutoScaling_descriptor = internal_static_google_cloud_aiplatform_v1_FeatureOnlineStore_Bigtable_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java index 2dec2e1dbf00..a7444f8e49c6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfig.java @@ -4686,6 +4686,65 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC : routingConfig_; } + public static final int SPEECH_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_; + + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speechConfig field is set. + */ + @java.lang.Override + public boolean hasSpeechConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speechConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeechConfig getSpeechConfig() { + return speechConfig_ == null + ? com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } + + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBuilder() { + return speechConfig_ == null + ? com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } + public static final int THINKING_CONFIG_FIELD_NUMBER = 25; private com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinkingConfig_; @@ -4706,7 +4765,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfig getRoutingC */ @java.lang.Override public boolean hasThinkingConfig() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -4770,7 +4829,7 @@ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig getThinkin */ @java.lang.Override public boolean hasImageConfig() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -4868,12 +4927,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeBool(18, responseLogprobs_); } if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(23, getSpeechConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { output.writeMessage(25, getThinkingConfig()); } if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(28, getResponseJsonSchema()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(30, getImageConfig()); } getUnknownFields().writeTo(output); @@ -4933,12 +4995,15 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, responseLogprobs_); } if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getSpeechConfig()); + } + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getThinkingConfig()); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getResponseJsonSchema()); } - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getImageConfig()); } size += getUnknownFields().getSerializedSize(); @@ -5016,6 +5081,10 @@ public boolean equals(final java.lang.Object obj) { if (hasRoutingConfig()) { if (!getRoutingConfig().equals(other.getRoutingConfig())) return false; } + if (hasSpeechConfig() != other.hasSpeechConfig()) return false; + if (hasSpeechConfig()) { + if (!getSpeechConfig().equals(other.getSpeechConfig())) return false; + } if (hasThinkingConfig() != other.hasThinkingConfig()) return false; if (hasThinkingConfig()) { if (!getThinkingConfig().equals(other.getThinkingConfig())) return false; @@ -5093,6 +5162,10 @@ public int hashCode() { hash = (37 * hash) + ROUTING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getRoutingConfig().hashCode(); } + if (hasSpeechConfig()) { + hash = (37 * hash) + SPEECH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSpeechConfig().hashCode(); + } if (hasThinkingConfig()) { hash = (37 * hash) + THINKING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getThinkingConfig().hashCode(); @@ -5245,6 +5318,7 @@ private void maybeForceBuilderInitialization() { getResponseSchemaFieldBuilder(); getResponseJsonSchemaFieldBuilder(); getRoutingConfigFieldBuilder(); + getSpeechConfigFieldBuilder(); getThinkingConfigFieldBuilder(); getImageConfigFieldBuilder(); } @@ -5281,6 +5355,11 @@ public Builder clear() { routingConfigBuilder_.dispose(); routingConfigBuilder_ = null; } + speechConfig_ = null; + if (speechConfigBuilder_ != null) { + speechConfigBuilder_.dispose(); + speechConfigBuilder_ = null; + } thinkingConfig_ = null; if (thinkingConfigBuilder_ != null) { thinkingConfigBuilder_.dispose(); @@ -5393,14 +5472,19 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.GenerationConfig resul to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.thinkingConfig_ = - thinkingConfigBuilder_ == null ? thinkingConfig_ : thinkingConfigBuilder_.build(); + result.speechConfig_ = + speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build(); to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00010000) != 0)) { + result.thinkingConfig_ = + thinkingConfigBuilder_ == null ? thinkingConfig_ : thinkingConfigBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.imageConfig_ = imageConfigBuilder_ == null ? imageConfig_ : imageConfigBuilder_.build(); - to_bitField0_ |= 0x00004000; + to_bitField0_ |= 0x00008000; } result.bitField0_ |= to_bitField0_; } @@ -5505,6 +5589,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.GenerationConfig other) if (other.hasRoutingConfig()) { mergeRoutingConfig(other.getRoutingConfig()); } + if (other.hasSpeechConfig()) { + mergeSpeechConfig(other.getSpeechConfig()); + } if (other.hasThinkingConfig()) { mergeThinkingConfig(other.getThinkingConfig()); } @@ -5622,10 +5709,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 144 + case 186: + { + input.readMessage(getSpeechConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 186 case 202: { input.readMessage(getThinkingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 202 case 226: @@ -5638,7 +5731,7 @@ public Builder mergeFrom( case 242: { input.readMessage(getImageConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 242 default: @@ -7717,6 +7810,219 @@ public Builder clearRoutingConfig() { return routingConfigBuilder_; } + private com.google.cloud.aiplatform.v1.SpeechConfig speechConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeechConfig, + com.google.cloud.aiplatform.v1.SpeechConfig.Builder, + com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder> + speechConfigBuilder_; + + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speechConfig field is set. + */ + public boolean hasSpeechConfig() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speechConfig. + */ + public com.google.cloud.aiplatform.v1.SpeechConfig getSpeechConfig() { + if (speechConfigBuilder_ == null) { + return speechConfig_ == null + ? com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } else { + return speechConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value) { + if (speechConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + speechConfig_ = value; + } else { + speechConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpeechConfig( + com.google.cloud.aiplatform.v1.SpeechConfig.Builder builderForValue) { + if (speechConfigBuilder_ == null) { + speechConfig_ = builderForValue.build(); + } else { + speechConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSpeechConfig(com.google.cloud.aiplatform.v1.SpeechConfig value) { + if (speechConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && speechConfig_ != null + && speechConfig_ != com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()) { + getSpeechConfigBuilder().mergeFrom(value); + } else { + speechConfig_ = value; + } + } else { + speechConfigBuilder_.mergeFrom(value); + } + if (speechConfig_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpeechConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + speechConfig_ = null; + if (speechConfigBuilder_ != null) { + speechConfigBuilder_.dispose(); + speechConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.SpeechConfig.Builder getSpeechConfigBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getSpeechConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBuilder() { + if (speechConfigBuilder_ != null) { + return speechConfigBuilder_.getMessageOrBuilder(); + } else { + return speechConfig_ == null + ? com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } + } + + /** + * + * + *
+     * Optional. The speech generation config.
+     * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeechConfig, + com.google.cloud.aiplatform.v1.SpeechConfig.Builder, + com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder> + getSpeechConfigFieldBuilder() { + if (speechConfigBuilder_ == null) { + speechConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeechConfig, + com.google.cloud.aiplatform.v1.SpeechConfig.Builder, + com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder>( + getSpeechConfig(), getParentForChildren(), isClean()); + speechConfig_ = null; + } + return speechConfigBuilder_; + } + private com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig thinkingConfig_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig, @@ -7740,7 +8046,7 @@ public Builder clearRoutingConfig() { * @return Whether the thinkingConfig field is set. */ public boolean hasThinkingConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -7791,7 +8097,7 @@ public Builder setThinkingConfig( } else { thinkingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7816,7 +8122,7 @@ public Builder setThinkingConfig( } else { thinkingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -7837,7 +8143,7 @@ public Builder setThinkingConfig( public Builder mergeThinkingConfig( com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig value) { if (thinkingConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && thinkingConfig_ != null && thinkingConfig_ != com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig @@ -7850,7 +8156,7 @@ public Builder mergeThinkingConfig( thinkingConfigBuilder_.mergeFrom(value); } if (thinkingConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -7870,7 +8176,7 @@ public Builder mergeThinkingConfig( * */ public Builder clearThinkingConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); thinkingConfig_ = null; if (thinkingConfigBuilder_ != null) { thinkingConfigBuilder_.dispose(); @@ -7895,7 +8201,7 @@ public Builder clearThinkingConfig() { */ public com.google.cloud.aiplatform.v1.GenerationConfig.ThinkingConfig.Builder getThinkingConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return getThinkingConfigFieldBuilder().getBuilder(); } @@ -7975,7 +8281,7 @@ public Builder clearThinkingConfig() { * @return Whether the imageConfig field is set. */ public boolean hasImageConfig() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -8021,7 +8327,7 @@ public Builder setImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value) } else { imageConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -8044,7 +8350,7 @@ public Builder setImageConfig( } else { imageConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -8062,7 +8368,7 @@ public Builder setImageConfig( */ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value) { if (imageConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && imageConfig_ != null && imageConfig_ != com.google.cloud.aiplatform.v1.ImageConfig.getDefaultInstance()) { getImageConfigBuilder().mergeFrom(value); @@ -8073,7 +8379,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value imageConfigBuilder_.mergeFrom(value); } if (imageConfig_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -8091,7 +8397,7 @@ public Builder mergeImageConfig(com.google.cloud.aiplatform.v1.ImageConfig value * */ public Builder clearImageConfig() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); imageConfig_ = null; if (imageConfigBuilder_ != null) { imageConfigBuilder_.dispose(); @@ -8113,7 +8419,7 @@ public Builder clearImageConfig() { * */ public com.google.cloud.aiplatform.v1.ImageConfig.Builder getImageConfigBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return getImageConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java index 150bff4b4630..22ce034a298c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/GenerationConfigOrBuilder.java @@ -629,6 +629,49 @@ public interface GenerationConfigOrBuilder com.google.cloud.aiplatform.v1.GenerationConfig.RoutingConfigOrBuilder getRoutingConfigOrBuilder(); + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speechConfig field is set. + */ + boolean hasSpeechConfig(); + + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speechConfig. + */ + com.google.cloud.aiplatform.v1.SpeechConfig getSpeechConfig(); + + /** + * + * + *
+   * Optional. The speech generation config.
+   * 
+ * + * + * optional .google.cloud.aiplatform.v1.SpeechConfig speech_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder getSpeechConfigOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java index d03efad738db..0b9420bcde5a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineResourcesProto.java @@ -81,30 +81,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "2google/cloud/aiplatform/v1/machine_resources.proto\022\032google.cloud.aiplatform.v1" + "\032\037google/api/field_behavior.proto\0321googl" + "e/cloud/aiplatform/v1/accelerator_type.p" - + "roto\0325google/cloud/aiplatform/v1/reservation_affinity.proto\"\201\002\n" + + "roto\0325google/cloud/aiplatform/v1/reservation_affinity.proto\"\245\002\n" + "\013MachineSpec\022\031\n" + "\014machine_type\030\001 \001(\tB\003\340A\005\022J\n" + "\020accelerator_type\030\002" + " \001(\0162+.google.cloud.aiplatform.v1.AcceleratorTypeB\003\340A\005\022\031\n" - + "\021accelerator_count\030\003 \001(\005\022\031\n" + + "\021accelerator_count\030\003 \001(\005\022\"\n" + + "\022gpu_partition_size\030\007 \001(\tB\006\340A\005\340A\001\022\031\n" + "\014tpu_topology\030\004 \001(\tB\003\340A\005\022U\n" - + "\024reservation_affinity\030\005 \001(\0132/.google.cloud.ai" - + "platform.v1.ReservationAffinityB\006\340A\005\340A\001\"\260\002\n" + + "\024reservation_affinity\030\005" + + " \001(\0132/.google.cloud.aiplatform.v1.ReservationAffinityB\006\340A\005\340A\001\"\260\002\n" + "\022DedicatedResources\022E\n" - + "\014machine_spec\030\001" - + " \001(\0132\'.google.cloud.aiplatform.v1.MachineSpecB\006\340A\002\340A\005\022!\n" + + "\014machine_spec\030\001 \001(\013" + + "2\'.google.cloud.aiplatform.v1.MachineSpecB\006\340A\002\340A\005\022!\n" + "\021min_replica_count\030\002 \001(\005B\006\340A\002\340A\005\022\036\n" + "\021max_replica_count\030\003 \001(\005B\003\340A\005\022#\n" + "\026required_replica_count\030\t \001(\005B\003\340A\001\022X\n" - + "\030autoscaling_metric_specs\030\004 \003(\01321.google" - + ".cloud.aiplatform.v1.AutoscalingMetricSpecB\003\340A\005\022\021\n" + + "\030autoscaling_metric_specs\030\004 \003(\01321.google.clo" + + "ud.aiplatform.v1.AutoscalingMetricSpecB\003\340A\005\022\021\n" + "\004spot\030\005 \001(\010B\003\340A\001\"T\n" + "\022AutomaticResources\022\036\n" + "\021min_replica_count\030\001 \001(\005B\003\340A\005\022\036\n" + "\021max_replica_count\030\002 \001(\005B\003\340A\005\"\245\001\n" + "\027BatchDedicatedResources\022E\n" - + "\014machine_spec\030\001 \001" - + "(\0132\'.google.cloud.aiplatform.v1.MachineSpecB\006\340A\002\340A\005\022#\n" + + "\014machine_spec\030\001 \001(\0132\'" + + ".google.cloud.aiplatform.v1.MachineSpecB\006\340A\002\340A\005\022#\n" + "\026starting_replica_count\030\002 \001(\005B\003\340A\005\022\036\n" + "\021max_replica_count\030\003 \001(\005B\003\340A\005\"/\n" + "\021ResourcesConsumed\022\032\n\r" @@ -124,11 +125,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006target\030\002 \001(\005\".\n" + "\020ShieldedVmConfig\022\032\n" + "\022enable_secure_boot\030\001 \001(\010B\323\001\n" - + "\036com.google.cloud.aiplatform.v1B\025MachineResourcesProtoP\001Z>cloud.goog" - + "le.com/go/aiplatform/apiv1/aiplatformpb;" - + "aiplatformpb\252\002\032Google.Cloud.AIPlatform.V" - + "1\312\002\032Google\\Cloud\\AIPlatform\\V1\352\002\035Google:" - + ":Cloud::AIPlatform::V1b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\025MachineResourcesProtoP\001Z>cloud.google.c" + + "om/go/aiplatform/apiv1/aiplatformpb;aipl" + + "atformpb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032" + + "Google\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -147,6 +147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MachineType", "AcceleratorType", "AcceleratorCount", + "GpuPartitionSize", "TpuTopology", "ReservationAffinity", }); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java index f4737e845e7a..775545026c4b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpec.java @@ -42,6 +42,7 @@ private MachineSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { private MachineSpec() { machineType_ = ""; acceleratorType_ = 0; + gpuPartitionSize_ = ""; tpuTopology_ = ""; } @@ -208,6 +209,89 @@ public int getAcceleratorCount() { return acceleratorCount_; } + public static final int GPU_PARTITION_SIZE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object gpuPartitionSize_ = ""; + + /** + * + * + *
+   * Optional. Immutable. The Nvidia GPU partition size.
+   *
+   * When specified, the requested accelerators will be partitioned into
+   * smaller GPU partitions. For example, if the request is for 8 units of
+   * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+   * create 8 * 7 = 56 partitioned MIG instances.
+   *
+   * The partition size must be a value supported by the requested accelerator.
+   * Refer to
+   * [Nvidia GPU
+   * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+   * for the available partition sizes.
+   *
+   * If set, the accelerator_count should be set to 1.
+   * 
+ * + * + * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuPartitionSize. + */ + @java.lang.Override + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. The Nvidia GPU partition size.
+   *
+   * When specified, the requested accelerators will be partitioned into
+   * smaller GPU partitions. For example, if the request is for 8 units of
+   * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+   * create 8 * 7 = 56 partitioned MIG instances.
+   *
+   * The partition size must be a value supported by the requested accelerator.
+   * Refer to
+   * [Nvidia GPU
+   * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+   * for the available partition sizes.
+   *
+   * If set, the accelerator_count should be set to 1.
+   * 
+ * + * + * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for gpuPartitionSize. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TPU_TOPOLOGY_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -357,6 +441,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getReservationAffinity()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gpuPartitionSize_); + } getUnknownFields().writeTo(output); } @@ -383,6 +470,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReservationAffinity()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gpuPartitionSize_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -402,6 +492,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMachineType().equals(other.getMachineType())) return false; if (acceleratorType_ != other.acceleratorType_) return false; if (getAcceleratorCount() != other.getAcceleratorCount()) return false; + if (!getGpuPartitionSize().equals(other.getGpuPartitionSize())) return false; if (!getTpuTopology().equals(other.getTpuTopology())) return false; if (hasReservationAffinity() != other.hasReservationAffinity()) return false; if (hasReservationAffinity()) { @@ -424,6 +515,8 @@ public int hashCode() { hash = (53 * hash) + acceleratorType_; hash = (37 * hash) + ACCELERATOR_COUNT_FIELD_NUMBER; hash = (53 * hash) + getAcceleratorCount(); + hash = (37 * hash) + GPU_PARTITION_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getGpuPartitionSize().hashCode(); hash = (37 * hash) + TPU_TOPOLOGY_FIELD_NUMBER; hash = (53 * hash) + getTpuTopology().hashCode(); if (hasReservationAffinity()) { @@ -582,6 +675,7 @@ public Builder clear() { machineType_ = ""; acceleratorType_ = 0; acceleratorCount_ = 0; + gpuPartitionSize_ = ""; tpuTopology_ = ""; reservationAffinity_ = null; if (reservationAffinityBuilder_ != null) { @@ -634,10 +728,13 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.MachineSpec result) { result.acceleratorCount_ = acceleratorCount_; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.gpuPartitionSize_ = gpuPartitionSize_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.tpuTopology_ = tpuTopology_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.reservationAffinity_ = reservationAffinityBuilder_ == null ? reservationAffinity_ @@ -703,9 +800,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.MachineSpec other) { if (other.getAcceleratorCount() != 0) { setAcceleratorCount(other.getAcceleratorCount()); } + if (!other.getGpuPartitionSize().isEmpty()) { + gpuPartitionSize_ = other.gpuPartitionSize_; + bitField0_ |= 0x00000008; + onChanged(); + } if (!other.getTpuTopology().isEmpty()) { tpuTopology_ = other.tpuTopology_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasReservationAffinity()) { @@ -758,16 +860,22 @@ public Builder mergeFrom( case 34: { tpuTopology_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage( getReservationAffinityFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 + case 58: + { + gpuPartitionSize_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1129,6 +1237,192 @@ public Builder clearAcceleratorCount() { return this; } + private java.lang.Object gpuPartitionSize_ = ""; + + /** + * + * + *
+     * Optional. Immutable. The Nvidia GPU partition size.
+     *
+     * When specified, the requested accelerators will be partitioned into
+     * smaller GPU partitions. For example, if the request is for 8 units of
+     * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+     * create 8 * 7 = 56 partitioned MIG instances.
+     *
+     * The partition size must be a value supported by the requested accelerator.
+     * Refer to
+     * [Nvidia GPU
+     * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+     * for the available partition sizes.
+     *
+     * If set, the accelerator_count should be set to 1.
+     * 
+ * + * + * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuPartitionSize. + */ + public java.lang.String getGpuPartitionSize() { + java.lang.Object ref = gpuPartitionSize_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gpuPartitionSize_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. The Nvidia GPU partition size.
+     *
+     * When specified, the requested accelerators will be partitioned into
+     * smaller GPU partitions. For example, if the request is for 8 units of
+     * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+     * create 8 * 7 = 56 partitioned MIG instances.
+     *
+     * The partition size must be a value supported by the requested accelerator.
+     * Refer to
+     * [Nvidia GPU
+     * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+     * for the available partition sizes.
+     *
+     * If set, the accelerator_count should be set to 1.
+     * 
+ * + * + * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for gpuPartitionSize. + */ + public com.google.protobuf.ByteString getGpuPartitionSizeBytes() { + java.lang.Object ref = gpuPartitionSize_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gpuPartitionSize_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. The Nvidia GPU partition size.
+     *
+     * When specified, the requested accelerators will be partitioned into
+     * smaller GPU partitions. For example, if the request is for 8 units of
+     * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+     * create 8 * 7 = 56 partitioned MIG instances.
+     *
+     * The partition size must be a value supported by the requested accelerator.
+     * Refer to
+     * [Nvidia GPU
+     * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+     * for the available partition sizes.
+     *
+     * If set, the accelerator_count should be set to 1.
+     * 
+ * + * + * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSize(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gpuPartitionSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The Nvidia GPU partition size.
+     *
+     * When specified, the requested accelerators will be partitioned into
+     * smaller GPU partitions. For example, if the request is for 8 units of
+     * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+     * create 8 * 7 = 56 partitioned MIG instances.
+     *
+     * The partition size must be a value supported by the requested accelerator.
+     * Refer to
+     * [Nvidia GPU
+     * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+     * for the available partition sizes.
+     *
+     * If set, the accelerator_count should be set to 1.
+     * 
+ * + * + * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGpuPartitionSize() { + gpuPartitionSize_ = getDefaultInstance().getGpuPartitionSize(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The Nvidia GPU partition size.
+     *
+     * When specified, the requested accelerators will be partitioned into
+     * smaller GPU partitions. For example, if the request is for 8 units of
+     * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+     * create 8 * 7 = 56 partitioned MIG instances.
+     *
+     * The partition size must be a value supported by the requested accelerator.
+     * Refer to
+     * [Nvidia GPU
+     * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+     * for the available partition sizes.
+     *
+     * If set, the accelerator_count should be set to 1.
+     * 
+ * + * + * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for gpuPartitionSize to set. + * @return This builder for chaining. + */ + public Builder setGpuPartitionSizeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gpuPartitionSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + private java.lang.Object tpuTopology_ = ""; /** @@ -1197,7 +1491,7 @@ public Builder setTpuTopology(java.lang.String value) { throw new NullPointerException(); } tpuTopology_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1216,7 +1510,7 @@ public Builder setTpuTopology(java.lang.String value) { */ public Builder clearTpuTopology() { tpuTopology_ = getDefaultInstance().getTpuTopology(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1240,7 +1534,7 @@ public Builder setTpuTopologyBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); tpuTopology_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1267,7 +1561,7 @@ public Builder setTpuTopologyBytes(com.google.protobuf.ByteString value) { * @return Whether the reservationAffinity field is set. */ public boolean hasReservationAffinity() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1316,7 +1610,7 @@ public Builder setReservationAffinity( } else { reservationAffinityBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1340,7 +1634,7 @@ public Builder setReservationAffinity( } else { reservationAffinityBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1360,7 +1654,7 @@ public Builder setReservationAffinity( public Builder mergeReservationAffinity( com.google.cloud.aiplatform.v1.ReservationAffinity value) { if (reservationAffinityBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && reservationAffinity_ != null && reservationAffinity_ != com.google.cloud.aiplatform.v1.ReservationAffinity.getDefaultInstance()) { @@ -1372,7 +1666,7 @@ public Builder mergeReservationAffinity( reservationAffinityBuilder_.mergeFrom(value); } if (reservationAffinity_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1391,7 +1685,7 @@ public Builder mergeReservationAffinity( * */ public Builder clearReservationAffinity() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); reservationAffinity_ = null; if (reservationAffinityBuilder_ != null) { reservationAffinityBuilder_.dispose(); @@ -1415,7 +1709,7 @@ public Builder clearReservationAffinity() { */ public com.google.cloud.aiplatform.v1.ReservationAffinity.Builder getReservationAffinityBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getReservationAffinityFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java index 00ef2f91247e..86c41c05e5ce 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MachineSpecOrBuilder.java @@ -121,6 +121,62 @@ public interface MachineSpecOrBuilder */ int getAcceleratorCount(); + /** + * + * + *
+   * Optional. Immutable. The Nvidia GPU partition size.
+   *
+   * When specified, the requested accelerators will be partitioned into
+   * smaller GPU partitions. For example, if the request is for 8 units of
+   * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+   * create 8 * 7 = 56 partitioned MIG instances.
+   *
+   * The partition size must be a value supported by the requested accelerator.
+   * Refer to
+   * [Nvidia GPU
+   * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+   * for the available partition sizes.
+   *
+   * If set, the accelerator_count should be set to 1.
+   * 
+ * + * + * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The gpuPartitionSize. + */ + java.lang.String getGpuPartitionSize(); + + /** + * + * + *
+   * Optional. Immutable. The Nvidia GPU partition size.
+   *
+   * When specified, the requested accelerators will be partitioned into
+   * smaller GPU partitions. For example, if the request is for 8 units of
+   * NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will
+   * create 8 * 7 = 56 partitioned MIG instances.
+   *
+   * The partition size must be a value supported by the requested accelerator.
+   * Refer to
+   * [Nvidia GPU
+   * Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions)
+   * for the available partition sizes.
+   *
+   * If set, the accelerator_count should be set to 1.
+   * 
+ * + * + * string gpu_partition_size = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for gpuPartitionSize. + */ + com.google.protobuf.ByteString getGpuPartitionSizeBytes(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MultiSpeakerVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MultiSpeakerVoiceConfig.java new file mode 100644 index 000000000000..d7ea2ba199b5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MultiSpeakerVoiceConfig.java @@ -0,0 +1,1048 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Configuration for a multi-speaker text-to-speech request.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig} + */ +public final class MultiSpeakerVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) + MultiSpeakerVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MultiSpeakerVoiceConfig.newBuilder() to construct. + private MultiSpeakerVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiSpeakerVoiceConfig() { + speakerVoiceConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiSpeakerVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_MultiSpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_MultiSpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder.class); + } + + public static final int SPEAKER_VOICE_CONFIGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List speakerVoiceConfigs_; + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSpeakerVoiceConfigsList() { + return speakerVoiceConfigs_; + } + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSpeakerVoiceConfigsOrBuilderList() { + return speakerVoiceConfigs_; + } + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSpeakerVoiceConfigsCount() { + return speakerVoiceConfigs_.size(); + } + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index) { + return speakerVoiceConfigs_.get(index); + } + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder getSpeakerVoiceConfigsOrBuilder( + int index) { + return speakerVoiceConfigs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < speakerVoiceConfigs_.size(); i++) { + output.writeMessage(2, speakerVoiceConfigs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < speakerVoiceConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, speakerVoiceConfigs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig other = + (com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) obj; + + if (!getSpeakerVoiceConfigsList().equals(other.getSpeakerVoiceConfigsList())) 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 (getSpeakerVoiceConfigsCount() > 0) { + hash = (37 * hash) + SPEAKER_VOICE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getSpeakerVoiceConfigsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig 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.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig 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.aiplatform.v1.MultiSpeakerVoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig 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.aiplatform.v1.MultiSpeakerVoiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig 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.aiplatform.v1.MultiSpeakerVoiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for a multi-speaker text-to-speech request.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_MultiSpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_MultiSpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (speakerVoiceConfigsBuilder_ == null) { + speakerVoiceConfigs_ = java.util.Collections.emptyList(); + } else { + speakerVoiceConfigs_ = null; + speakerVoiceConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_MultiSpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig build() { + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig result = + new com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig result) { + if (speakerVoiceConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + speakerVoiceConfigs_ = java.util.Collections.unmodifiableList(speakerVoiceConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.speakerVoiceConfigs_ = speakerVoiceConfigs_; + } else { + result.speakerVoiceConfigs_ = speakerVoiceConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance()) + return this; + if (speakerVoiceConfigsBuilder_ == null) { + if (!other.speakerVoiceConfigs_.isEmpty()) { + if (speakerVoiceConfigs_.isEmpty()) { + speakerVoiceConfigs_ = other.speakerVoiceConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.addAll(other.speakerVoiceConfigs_); + } + onChanged(); + } + } else { + if (!other.speakerVoiceConfigs_.isEmpty()) { + if (speakerVoiceConfigsBuilder_.isEmpty()) { + speakerVoiceConfigsBuilder_.dispose(); + speakerVoiceConfigsBuilder_ = null; + speakerVoiceConfigs_ = other.speakerVoiceConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + speakerVoiceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSpeakerVoiceConfigsFieldBuilder() + : null; + } else { + speakerVoiceConfigsBuilder_.addAllMessages(other.speakerVoiceConfigs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig m = + input.readMessage( + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.parser(), + extensionRegistry); + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(m); + } else { + speakerVoiceConfigsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List speakerVoiceConfigs_ = + java.util.Collections.emptyList(); + + private void ensureSpeakerVoiceConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + speakerVoiceConfigs_ = + new java.util.ArrayList( + speakerVoiceConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig, + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder> + speakerVoiceConfigsBuilder_; + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSpeakerVoiceConfigsList() { + if (speakerVoiceConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(speakerVoiceConfigs_); + } else { + return speakerVoiceConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSpeakerVoiceConfigsCount() { + if (speakerVoiceConfigsBuilder_ == null) { + return speakerVoiceConfigs_.size(); + } else { + return speakerVoiceConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index) { + if (speakerVoiceConfigsBuilder_ == null) { + return speakerVoiceConfigs_.get(index); + } else { + return speakerVoiceConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpeakerVoiceConfigs( + int index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig value) { + if (speakerVoiceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.set(index, value); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpeakerVoiceConfigs( + int index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder builderForValue) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpeakerVoiceConfigs(com.google.cloud.aiplatform.v1.SpeakerVoiceConfig value) { + if (speakerVoiceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(value); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpeakerVoiceConfigs( + int index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig value) { + if (speakerVoiceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(index, value); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpeakerVoiceConfigs( + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder builderForValue) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(builderForValue.build()); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpeakerVoiceConfigs( + int index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder builderForValue) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSpeakerVoiceConfigs( + java.lang.Iterable values) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speakerVoiceConfigs_); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSpeakerVoiceConfigs() { + if (speakerVoiceConfigsBuilder_ == null) { + speakerVoiceConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSpeakerVoiceConfigs(int index) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.remove(index); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder getSpeakerVoiceConfigsBuilder( + int index) { + return getSpeakerVoiceConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder + getSpeakerVoiceConfigsOrBuilder(int index) { + if (speakerVoiceConfigsBuilder_ == null) { + return speakerVoiceConfigs_.get(index); + } else { + return speakerVoiceConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSpeakerVoiceConfigsOrBuilderList() { + if (speakerVoiceConfigsBuilder_ != null) { + return speakerVoiceConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(speakerVoiceConfigs_); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder + addSpeakerVoiceConfigsBuilder() { + return getSpeakerVoiceConfigsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder addSpeakerVoiceConfigsBuilder( + int index) { + return getSpeakerVoiceConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSpeakerVoiceConfigsBuilderList() { + return getSpeakerVoiceConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig, + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder> + getSpeakerVoiceConfigsFieldBuilder() { + if (speakerVoiceConfigsBuilder_ == null) { + speakerVoiceConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig, + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder>( + speakerVoiceConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + speakerVoiceConfigs_ = null; + } + return speakerVoiceConfigsBuilder_; + } + + @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.aiplatform.v1.MultiSpeakerVoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) + private static final com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiSpeakerVoiceConfig 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.aiplatform.v1.MultiSpeakerVoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MultiSpeakerVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MultiSpeakerVoiceConfigOrBuilder.java new file mode 100644 index 000000000000..27a6ed1d4800 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/MultiSpeakerVoiceConfigOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface MultiSpeakerVoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getSpeakerVoiceConfigsList(); + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index); + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSpeakerVoiceConfigsCount(); + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSpeakerVoiceConfigsOrBuilderList(); + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder getSpeakerVoiceConfigsOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrebuiltVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrebuiltVoiceConfig.java new file mode 100644 index 000000000000..c30ab98eac9c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrebuiltVoiceConfig.java @@ -0,0 +1,674 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Configuration for a prebuilt voice.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PrebuiltVoiceConfig} + */ +public final class PrebuiltVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PrebuiltVoiceConfig) + PrebuiltVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PrebuiltVoiceConfig.newBuilder() to construct. + private PrebuiltVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PrebuiltVoiceConfig() { + voiceName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PrebuiltVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_PrebuiltVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_PrebuiltVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.class, + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder.class); + } + + private int bitField0_; + public static final int VOICE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object voiceName_ = ""; + + /** + * + * + *
+   * The name of the prebuilt voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return Whether the voiceName field is set. + */ + @java.lang.Override + public boolean hasVoiceName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The name of the prebuilt voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return The voiceName. + */ + @java.lang.Override + public java.lang.String getVoiceName() { + java.lang.Object ref = voiceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceName_ = s; + return s; + } + } + + /** + * + * + *
+   * The name of the prebuilt voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return The bytes for voiceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceNameBytes() { + java.lang.Object ref = voiceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, voiceName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, voiceName_); + } + 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.aiplatform.v1.PrebuiltVoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig other = + (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) obj; + + if (hasVoiceName() != other.hasVoiceName()) return false; + if (hasVoiceName()) { + if (!getVoiceName().equals(other.getVoiceName())) 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 (hasVoiceName()) { + hash = (37 * hash) + VOICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getVoiceName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig 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.aiplatform.v1.PrebuiltVoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig 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.aiplatform.v1.PrebuiltVoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig 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.aiplatform.v1.PrebuiltVoiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig 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.aiplatform.v1.PrebuiltVoiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for a prebuilt voice.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PrebuiltVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PrebuiltVoiceConfig) + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_PrebuiltVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_PrebuiltVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.class, + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + voiceName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_PrebuiltVoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig build() { + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig result = + new com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.voiceName_ = voiceName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance()) + return this; + if (other.hasVoiceName()) { + voiceName_ = other.voiceName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + voiceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object voiceName_ = ""; + + /** + * + * + *
+     * The name of the prebuilt voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @return Whether the voiceName field is set. + */ + public boolean hasVoiceName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The name of the prebuilt voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @return The voiceName. + */ + public java.lang.String getVoiceName() { + java.lang.Object ref = voiceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The name of the prebuilt voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @return The bytes for voiceName. + */ + public com.google.protobuf.ByteString getVoiceNameBytes() { + java.lang.Object ref = voiceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The name of the prebuilt voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @param value The voiceName to set. + * @return This builder for chaining. + */ + public Builder setVoiceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voiceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the prebuilt voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearVoiceName() { + voiceName_ = getDefaultInstance().getVoiceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The name of the prebuilt voice to use.
+     * 
+ * + * optional string voice_name = 1; + * + * @param value The bytes for voiceName to set. + * @return This builder for chaining. + */ + public Builder setVoiceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voiceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.PrebuiltVoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PrebuiltVoiceConfig) + private static final com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrebuiltVoiceConfig 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.aiplatform.v1.PrebuiltVoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrebuiltVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrebuiltVoiceConfigOrBuilder.java new file mode 100644 index 000000000000..3248a8f3d0a7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PrebuiltVoiceConfigOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface PrebuiltVoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PrebuiltVoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the prebuilt voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return Whether the voiceName field is set. + */ + boolean hasVoiceName(); + + /** + * + * + *
+   * The name of the prebuilt voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return The voiceName. + */ + java.lang.String getVoiceName(); + + /** + * + * + *
+   * The name of the prebuilt voice to use.
+   * 
+ * + * optional string voice_name = 1; + * + * @return The bytes for voiceName. + */ + com.google.protobuf.ByteString getVoiceNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java index 1950026c1030..bdbfc478898f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -79,7 +87,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037google/api/field_behavior.proto\032\031google" + "/api/resource.proto\0320google/cloud/aiplatform/v1/encryption_spec.proto\032(google/cl" + "oud/aiplatform/v1/env_var.proto\0323google/cloud/aiplatform/v1/service_networking.p" - + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\275\014\n" + + "roto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\333\017\n" + "\023ReasoningEngineSpec\022Z\n" + "\020source_code_spec\030\013 \001(\0132>." + "google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpecH\000\022!\n" @@ -112,14 +120,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001B\020\n" + "\016_min_instancesB\020\n" + "\016_max_instancesB\030\n" - + "\026_container_concurrency\032\250\003\n" + + "\026_container_concurrency\032\306\006\n" + "\016SourceCodeSpec\022d\n\r" + "inline_source\030\001 \001(\0132K.google.cloud.aiplatform.v1.Reasoning" - + "EngineSpec.SourceCodeSpec.InlineSourceH\000\022`\n" - + "\013python_spec\030\002 \001(\0132I.google.cloud.aip" - + "latform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\032.\n" + + "EngineSpec.SourceCodeSpec.InlineSourceH\000\022y\n" + + "\030developer_connect_source\030\003 \001(\0132U.goo" + + "gle.cloud.aiplatform.v1.ReasoningEngineS" + + "pec.SourceCodeSpec.DeveloperConnectSourceH\000\022`\n" + + "\013python_spec\030\002 \001(\0132I.google.cloud." + + "aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\032.\n" + "\014InlineSource\022\036\n" - + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\202\001\n\n" + + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\231\001\n" + + "\026DeveloperConnectConfig\022V\n" + + "\023git_repository_link\030\001 \001(\tB9\340A\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\020\n" + + "\003dir\030\002 \001(\tB\003\340A\002\022\025\n" + + "\010revision\030\003 \001(\tB\003\340A\002\032\204\001\n" + + "\026DeveloperConnectSource\022j\n" + + "\006config\030\001 \001(\0132U.google.cloud.aiplatform.v1.ReasoningEngineSpec.So" + + "urceCodeSpec.DeveloperConnectConfigB\003\340A\002\032\202\001\n\n" + "PythonSpec\022\024\n" + "\007version\030\001 \001(\tB\003\340A\001\022\036\n" + "\021entrypoint_module\030\002 \001(\tB\003\340A\001\022\036\n" @@ -133,27 +152,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\007 \001(\tB\003\340A\001\022B\n" - + "\004spec\030\003" - + " \001(\0132/.google.cloud.aiplatform.v1.ReasoningEngineSpecB\003\340A\001\0224\n" + + "\004spec\030\003 \001(\0132/.google.clo" + + "ud.aiplatform.v1.ReasoningEngineSpecB\003\340A\001\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + "\004etag\030\006 \001(\tB\003\340A\001\022C\n" + "\017encryption_spec\030\013" + " \001(\0132*.google.cloud.aiplatform.v1.EncryptionSpec\022G\n" - + "\006labels\030\021 \003(\0132" - + "7.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\032-\n" + + "\006labels\030\021" + + " \003(\01327.google.cloud.aiplatform.v1.ReasoningEngine.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n" - + ")aiplatform.googleapis.com/ReasoningEngine\022Kproje" - + "cts/{project}/locations/{location}/reaso" - + "ningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngineB\322\001\n" - + "\036com.google.cloud.aiplatform.v1B\024ReasoningEnginePro" - + "toP\001Z>cloud.google.com/go/aiplatform/api" - + "v1/aiplatformpb;aiplatformpb\252\002\032Google.Cl" - + "oud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatf" - + "orm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + ")aiplatform.googleapis.com/ReasoningEngine\022Kprojects/{project}/locations/{l" + + "ocation}/reasoningEngines/{reasoning_eng" + + "ine}*\020reasoningEngines2\017reasoningEngineB\364\002\n" + + "\036com.google.cloud.aiplatform.v1B\024ReasoningEngineProtoP\001Z>cloud.google.com/go/" + + "aiplatform/apiv1/aiplatformpb;aiplatform" + + "pb\252\002\032Google.Cloud.AIPlatform.V1\312\002\032Google" + + "\\Cloud\\AIPlatform\\V1\352\002\035Google::Cloud::AIPlatform::V1\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{p" + + "roject}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_re" + + "pository_link}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -225,7 +246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor, new java.lang.String[] { - "InlineSource", "PythonSpec", "Source", "LanguageSpec", + "InlineSource", "DeveloperConnectSource", "PythonSpec", "Source", "LanguageSpec", }); internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_descriptor = internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor @@ -237,10 +258,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SourceArchive", }); - internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor = internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor, + new java.lang.String[] { + "GitRepositoryLink", "Dir", "Revision", + }); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor = + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor, + new java.lang.String[] { + "Config", + }); + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor, @@ -277,6 +318,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java index 29749c336ab2..706fe5243494 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineSpec.java @@ -153,8 +153,9 @@ public interface PackageSpecOrBuilder * * *
-     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-     * If not specified, default value is 3.10.
+     * Optional. The Python version. Supported values
+     * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+     * is 3.10.
      * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -167,8 +168,9 @@ public interface PackageSpecOrBuilder * * *
-     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-     * If not specified, default value is 3.10.
+     * Optional. The Python version. Supported values
+     * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+     * is 3.10.
      * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -395,8 +397,9 @@ public com.google.protobuf.ByteString getRequirementsGcsUriBytes() { * * *
-     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-     * If not specified, default value is 3.10.
+     * Optional. The Python version. Supported values
+     * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+     * is 3.10.
      * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -420,8 +423,9 @@ public java.lang.String getPythonVersion() { * * *
-     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-     * If not specified, default value is 3.10.
+     * Optional. The Python version. Supported values
+     * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+     * is 3.10.
      * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1205,8 +1209,9 @@ public Builder setRequirementsGcsUriBytes(com.google.protobuf.ByteString value) * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1229,8 +1234,9 @@ public java.lang.String getPythonVersion() { * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1253,8 +1259,9 @@ public com.google.protobuf.ByteString getPythonVersionBytes() { * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1276,8 +1283,9 @@ public Builder setPythonVersion(java.lang.String value) { * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1295,8 +1303,9 @@ public Builder clearPythonVersion() { * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4783,6 +4792,52 @@ public interface SourceCodeSpecOrBuilder com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceOrBuilder getInlineSourceOrBuilder(); + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return Whether the developerConnectSource field is set. + */ + boolean hasDeveloperConnectSource(); + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return The developerConnectSource. + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + getDeveloperConnectSource(); + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder + getDeveloperConnectSourceOrBuilder(); + /** * * @@ -4886,8 +4941,7 @@ public interface InlineSourceOrBuilder * *
        * Required. Input only. The application source code archive, provided as
-       * a compressed tarball
-       * (.tar.gz) file.
+       * a compressed tarball (.tar.gz) file.
        * 
* * @@ -4955,8 +5009,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
        * Required. Input only. The application source code archive, provided as
-       * a compressed tarball
-       * (.tar.gz) file.
+       * a compressed tarball (.tar.gz) file.
        * 
* * @@ -5352,8 +5405,7 @@ public Builder mergeFrom( * *
          * Required. Input only. The application source code archive, provided as
-         * a compressed tarball
-         * (.tar.gz) file.
+         * a compressed tarball (.tar.gz) file.
          * 
* * @@ -5372,8 +5424,7 @@ public com.google.protobuf.ByteString getSourceArchive() { * *
          * Required. Input only. The application source code archive, provided as
-         * a compressed tarball
-         * (.tar.gz) file.
+         * a compressed tarball (.tar.gz) file.
          * 
* * @@ -5398,8 +5449,7 @@ public Builder setSourceArchive(com.google.protobuf.ByteString value) { * *
          * Required. Input only. The application source code archive, provided as
-         * a compressed tarball
-         * (.tar.gz) file.
+         * a compressed tarball (.tar.gz) file.
          * 
* * @@ -5484,273 +5534,180 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface PythonSpecOrBuilder + public interface DeveloperConnectConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) com.google.protobuf.MessageOrBuilder { /** * * *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - java.lang.String getVersion(); - - /** - * - * - *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The Developer Connect Git repository link, formatted as
+       * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The entrypointModule. + * @return The gitRepositoryLink. */ - java.lang.String getEntrypointModule(); + java.lang.String getGitRepositoryLink(); /** * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The Developer Connect Git repository link, formatted as
+       * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for entrypointModule. + * @return The bytes for gitRepositoryLink. */ - com.google.protobuf.ByteString getEntrypointModuleBytes(); + com.google.protobuf.ByteString getGitRepositoryLinkBytes(); /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entrypointObject. + * @return The dir. */ - java.lang.String getEntrypointObject(); + java.lang.String getDir(); /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entrypointObject. + * @return The bytes for dir. */ - com.google.protobuf.ByteString getEntrypointObjectBytes(); + com.google.protobuf.ByteString getDirBytes(); /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository such as a
+       * branch, a tag, a commit SHA, or any Git ref.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The requirementsFile. + * @return The revision. */ - java.lang.String getRequirementsFile(); + java.lang.String getRevision(); /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository such as a
+       * branch, a tag, a commit SHA, or any Git ref.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for requirementsFile. + * @return The bytes for revision. */ - com.google.protobuf.ByteString getRequirementsFileBytes(); + com.google.protobuf.ByteString getRevisionBytes(); } /** * * *
-     * Specification for running a Python application from source.
+     * Specifies the configuration for fetching source code from a Git
+     * repository that is managed by Developer Connect. This includes the
+     * repository, revision, and directory to use.
      * 
* * Protobuf type {@code - * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec} + * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} */ - public static final class PythonSpec extends com.google.protobuf.GeneratedMessageV3 + public static final class DeveloperConnectConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) - PythonSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + DeveloperConnectConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use PythonSpec.newBuilder() to construct. - private PythonSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DeveloperConnectConfig.newBuilder() to construct. + private DeveloperConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PythonSpec() { - version_ = ""; - entrypointModule_ = ""; - entrypointObject_ = ""; - requirementsFile_ = ""; + private DeveloperConnectConfig() { + gitRepositoryLink_ = ""; + dir_ = ""; + revision_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PythonSpec(); + return new DeveloperConnectConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1.ReasoningEngineProto - .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1.ReasoningEngineProto - .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.class, - com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder - .class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; - - /** - * - * - *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder.class); } - public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2; + public static final int GIT_REPOSITORY_LINK_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object entrypointModule_ = ""; + private volatile java.lang.Object gitRepositoryLink_ = ""; /** * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The Developer Connect Git repository link, formatted as
+       * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The entrypointModule. + * @return The gitRepositoryLink. */ @java.lang.Override - public java.lang.String getEntrypointModule() { - java.lang.Object ref = entrypointModule_; + public java.lang.String getGitRepositoryLink() { + java.lang.Object ref = gitRepositoryLink_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - entrypointModule_ = s; + gitRepositoryLink_ = s; return s; } } @@ -5759,58 +5716,55 @@ public java.lang.String getEntrypointModule() { * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The Developer Connect Git repository link, formatted as
+       * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for entrypointModule. + * @return The bytes for gitRepositoryLink. */ @java.lang.Override - public com.google.protobuf.ByteString getEntrypointModuleBytes() { - java.lang.Object ref = entrypointModule_; + public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { + java.lang.Object ref = gitRepositoryLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entrypointModule_ = b; + gitRepositoryLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3; + public static final int DIR_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object entrypointObject_ = ""; + private volatile java.lang.Object dir_ = ""; /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entrypointObject. + * @return The dir. */ @java.lang.Override - public java.lang.String getEntrypointObject() { - java.lang.Object ref = entrypointObject_; + public java.lang.String getDir() { + java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - entrypointObject_ = s; + dir_ = s; return s; } } @@ -5819,54 +5773,53 @@ public java.lang.String getEntrypointObject() { * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entrypointObject. + * @return The bytes for dir. */ @java.lang.Override - public com.google.protobuf.ByteString getEntrypointObjectBytes() { - java.lang.Object ref = entrypointObject_; + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entrypointObject_ = b; + dir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4; + public static final int REVISION_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object requirementsFile_ = ""; + private volatile java.lang.Object revision_ = ""; /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository such as a
+       * branch, a tag, a commit SHA, or any Git ref.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The requirementsFile. + * @return The revision. */ @java.lang.Override - public java.lang.String getRequirementsFile() { - java.lang.Object ref = requirementsFile_; + public java.lang.String getRevision() { + java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - requirementsFile_ = s; + revision_ = s; return s; } } @@ -5875,21 +5828,21 @@ public java.lang.String getRequirementsFile() { * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository such as a
+       * branch, a tag, a commit SHA, or any Git ref.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for requirementsFile. + * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString getRequirementsFileBytes() { - java.lang.Object ref = requirementsFile_; + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requirementsFile_ = b; + revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5910,14 +5863,2237 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitRepositoryLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gitRepositoryLink_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointModule_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entrypointModule_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dir_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointObject_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entrypointObject_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, revision_); + } + 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(gitRepositoryLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gitRepositoryLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dir_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, revision_); + } + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + other = + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig) + obj; + + if (!getGitRepositoryLink().equals(other.getGitRepositoryLink())) return false; + if (!getDir().equals(other.getDir())) return false; + if (!getRevision().equals(other.getRevision())) 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) + GIT_REPOSITORY_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGitRepositoryLink().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + getRevision().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + 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; + } + + /** + * + * + *
+       * Specifies the configuration for fetching source code from a Git
+       * repository that is managed by Developer Connect. This includes the
+       * repository, revision, and directory to use.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gitRepositoryLink_ = ""; + dir_ = ""; + revision_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + build() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + buildPartial() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + result = + new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gitRepositoryLink_ = gitRepositoryLink_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dir_ = dir_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.revision_ = revision_; + } + } + + @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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + other) { + if (other + == com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance()) return this; + if (!other.getGitRepositoryLink().isEmpty()) { + gitRepositoryLink_ = other.gitRepositoryLink_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRevision().isEmpty()) { + revision_ = other.revision_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + gitRepositoryLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + revision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object gitRepositoryLink_ = ""; + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The gitRepositoryLink. + */ + public java.lang.String getGitRepositoryLink() { + java.lang.Object ref = gitRepositoryLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRepositoryLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gitRepositoryLink. + */ + public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { + java.lang.Object ref = gitRepositoryLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitRepositoryLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The gitRepositoryLink to set. + * @return This builder for chaining. + */ + public Builder setGitRepositoryLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gitRepositoryLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearGitRepositoryLink() { + gitRepositoryLink_ = getDefaultInstance().getGitRepositoryLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for gitRepositoryLink to set. + * @return This builder for chaining. + */ + public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitRepositoryLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object revision_ = ""; + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revision. + */ + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revision. + */ + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRevision() { + revision_ = getDefaultInstance().getRevision(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for revision to set. + * @return This builder for chaining. + */ + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + private static final com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig(); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeveloperConnectConfig 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DeveloperConnectSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + getConfig(); + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder + getConfigOrBuilder(); + } + + /** + * + * + *
+     * Specifies source code to be fetched from a Git repository managed through
+     * the Developer Connect service.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} + */ + public static final class DeveloperConnectSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + DeveloperConnectSourceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeveloperConnectSource.newBuilder() to construct. + private DeveloperConnectSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeveloperConnectSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeveloperConnectSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder.class); + } + + private int bitField0_; + public static final int CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + config_; + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getConfig() { + return config_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance() + : config_; + } + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder + getConfigOrBuilder() { + return config_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance() + : config_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + } + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + other = + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + obj; + + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) 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 (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + 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; + } + + /** + * + * + *
+       * Specifies source code to be fetched from a Git repository managed through
+       * the Developer Connect service.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + build() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + buildPartial() { + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + result = + new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + other) { + if (other + == com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance()) return this; + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + 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(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder> + configBuilder_; + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + .Builder + builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfig( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ + != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder + getConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder + getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance() + : config_; + } + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + @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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + private static final com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource(); + } + + public static com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeveloperConnectSource 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.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PythonSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointModule. + */ + java.lang.String getEntrypointModule(); + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointModule. + */ + com.google.protobuf.ByteString getEntrypointModuleBytes(); + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointObject. + */ + java.lang.String getEntrypointObject(); + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointObject. + */ + com.google.protobuf.ByteString getEntrypointObjectBytes(); + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsFile. + */ + java.lang.String getRequirementsFile(); + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requirementsFile. + */ + com.google.protobuf.ByteString getRequirementsFileBytes(); + } + + /** + * + * + *
+     * Specification for running a Python application from source.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec} + */ + public static final class PythonSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + PythonSpecOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PythonSpec.newBuilder() to construct. + private PythonSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PythonSpec() { + version_ = ""; + entrypointModule_ = ""; + entrypointObject_ = ""; + requirementsFile_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PythonSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.class, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder + .class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 ENTRYPOINT_MODULE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrypointModule_ = ""; + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointModule. + */ + @java.lang.Override + public java.lang.String getEntrypointModule() { + java.lang.Object ref = entrypointModule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrypointModule_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointModule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrypointModuleBytes() { + java.lang.Object ref = entrypointModule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrypointModule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrypointObject_ = ""; + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointObject. + */ + @java.lang.Override + public java.lang.String getEntrypointObject() { + java.lang.Object ref = entrypointObject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrypointObject_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointObject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrypointObjectBytes() { + java.lang.Object ref = entrypointObject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrypointObject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requirementsFile_ = ""; + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsFile. + */ + @java.lang.Override + public java.lang.String getRequirementsFile() { + java.lang.Object ref = requirementsFile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requirementsFile_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requirementsFile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequirementsFileBytes() { + java.lang.Object ref = requirementsFile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requirementsFile_ = 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(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointModule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entrypointModule_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointObject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entrypointObject_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requirementsFile_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requirementsFile_); @@ -6916,6 +9092,7 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INLINE_SOURCE(1), + DEVELOPER_CONNECT_SOURCE(3), SOURCE_NOT_SET(0); private final int value; @@ -6937,6 +9114,8 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return INLINE_SOURCE; + case 3: + return DEVELOPER_CONNECT_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -7066,6 +9245,75 @@ public boolean hasInlineSource() { .getDefaultInstance(); } + public static final int DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER = 3; + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return Whether the developerConnectSource field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSource() { + return sourceCase_ == 3; + } + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return The developerConnectSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + getDeveloperConnectSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_; + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder + getDeveloperConnectSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_; + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + public static final int PYTHON_SPEC_FIELD_NUMBER = 2; /** @@ -7158,6 +9406,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) languageSpec_); } + if (sourceCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_); + } getUnknownFields().writeTo(output); } @@ -7181,6 +9436,14 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) languageSpec_); } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7202,6 +9465,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getInlineSource().equals(other.getInlineSource())) return false; break; + case 3: + if (!getDeveloperConnectSource().equals(other.getDeveloperConnectSource())) return false; + break; case 0: default: } @@ -7229,6 +9495,10 @@ public int hashCode() { hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getInlineSource().hashCode(); break; + case 3: + hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperConnectSource().hashCode(); + break; case 0: default: } @@ -7388,6 +9658,9 @@ public Builder clear() { if (inlineSourceBuilder_ != null) { inlineSourceBuilder_.clear(); } + if (developerConnectSourceBuilder_ != null) { + developerConnectSourceBuilder_.clear(); + } if (pythonSpecBuilder_ != null) { pythonSpecBuilder_.clear(); } @@ -7444,6 +9717,9 @@ private void buildPartialOneofs( if (sourceCase_ == 1 && inlineSourceBuilder_ != null) { result.source_ = inlineSourceBuilder_.build(); } + if (sourceCase_ == 3 && developerConnectSourceBuilder_ != null) { + result.source_ = developerConnectSourceBuilder_.build(); + } result.languageSpecCase_ = languageSpecCase_; result.languageSpec_ = this.languageSpec_; if (languageSpecCase_ == 2 && pythonSpecBuilder_ != null) { @@ -7508,6 +9784,11 @@ public Builder mergeFrom( mergeInlineSource(other.getInlineSource()); break; } + case DEVELOPER_CONNECT_SOURCE: + { + mergeDeveloperConnectSource(other.getDeveloperConnectSource()); + break; + } case SOURCE_NOT_SET: { break; @@ -7562,6 +9843,13 @@ public Builder mergeFrom( languageSpecCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage( + getDeveloperConnectSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7870,6 +10158,279 @@ public Builder clearInlineSource() { return inlineSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder> + developerConnectSourceBuilder_; + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return Whether the developerConnectSource field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSource() { + return sourceCase_ == 3; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return The developerConnectSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + getDeveloperConnectSource() { + if (developerConnectSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_; + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return developerConnectSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public Builder setDeveloperConnectSource( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + value) { + if (developerConnectSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + developerConnectSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public Builder setDeveloperConnectSource( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + .Builder + builderForValue) { + if (developerConnectSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + developerConnectSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public Builder mergeDeveloperConnectSource( + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + value) { + if (developerConnectSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.newBuilder( + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + developerConnectSourceBuilder_.mergeFrom(value); + } else { + developerConnectSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public Builder clearDeveloperConnectSource() { + if (developerConnectSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + developerConnectSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder + getDeveloperConnectSourceBuilder() { + return getDeveloperConnectSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder + getDeveloperConnectSourceOrBuilder() { + if ((sourceCase_ == 3) && (developerConnectSourceBuilder_ != null)) { + return developerConnectSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_; + } + return com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder> + getDeveloperConnectSourceFieldBuilder() { + if (developerConnectSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + developerConnectSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder, + com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder>( + (com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return developerConnectSourceBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec, com.google.cloud.aiplatform.v1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec.Builder, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfig.java new file mode 100644 index 000000000000..fdee6783a103 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfig.java @@ -0,0 +1,755 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * The configuration for the replicated voice to use.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReplicatedVoiceConfig} + */ +public final class ReplicatedVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.ReplicatedVoiceConfig) + ReplicatedVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplicatedVoiceConfig.newBuilder() to construct. + private ReplicatedVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplicatedVoiceConfig() { + mimeType_ = ""; + voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplicatedVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.class, + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder.class); + } + + public static final int MIME_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
+   * Optional. The mimetype of the voice sample. The only currently supported
+   * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+   * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+   * set.
+   * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The mimetype of the voice sample. The only currently supported
+   * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+   * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+   * set.
+   * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOICE_SAMPLE_AUDIO_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Optional. The sample of the custom voice.
+   * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleAudio. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceSampleAudio() { + return voiceSampleAudio_; + } + + 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(mimeType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_); + } + if (!voiceSampleAudio_.isEmpty()) { + output.writeBytes(2, voiceSampleAudio_); + } + 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(mimeType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_); + } + if (!voiceSampleAudio_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, voiceSampleAudio_); + } + 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.aiplatform.v1.ReplicatedVoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig other = + (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) obj; + + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getVoiceSampleAudio().equals(other.getVoiceSampleAudio())) 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) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + VOICE_SAMPLE_AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getVoiceSampleAudio().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig 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.aiplatform.v1.ReplicatedVoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig 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.aiplatform.v1.ReplicatedVoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig 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.aiplatform.v1.ReplicatedVoiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig 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.aiplatform.v1.ReplicatedVoiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The configuration for the replicated voice to use.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.ReplicatedVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.ReplicatedVoiceConfig) + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.class, + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_ReplicatedVoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig build() { + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig result = + new com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.voiceSampleAudio_ = voiceSampleAudio_; + } + } + + @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.aiplatform.v1.ReplicatedVoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance()) + return this; + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getVoiceSampleAudio() != com.google.protobuf.ByteString.EMPTY) { + setVoiceSampleAudio(other.getVoiceSampleAudio()); + } + 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: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + voiceSampleAudio_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Optional. The sample of the custom voice.
+     * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleAudio. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceSampleAudio() { + return voiceSampleAudio_; + } + + /** + * + * + *
+     * Optional. The sample of the custom voice.
+     * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The voiceSampleAudio to set. + * @return This builder for chaining. + */ + public Builder setVoiceSampleAudio(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + voiceSampleAudio_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The sample of the custom voice.
+     * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVoiceSampleAudio() { + bitField0_ = (bitField0_ & ~0x00000002); + voiceSampleAudio_ = getDefaultInstance().getVoiceSampleAudio(); + 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.aiplatform.v1.ReplicatedVoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.ReplicatedVoiceConfig) + private static final com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplicatedVoiceConfig 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.aiplatform.v1.ReplicatedVoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfigOrBuilder.java new file mode 100644 index 000000000000..b2788418279e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReplicatedVoiceConfigOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface ReplicatedVoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.ReplicatedVoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The mimetype of the voice sample. The only currently supported
+   * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+   * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+   * set.
+   * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
+   * Optional. The mimetype of the voice sample. The only currently supported
+   * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+   * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+   * set.
+   * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
+   * Optional. The sample of the custom voice.
+   * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleAudio. + */ + com.google.protobuf.ByteString getVoiceSampleAudio(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfig.java new file mode 100644 index 000000000000..1dbe58b77ed7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfig.java @@ -0,0 +1,958 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Configuration for a single speaker in a multi-speaker setup.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SpeakerVoiceConfig} + */ +public final class SpeakerVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SpeakerVoiceConfig) + SpeakerVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SpeakerVoiceConfig.newBuilder() to construct. + private SpeakerVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpeakerVoiceConfig() { + speaker_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeakerVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder.class); + } + + private int bitField0_; + public static final int SPEAKER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object speaker_ = ""; + + /** + * + * + *
+   * Required. The name of the speaker. This should be the same as the speaker
+   * name used in the prompt.
+   * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The speaker. + */ + @java.lang.Override + public java.lang.String getSpeaker() { + java.lang.Object ref = speaker_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + speaker_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the speaker. This should be the same as the speaker
+   * name used in the prompt.
+   * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for speaker. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpeakerBytes() { + java.lang.Object ref = speaker_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + speaker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOICE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1.VoiceConfig voiceConfig_; + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the voiceConfig field is set. + */ + @java.lang.Override + public boolean hasVoiceConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The voiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig() { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + + 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(speaker_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, speaker_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getVoiceConfig()); + } + 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(speaker_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, speaker_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVoiceConfig()); + } + 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.aiplatform.v1.SpeakerVoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig other = + (com.google.cloud.aiplatform.v1.SpeakerVoiceConfig) obj; + + if (!getSpeaker().equals(other.getSpeaker())) return false; + if (hasVoiceConfig() != other.hasVoiceConfig()) return false; + if (hasVoiceConfig()) { + if (!getVoiceConfig().equals(other.getVoiceConfig())) 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) + SPEAKER_FIELD_NUMBER; + hash = (53 * hash) + getSpeaker().hashCode(); + if (hasVoiceConfig()) { + hash = (37 * hash) + VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVoiceConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig 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.aiplatform.v1.SpeakerVoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig 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.aiplatform.v1.SpeakerVoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig 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.aiplatform.v1.SpeakerVoiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig 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.aiplatform.v1.SpeakerVoiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for a single speaker in a multi-speaker setup.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SpeakerVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SpeakerVoiceConfig) + com.google.cloud.aiplatform.v1.SpeakerVoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVoiceConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + speaker_ = ""; + voiceConfig_ = null; + if (voiceConfigBuilder_ != null) { + voiceConfigBuilder_.dispose(); + voiceConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig build() { + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeakerVoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1.SpeakerVoiceConfig result = + new com.google.cloud.aiplatform.v1.SpeakerVoiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SpeakerVoiceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.speaker_ = speaker_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.voiceConfig_ = + voiceConfigBuilder_ == null ? voiceConfig_ : voiceConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.SpeakerVoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.SpeakerVoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpeakerVoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1.SpeakerVoiceConfig.getDefaultInstance()) + return this; + if (!other.getSpeaker().isEmpty()) { + speaker_ = other.speaker_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasVoiceConfig()) { + mergeVoiceConfig(other.getVoiceConfig()); + } + 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: + { + speaker_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getVoiceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object speaker_ = ""; + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The speaker. + */ + public java.lang.String getSpeaker() { + java.lang.Object ref = speaker_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + speaker_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for speaker. + */ + public com.google.protobuf.ByteString getSpeakerBytes() { + java.lang.Object ref = speaker_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + speaker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The speaker to set. + * @return This builder for chaining. + */ + public Builder setSpeaker(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + speaker_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSpeaker() { + speaker_ = getDefaultInstance().getSpeaker(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for speaker to set. + * @return This builder for chaining. + */ + public Builder setSpeakerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + speaker_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.VoiceConfig voiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VoiceConfig, + com.google.cloud.aiplatform.v1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder> + voiceConfigBuilder_; + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the voiceConfig field is set. + */ + public boolean hasVoiceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The voiceConfig. + */ + public com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig() { + if (voiceConfigBuilder_ == null) { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } else { + return voiceConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVoiceConfig(com.google.cloud.aiplatform.v1.VoiceConfig value) { + if (voiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceConfig_ = value; + } else { + voiceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVoiceConfig( + com.google.cloud.aiplatform.v1.VoiceConfig.Builder builderForValue) { + if (voiceConfigBuilder_ == null) { + voiceConfig_ = builderForValue.build(); + } else { + voiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVoiceConfig(com.google.cloud.aiplatform.v1.VoiceConfig value) { + if (voiceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && voiceConfig_ != null + && voiceConfig_ != com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()) { + getVoiceConfigBuilder().mergeFrom(value); + } else { + voiceConfig_ = value; + } + } else { + voiceConfigBuilder_.mergeFrom(value); + } + if (voiceConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVoiceConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + voiceConfig_ = null; + if (voiceConfigBuilder_ != null) { + voiceConfigBuilder_.dispose(); + voiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.VoiceConfig.Builder getVoiceConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getVoiceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() { + if (voiceConfigBuilder_ != null) { + return voiceConfigBuilder_.getMessageOrBuilder(); + } else { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VoiceConfig, + com.google.cloud.aiplatform.v1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder> + getVoiceConfigFieldBuilder() { + if (voiceConfigBuilder_ == null) { + voiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VoiceConfig, + com.google.cloud.aiplatform.v1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder>( + getVoiceConfig(), getParentForChildren(), isClean()); + voiceConfig_ = null; + } + return voiceConfigBuilder_; + } + + @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.aiplatform.v1.SpeakerVoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SpeakerVoiceConfig) + private static final com.google.cloud.aiplatform.v1.SpeakerVoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SpeakerVoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1.SpeakerVoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerVoiceConfig 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.aiplatform.v1.SpeakerVoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfigOrBuilder.java new file mode 100644 index 000000000000..48c8ec28edeb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeakerVoiceConfigOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface SpeakerVoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SpeakerVoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the speaker. This should be the same as the speaker
+   * name used in the prompt.
+   * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The speaker. + */ + java.lang.String getSpeaker(); + + /** + * + * + *
+   * Required. The name of the speaker. This should be the same as the speaker
+   * name used in the prompt.
+   * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for speaker. + */ + com.google.protobuf.ByteString getSpeakerBytes(); + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the voiceConfig field is set. + */ + boolean hasVoiceConfig(); + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The voiceConfig. + */ + com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig(); + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfig.java new file mode 100644 index 000000000000..0d1320f64687 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfig.java @@ -0,0 +1,1242 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Configuration for speech generation.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SpeechConfig} + */ +public final class SpeechConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.SpeechConfig) + SpeechConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SpeechConfig.newBuilder() to construct. + private SpeechConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpeechConfig() { + languageCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeechConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeechConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeechConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeechConfig.class, + com.google.cloud.aiplatform.v1.SpeechConfig.Builder.class); + } + + private int bitField0_; + public static final int VOICE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.VoiceConfig voiceConfig_; + + /** + * + * + *
+   * The configuration for the voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + * + * @return Whether the voiceConfig field is set. + */ + @java.lang.Override + public boolean hasVoiceConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The configuration for the voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + * + * @return The voiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig() { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + + /** + * + * + *
+   * The configuration for the voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + + /** + * + * + *
+   * Optional. The language code (ISO 639-1) for the speech synthesis.
+   * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The language code (ISO 639-1) for the speech synthesis.
+   * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MULTI_SPEAKER_VOICE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multiSpeakerVoiceConfig_; + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return Whether the multiSpeakerVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasMultiSpeakerVoiceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return The multiSpeakerVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig() { + return multiSpeakerVoiceConfig_ == null + ? com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance() + : multiSpeakerVoiceConfig_; + } + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder + getMultiSpeakerVoiceConfigOrBuilder() { + return multiSpeakerVoiceConfig_ == null + ? com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance() + : multiSpeakerVoiceConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getVoiceConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getMultiSpeakerVoiceConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVoiceConfig()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMultiSpeakerVoiceConfig()); + } + 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.aiplatform.v1.SpeechConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.SpeechConfig other = + (com.google.cloud.aiplatform.v1.SpeechConfig) obj; + + if (hasVoiceConfig() != other.hasVoiceConfig()) return false; + if (hasVoiceConfig()) { + if (!getVoiceConfig().equals(other.getVoiceConfig())) return false; + } + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (hasMultiSpeakerVoiceConfig() != other.hasMultiSpeakerVoiceConfig()) return false; + if (hasMultiSpeakerVoiceConfig()) { + if (!getMultiSpeakerVoiceConfig().equals(other.getMultiSpeakerVoiceConfig())) 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 (hasVoiceConfig()) { + hash = (37 * hash) + VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVoiceConfig().hashCode(); + } + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasMultiSpeakerVoiceConfig()) { + hash = (37 * hash) + MULTI_SPEAKER_VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMultiSpeakerVoiceConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig 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.aiplatform.v1.SpeechConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig 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.aiplatform.v1.SpeechConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig 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.aiplatform.v1.SpeechConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig 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.aiplatform.v1.SpeechConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for speech generation.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.SpeechConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.SpeechConfig) + com.google.cloud.aiplatform.v1.SpeechConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeechConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeechConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.SpeechConfig.class, + com.google.cloud.aiplatform.v1.SpeechConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.SpeechConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVoiceConfigFieldBuilder(); + getMultiSpeakerVoiceConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + voiceConfig_ = null; + if (voiceConfigBuilder_ != null) { + voiceConfigBuilder_.dispose(); + voiceConfigBuilder_ = null; + } + languageCode_ = ""; + multiSpeakerVoiceConfig_ = null; + if (multiSpeakerVoiceConfigBuilder_ != null) { + multiSpeakerVoiceConfigBuilder_.dispose(); + multiSpeakerVoiceConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_SpeechConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeechConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeechConfig build() { + com.google.cloud.aiplatform.v1.SpeechConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.SpeechConfig buildPartial() { + com.google.cloud.aiplatform.v1.SpeechConfig result = + new com.google.cloud.aiplatform.v1.SpeechConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.SpeechConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.voiceConfig_ = + voiceConfigBuilder_ == null ? voiceConfig_ : voiceConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.multiSpeakerVoiceConfig_ = + multiSpeakerVoiceConfigBuilder_ == null + ? multiSpeakerVoiceConfig_ + : multiSpeakerVoiceConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.SpeechConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.SpeechConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.SpeechConfig other) { + if (other == com.google.cloud.aiplatform.v1.SpeechConfig.getDefaultInstance()) return this; + if (other.hasVoiceConfig()) { + mergeVoiceConfig(other.getVoiceConfig()); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMultiSpeakerVoiceConfig()) { + mergeMultiSpeakerVoiceConfig(other.getMultiSpeakerVoiceConfig()); + } + 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(getVoiceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getMultiSpeakerVoiceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1.VoiceConfig voiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VoiceConfig, + com.google.cloud.aiplatform.v1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder> + voiceConfigBuilder_; + + /** + * + * + *
+     * The configuration for the voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + * + * @return Whether the voiceConfig field is set. + */ + public boolean hasVoiceConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The configuration for the voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + * + * @return The voiceConfig. + */ + public com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig() { + if (voiceConfigBuilder_ == null) { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } else { + return voiceConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The configuration for the voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + */ + public Builder setVoiceConfig(com.google.cloud.aiplatform.v1.VoiceConfig value) { + if (voiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceConfig_ = value; + } else { + voiceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for the voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + */ + public Builder setVoiceConfig( + com.google.cloud.aiplatform.v1.VoiceConfig.Builder builderForValue) { + if (voiceConfigBuilder_ == null) { + voiceConfig_ = builderForValue.build(); + } else { + voiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for the voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + */ + public Builder mergeVoiceConfig(com.google.cloud.aiplatform.v1.VoiceConfig value) { + if (voiceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && voiceConfig_ != null + && voiceConfig_ != com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()) { + getVoiceConfigBuilder().mergeFrom(value); + } else { + voiceConfig_ = value; + } + } else { + voiceConfigBuilder_.mergeFrom(value); + } + if (voiceConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The configuration for the voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + */ + public Builder clearVoiceConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + voiceConfig_ = null; + if (voiceConfigBuilder_ != null) { + voiceConfigBuilder_.dispose(); + voiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for the voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + */ + public com.google.cloud.aiplatform.v1.VoiceConfig.Builder getVoiceConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getVoiceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The configuration for the voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + */ + public com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() { + if (voiceConfigBuilder_ != null) { + return voiceConfigBuilder_.getMessageOrBuilder(); + } else { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + } + + /** + * + * + *
+     * The configuration for the voice to use.
+     * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VoiceConfig, + com.google.cloud.aiplatform.v1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder> + getVoiceConfigFieldBuilder() { + if (voiceConfigBuilder_ == null) { + voiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.VoiceConfig, + com.google.cloud.aiplatform.v1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder>( + getVoiceConfig(), getParentForChildren(), isClean()); + voiceConfig_ = null; + } + return voiceConfigBuilder_; + } + + private java.lang.Object languageCode_ = ""; + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multiSpeakerVoiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig, + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder> + multiSpeakerVoiceConfigBuilder_; + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return Whether the multiSpeakerVoiceConfig field is set. + */ + public boolean hasMultiSpeakerVoiceConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return The multiSpeakerVoiceConfig. + */ + public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig() { + if (multiSpeakerVoiceConfigBuilder_ == null) { + return multiSpeakerVoiceConfig_ == null + ? com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance() + : multiSpeakerVoiceConfig_; + } else { + return multiSpeakerVoiceConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public Builder setMultiSpeakerVoiceConfig( + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig value) { + if (multiSpeakerVoiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiSpeakerVoiceConfig_ = value; + } else { + multiSpeakerVoiceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public Builder setMultiSpeakerVoiceConfig( + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder builderForValue) { + if (multiSpeakerVoiceConfigBuilder_ == null) { + multiSpeakerVoiceConfig_ = builderForValue.build(); + } else { + multiSpeakerVoiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public Builder mergeMultiSpeakerVoiceConfig( + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig value) { + if (multiSpeakerVoiceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && multiSpeakerVoiceConfig_ != null + && multiSpeakerVoiceConfig_ + != com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance()) { + getMultiSpeakerVoiceConfigBuilder().mergeFrom(value); + } else { + multiSpeakerVoiceConfig_ = value; + } + } else { + multiSpeakerVoiceConfigBuilder_.mergeFrom(value); + } + if (multiSpeakerVoiceConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public Builder clearMultiSpeakerVoiceConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + multiSpeakerVoiceConfig_ = null; + if (multiSpeakerVoiceConfigBuilder_ != null) { + multiSpeakerVoiceConfigBuilder_.dispose(); + multiSpeakerVoiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder + getMultiSpeakerVoiceConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMultiSpeakerVoiceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder + getMultiSpeakerVoiceConfigOrBuilder() { + if (multiSpeakerVoiceConfigBuilder_ != null) { + return multiSpeakerVoiceConfigBuilder_.getMessageOrBuilder(); + } else { + return multiSpeakerVoiceConfig_ == null + ? com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.getDefaultInstance() + : multiSpeakerVoiceConfig_; + } + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig, + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder> + getMultiSpeakerVoiceConfigFieldBuilder() { + if (multiSpeakerVoiceConfigBuilder_ == null) { + multiSpeakerVoiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig, + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder>( + getMultiSpeakerVoiceConfig(), getParentForChildren(), isClean()); + multiSpeakerVoiceConfig_ = null; + } + return multiSpeakerVoiceConfigBuilder_; + } + + @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.aiplatform.v1.SpeechConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.SpeechConfig) + private static final com.google.cloud.aiplatform.v1.SpeechConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.SpeechConfig(); + } + + public static com.google.cloud.aiplatform.v1.SpeechConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechConfig 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.aiplatform.v1.SpeechConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfigOrBuilder.java new file mode 100644 index 000000000000..dd8b8cd67d63 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/SpeechConfigOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface SpeechConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.SpeechConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The configuration for the voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + * + * @return Whether the voiceConfig field is set. + */ + boolean hasVoiceConfig(); + + /** + * + * + *
+   * The configuration for the voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + * + * @return The voiceConfig. + */ + com.google.cloud.aiplatform.v1.VoiceConfig getVoiceConfig(); + + /** + * + * + *
+   * The configuration for the voice to use.
+   * 
+ * + * .google.cloud.aiplatform.v1.VoiceConfig voice_config = 1; + */ + com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder getVoiceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The language code (ISO 639-1) for the speech synthesis.
+   * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + + /** + * + * + *
+   * Optional. The language code (ISO 639-1) for the speech synthesis.
+   * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return Whether the multiSpeakerVoiceConfig field is set. + */ + boolean hasMultiSpeakerVoiceConfig(); + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return The multiSpeakerVoiceConfig. + */ + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig(); + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + com.google.cloud.aiplatform.v1.MultiSpeakerVoiceConfigOrBuilder + getMultiSpeakerVoiceConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfig.java new file mode 100644 index 000000000000..b08b54d9c179 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfig.java @@ -0,0 +1,1188 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Configuration for a voice.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.VoiceConfig} + */ +public final class VoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.VoiceConfig) + VoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use VoiceConfig.newBuilder() to construct. + private VoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private VoiceConfig() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new VoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_VoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_VoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VoiceConfig.class, + com.google.cloud.aiplatform.v1.VoiceConfig.Builder.class); + } + + private int voiceConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object voiceConfig_; + + public enum VoiceConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PREBUILT_VOICE_CONFIG(1), + REPLICATED_VOICE_CONFIG(3), + VOICECONFIG_NOT_SET(0); + private final int value; + + private VoiceConfigCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VoiceConfigCase valueOf(int value) { + return forNumber(value); + } + + public static VoiceConfigCase forNumber(int value) { + switch (value) { + case 1: + return PREBUILT_VOICE_CONFIG; + case 3: + return REPLICATED_VOICE_CONFIG; + case 0: + return VOICECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public VoiceConfigCase getVoiceConfigCase() { + return VoiceConfigCase.forNumber(voiceConfigCase_); + } + + public static final int PREBUILT_VOICE_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
+   * The configuration for a prebuilt voice.
+   * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return Whether the prebuiltVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasPrebuiltVoiceConfig() { + return voiceConfigCase_ == 1; + } + + /** + * + * + *
+   * The configuration for a prebuilt voice.
+   * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return The prebuiltVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig getPrebuiltVoiceConfig() { + if (voiceConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * The configuration for a prebuilt voice.
+   * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder + getPrebuiltVoiceConfigOrBuilder() { + if (voiceConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance(); + } + + public static final int REPLICATED_VOICE_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the replicatedVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasReplicatedVoiceConfig() { + return voiceConfigCase_ == 3; + } + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The replicatedVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getReplicatedVoiceConfig() { + if (voiceConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder + getReplicatedVoiceConfigOrBuilder() { + if (voiceConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (voiceConfigCase_ == 1) { + output.writeMessage(1, (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_); + } + if (voiceConfigCase_ == 3) { + output.writeMessage(3, (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (voiceConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_); + } + if (voiceConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_); + } + 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.aiplatform.v1.VoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.VoiceConfig other = + (com.google.cloud.aiplatform.v1.VoiceConfig) obj; + + if (!getVoiceConfigCase().equals(other.getVoiceConfigCase())) return false; + switch (voiceConfigCase_) { + case 1: + if (!getPrebuiltVoiceConfig().equals(other.getPrebuiltVoiceConfig())) return false; + break; + case 3: + if (!getReplicatedVoiceConfig().equals(other.getReplicatedVoiceConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (voiceConfigCase_) { + case 1: + hash = (37 * hash) + PREBUILT_VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getPrebuiltVoiceConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + REPLICATED_VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getReplicatedVoiceConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig 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.aiplatform.v1.VoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig 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.aiplatform.v1.VoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig 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.aiplatform.v1.VoiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig 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.aiplatform.v1.VoiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for a voice.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.VoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.VoiceConfig) + com.google.cloud.aiplatform.v1.VoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_VoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_VoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.VoiceConfig.class, + com.google.cloud.aiplatform.v1.VoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.VoiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (prebuiltVoiceConfigBuilder_ != null) { + prebuiltVoiceConfigBuilder_.clear(); + } + if (replicatedVoiceConfigBuilder_ != null) { + replicatedVoiceConfigBuilder_.clear(); + } + voiceConfigCase_ = 0; + voiceConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ContentProto + .internal_static_google_cloud_aiplatform_v1_VoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VoiceConfig build() { + com.google.cloud.aiplatform.v1.VoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.VoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1.VoiceConfig result = + new com.google.cloud.aiplatform.v1.VoiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.VoiceConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.VoiceConfig result) { + result.voiceConfigCase_ = voiceConfigCase_; + result.voiceConfig_ = this.voiceConfig_; + if (voiceConfigCase_ == 1 && prebuiltVoiceConfigBuilder_ != null) { + result.voiceConfig_ = prebuiltVoiceConfigBuilder_.build(); + } + if (voiceConfigCase_ == 3 && replicatedVoiceConfigBuilder_ != null) { + result.voiceConfig_ = replicatedVoiceConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.VoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1.VoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.VoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1.VoiceConfig.getDefaultInstance()) return this; + switch (other.getVoiceConfigCase()) { + case PREBUILT_VOICE_CONFIG: + { + mergePrebuiltVoiceConfig(other.getPrebuiltVoiceConfig()); + break; + } + case REPLICATED_VOICE_CONFIG: + { + mergeReplicatedVoiceConfig(other.getReplicatedVoiceConfig()); + break; + } + case VOICECONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getPrebuiltVoiceConfigFieldBuilder().getBuilder(), extensionRegistry); + voiceConfigCase_ = 1; + break; + } // case 10 + case 26: + { + input.readMessage( + getReplicatedVoiceConfigFieldBuilder().getBuilder(), extensionRegistry); + voiceConfigCase_ = 3; + 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 voiceConfigCase_ = 0; + private java.lang.Object voiceConfig_; + + public VoiceConfigCase getVoiceConfigCase() { + return VoiceConfigCase.forNumber(voiceConfigCase_); + } + + public Builder clearVoiceConfig() { + voiceConfigCase_ = 0; + voiceConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig, + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder> + prebuiltVoiceConfigBuilder_; + + /** + * + * + *
+     * The configuration for a prebuilt voice.
+     * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return Whether the prebuiltVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasPrebuiltVoiceConfig() { + return voiceConfigCase_ == 1; + } + + /** + * + * + *
+     * The configuration for a prebuilt voice.
+     * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return The prebuiltVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig getPrebuiltVoiceConfig() { + if (prebuiltVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance(); + } else { + if (voiceConfigCase_ == 1) { + return prebuiltVoiceConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The configuration for a prebuilt voice.
+     * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public Builder setPrebuiltVoiceConfig( + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig value) { + if (prebuiltVoiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceConfig_ = value; + onChanged(); + } else { + prebuiltVoiceConfigBuilder_.setMessage(value); + } + voiceConfigCase_ = 1; + return this; + } + + /** + * + * + *
+     * The configuration for a prebuilt voice.
+     * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public Builder setPrebuiltVoiceConfig( + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder builderForValue) { + if (prebuiltVoiceConfigBuilder_ == null) { + voiceConfig_ = builderForValue.build(); + onChanged(); + } else { + prebuiltVoiceConfigBuilder_.setMessage(builderForValue.build()); + } + voiceConfigCase_ = 1; + return this; + } + + /** + * + * + *
+     * The configuration for a prebuilt voice.
+     * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public Builder mergePrebuiltVoiceConfig( + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig value) { + if (prebuiltVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 1 + && voiceConfig_ + != com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance()) { + voiceConfig_ = + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.newBuilder( + (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + voiceConfig_ = value; + } + onChanged(); + } else { + if (voiceConfigCase_ == 1) { + prebuiltVoiceConfigBuilder_.mergeFrom(value); + } else { + prebuiltVoiceConfigBuilder_.setMessage(value); + } + } + voiceConfigCase_ = 1; + return this; + } + + /** + * + * + *
+     * The configuration for a prebuilt voice.
+     * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public Builder clearPrebuiltVoiceConfig() { + if (prebuiltVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 1) { + voiceConfigCase_ = 0; + voiceConfig_ = null; + onChanged(); + } + } else { + if (voiceConfigCase_ == 1) { + voiceConfigCase_ = 0; + voiceConfig_ = null; + } + prebuiltVoiceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The configuration for a prebuilt voice.
+     * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder + getPrebuiltVoiceConfigBuilder() { + return getPrebuiltVoiceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The configuration for a prebuilt voice.
+     * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder + getPrebuiltVoiceConfigOrBuilder() { + if ((voiceConfigCase_ == 1) && (prebuiltVoiceConfigBuilder_ != null)) { + return prebuiltVoiceConfigBuilder_.getMessageOrBuilder(); + } else { + if (voiceConfigCase_ == 1) { + return (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * The configuration for a prebuilt voice.
+     * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig, + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder> + getPrebuiltVoiceConfigFieldBuilder() { + if (prebuiltVoiceConfigBuilder_ == null) { + if (!(voiceConfigCase_ == 1)) { + voiceConfig_ = com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.getDefaultInstance(); + } + prebuiltVoiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig, + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder>( + (com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig) voiceConfig_, + getParentForChildren(), + isClean()); + voiceConfig_ = null; + } + voiceConfigCase_ = 1; + onChanged(); + return prebuiltVoiceConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig, + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder> + replicatedVoiceConfigBuilder_; + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the replicatedVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasReplicatedVoiceConfig() { + return voiceConfigCase_ == 3; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The replicatedVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getReplicatedVoiceConfig() { + if (replicatedVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance(); + } else { + if (voiceConfigCase_ == 3) { + return replicatedVoiceConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReplicatedVoiceConfig( + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig value) { + if (replicatedVoiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceConfig_ = value; + onChanged(); + } else { + replicatedVoiceConfigBuilder_.setMessage(value); + } + voiceConfigCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReplicatedVoiceConfig( + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder builderForValue) { + if (replicatedVoiceConfigBuilder_ == null) { + voiceConfig_ = builderForValue.build(); + onChanged(); + } else { + replicatedVoiceConfigBuilder_.setMessage(builderForValue.build()); + } + voiceConfigCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeReplicatedVoiceConfig( + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig value) { + if (replicatedVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 3 + && voiceConfig_ + != com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance()) { + voiceConfig_ = + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.newBuilder( + (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + voiceConfig_ = value; + } + onChanged(); + } else { + if (voiceConfigCase_ == 3) { + replicatedVoiceConfigBuilder_.mergeFrom(value); + } else { + replicatedVoiceConfigBuilder_.setMessage(value); + } + } + voiceConfigCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReplicatedVoiceConfig() { + if (replicatedVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 3) { + voiceConfigCase_ = 0; + voiceConfig_ = null; + onChanged(); + } + } else { + if (voiceConfigCase_ == 3) { + voiceConfigCase_ = 0; + voiceConfig_ = null; + } + replicatedVoiceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder + getReplicatedVoiceConfigBuilder() { + return getReplicatedVoiceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder + getReplicatedVoiceConfigOrBuilder() { + if ((voiceConfigCase_ == 3) && (replicatedVoiceConfigBuilder_ != null)) { + return replicatedVoiceConfigBuilder_.getMessageOrBuilder(); + } else { + if (voiceConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig, + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder> + getReplicatedVoiceConfigFieldBuilder() { + if (replicatedVoiceConfigBuilder_ == null) { + if (!(voiceConfigCase_ == 3)) { + voiceConfig_ = com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.getDefaultInstance(); + } + replicatedVoiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig, + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig.Builder, + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder>( + (com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig) voiceConfig_, + getParentForChildren(), + isClean()); + voiceConfig_ = null; + } + voiceConfigCase_ = 3; + onChanged(); + return replicatedVoiceConfigBuilder_; + } + + @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.aiplatform.v1.VoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.VoiceConfig) + private static final com.google.cloud.aiplatform.v1.VoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.VoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1.VoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VoiceConfig 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.aiplatform.v1.VoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfigOrBuilder.java new file mode 100644 index 000000000000..51353e2922ed --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VoiceConfigOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface VoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.VoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The configuration for a prebuilt voice.
+   * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return Whether the prebuiltVoiceConfig field is set. + */ + boolean hasPrebuiltVoiceConfig(); + + /** + * + * + *
+   * The configuration for a prebuilt voice.
+   * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + * + * @return The prebuiltVoiceConfig. + */ + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfig getPrebuiltVoiceConfig(); + + /** + * + * + *
+   * The configuration for a prebuilt voice.
+   * 
+ * + * .google.cloud.aiplatform.v1.PrebuiltVoiceConfig prebuilt_voice_config = 1; + */ + com.google.cloud.aiplatform.v1.PrebuiltVoiceConfigOrBuilder getPrebuiltVoiceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the replicatedVoiceConfig field is set. + */ + boolean hasReplicatedVoiceConfig(); + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The replicatedVoiceConfig. + */ + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfig getReplicatedVoiceConfig(); + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.ReplicatedVoiceConfigOrBuilder getReplicatedVoiceConfigOrBuilder(); + + com.google.cloud.aiplatform.v1.VoiceConfig.VoiceConfigCase getVoiceConfigCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto index 58883bfc726b..55041862d78c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/content.proto @@ -184,6 +184,70 @@ message VideoMetadata { [(google.api.field_behavior) = OPTIONAL]; } +// Configuration for a prebuilt voice. +message PrebuiltVoiceConfig { + // The name of the prebuilt voice to use. + optional string voice_name = 1; +} + +// The configuration for the replicated voice to use. +message ReplicatedVoiceConfig { + // Optional. The mimetype of the voice sample. The only currently supported + // value is `audio/wav`. This represents 16-bit signed little-endian wav data, + // with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not + // set. + string mime_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sample of the custom voice. + bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL]; +} + + +// Configuration for a voice. +message VoiceConfig { + // The configuration for the speaker to use. + oneof voice_config { + // The configuration for a prebuilt voice. + PrebuiltVoiceConfig prebuilt_voice_config = 1; + + // Optional. The configuration for a replicated voice. This enables users to + // replicate a voice from an audio sample. + ReplicatedVoiceConfig replicated_voice_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Configuration for a single speaker in a multi-speaker setup. +message SpeakerVoiceConfig { + // Required. The name of the speaker. This should be the same as the speaker + // name used in the prompt. + string speaker = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The configuration for the voice of this speaker. + VoiceConfig voice_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for a multi-speaker text-to-speech request. +message MultiSpeakerVoiceConfig { + // Required. A list of configurations for the voices of the speakers. Exactly + // two speaker voice configurations must be provided. + repeated SpeakerVoiceConfig speaker_voice_configs = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for speech generation. +message SpeechConfig { + // The configuration for the voice to use. + VoiceConfig voice_config = 1; + + // Optional. The language code (ISO 639-1) for the speech synthesis. + string language_code = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The configuration for a multi-speaker text-to-speech request. + // This field is mutually exclusive with `voice_config`. + MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; +} + // Config for image generation features. message ImageConfig { // Optional. The desired aspect ratio for the generated images. The following @@ -347,6 +411,10 @@ message GenerationConfig { optional RoutingConfig routing_config = 17 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The speech generation config. + optional SpeechConfig speech_config = 23 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Config for thinking features. // An error will be returned if this field is set for models that don't // support thinking. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto index 4f75c52bb721..769a46305bd9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/feature_online_store.proto @@ -82,6 +82,11 @@ message FeatureOnlineStore { // Output only. Metadata of the Bigtable instance. Output only. BigtableMetadata bigtable_metadata = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The zone where the underlying Bigtable cluster for the primary + // Bigtable instance will be provisioned. Only the zone must be provided. + // For example, only "us-central1-a" should be provided. + string zone = 5 [(google.api.field_behavior) = OPTIONAL]; } // Optimized storage type diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto index 05310b218145..e82856202e02 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/machine_resources.proto @@ -54,6 +54,25 @@ message MachineSpec { // The number of accelerators to attach to the machine. int32 accelerator_count = 3; + // Optional. Immutable. The Nvidia GPU partition size. + // + // When specified, the requested accelerators will be partitioned into + // smaller GPU partitions. For example, if the request is for 8 units of + // NVIDIA A100 GPUs, and gpu_partition_size="1g.10gb", the service will + // create 8 * 7 = 56 partitioned MIG instances. + // + // The partition size must be a value supported by the requested accelerator. + // Refer to + // [Nvidia GPU + // Partitioning](https://cloud.google.com/kubernetes-engine/docs/how-to/gpus-multi#multi-instance_gpu_partitions) + // for the available partition sizes. + // + // If set, the accelerator_count should be set to 1. + string gpu_partition_size = 7 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OPTIONAL + ]; + // Immutable. The topology of the TPUs. Corresponds to the TPU topologies // available from GKE. (Example: tpu_topology: "2x2x1"). string tpu_topology = 4 [(google.api.field_behavior) = IMMUTABLE]; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto index a969d3e32a13..440d1e19484d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine.proto @@ -31,6 +31,10 @@ option java_outer_classname = "ReasoningEngineProto"; option java_package = "com.google.cloud.aiplatform.v1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; option ruby_package = "Google::Cloud::AIPlatform::V1"; +option (google.api.resource_definition) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}" +}; // ReasoningEngine configurations message ReasoningEngineSpec { @@ -47,8 +51,9 @@ message ReasoningEngineSpec { // Optional. The Cloud Storage URI of the `requirements.txt` file string requirements_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11. - // If not specified, default value is 3.10. + // Optional. The Python version. Supported values + // are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value + // is 3.10. string python_version = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -104,14 +109,45 @@ message ReasoningEngineSpec { // Specifies source code provided as a byte stream. message InlineSource { // Required. Input only. The application source code archive, provided as - // a compressed tarball - // (.tar.gz) file. + // a compressed tarball (.tar.gz) file. bytes source_archive = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = INPUT_ONLY ]; } + // Specifies the configuration for fetching source code from a Git + // repository that is managed by Developer Connect. This includes the + // repository, revision, and directory to use. + message DeveloperConnectConfig { + // Required. The Developer Connect Git repository link, formatted as + // `projects/*/locations/*/connections/*/gitRepositoryLink/*`. + string git_repository_link = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. Directory, relative to the source root, in which to run the + // build. + string dir = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The revision to fetch from the Git repository such as a + // branch, a tag, a commit SHA, or any Git ref. + string revision = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // Specifies source code to be fetched from a Git repository managed through + // the Developer Connect service. + message DeveloperConnectSource { + // Required. The Developer Connect configuration that defines the + // specific repository, revision, and directory to use as the source code + // root. + DeveloperConnectConfig config = 1 + [(google.api.field_behavior) = REQUIRED]; + } + // Specification for running a Python application from source. message PythonSpec { // Optional. The version of Python to use. Support version @@ -141,6 +177,9 @@ message ReasoningEngineSpec { oneof source { // Source code is provided directly in the request. InlineSource inline_source = 1; + + // Source code is in a Git repository managed by Developer Connect. + DeveloperConnectSource developer_connect_source = 3; } // Specifies the language-specific configuration for building and running diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java index 6b898f2264cb..c43ce838f5d1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ContentProto.java @@ -52,10 +52,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_PrebuiltVoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_VoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_SpeechConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -237,13 +249,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "end_offset\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\"=\n" + "\023PrebuiltVoiceConfig\022\027\n\n" + "voice_name\030\001 \001(\tH\000\210\001\001B\r\n" - + "\013_voice_name\"t\n" + + "\013_voice_name\"P\n" + + "\025ReplicatedVoiceConfig\022\026\n" + + "\tmime_type\030\001 \001(\tB\003\340A\001\022\037\n" + + "\022voice_sample_audio\030\002 \001(\014B\003\340A\001\"\324\001\n" + "\013VoiceConfig\022U\n" + "\025prebuilt_voice_config\030\001" - + " \001(\01324.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigH\000B\016\n" - + "\014voice_config\"R\n" + + " \001(\01324.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigH\000\022^\n" + + "\027replicated_voice_config\030\003 \001(\01326.google.c" + + "loud.aiplatform.v1beta1.ReplicatedVoiceConfigB\003\340A\001H\000B\016\n" + + "\014voice_config\"s\n" + + "\022SpeakerVoiceConfig\022\024\n" + + "\007speaker\030\001 \001(\tB\003\340A\002\022G\n" + + "\014voice_config\030\002" + + " \001(\0132,.google.cloud.aiplatform.v1beta1.VoiceConfigB\003\340A\002\"r\n" + + "\027MultiSpeakerVoiceConfig\022W\n" + + "\025speaker_voice_configs\030\002 " + + "\003(\01323.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigB\003\340A\002\"\314\001\n" + "\014SpeechConfig\022B\n" - + "\014voice_config\030\001 \001(\0132,.google.cloud.aiplatform.v1beta1.VoiceConfig\">\n" + + "\014voice_config\030\001" + + " \001(\0132,.google.cloud.aiplatform.v1beta1.VoiceConfig\022\032\n\r" + + "language_code\030\002 \001(\tB\003\340A\001\022\\\n" + + "\032multi_speaker_voice_config\030\003" + + " \001(\01328.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig\">\n" + "\013ImageConfig\022\036\n" + "\014aspect_ratio\030\002 \001(\tB\003\340A\001H\000\210\001\001B\017\n\r" + "_aspect_ratio\"\256\025\n" @@ -261,36 +289,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004seed\030\014 \001(\005B\003\340A\001H\t\210\001\001\022\037\n" + "\022response_mime_type\030\r" + " \001(\tB\003\340A\001\022J\n" - + "\017response_schema\030\020" - + " \001(\0132\'.google.cloud.aiplatform.v1beta1.SchemaB\003\340A\001H\n" + + "\017response_schema\030\020 \001(\0132\'.go" + + "ogle.cloud.aiplatform.v1beta1.SchemaB\003\340A\001H\n" + "\210\001\001\022>\n" + "\024response_json_schema\030\034" + " \001(\0132\026.google.protobuf.ValueB\003\340A\001H\013\210\001\001\022a\n" - + "\016routing_config\030\021 \001(\0132" - + "?.google.cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022!\n" + + "\016routing_config\030\021 \001(\0132?.google.cloud.aiplatform" + + ".v1beta1.GenerationConfig.RoutingConfigB\003\340A\001H\014\210\001\001\022!\n" + "\017audio_timestamp\030\024 \001(\010B\003\340A\001H\r" + "\210\001\001\022\\\n" - + "\023response_modalities\030\025 \003(\0162:.google.cloud.aiplat" - + "form.v1beta1.GenerationConfig.ModalityB\003\340A\001\022e\n" - + "\020media_resolution\030\026 \001(\0162A.google.c" - + "loud.aiplatform.v1beta1.GenerationConfig.MediaResolutionB\003\340A\001H\016\210\001\001\022N\n\r" - + "speech_config\030\027" - + " \001(\0132-.google.cloud.aiplatform.v1beta1.SpeechConfigB\003\340A\001H\017\210\001\001\022^\n" - + "\017thinking_config\030\031 \001(\0132@.google.cloud.aiplatform.v1" - + "beta1.GenerationConfig.ThinkingConfigB\003\340A\001\022X\n" - + "\014model_config\030\033 \001(\0132=.google.cloud." - + "aiplatform.v1beta1.GenerationConfig.ModelConfigB\003\340A\001\022L\n" - + "\014image_config\030\036 \001(\0132,.goo" - + "gle.cloud.aiplatform.v1beta1.ImageConfigB\003\340A\001H\020\210\001\001\032\321\004\n\r" + + "\023response_modalities\030\025 \003(\0162:.goog" + + "le.cloud.aiplatform.v1beta1.GenerationConfig.ModalityB\003\340A\001\022e\n" + + "\020media_resolution\030\026 \001(\0162A.google.cloud.aiplatform.v1beta1.G" + + "enerationConfig.MediaResolutionB\003\340A\001H\016\210\001\001\022N\n\r" + + "speech_config\030\027 \001(\0132-.google.cloud." + + "aiplatform.v1beta1.SpeechConfigB\003\340A\001H\017\210\001\001\022^\n" + + "\017thinking_config\030\031 \001(\0132@.google.clou" + + "d.aiplatform.v1beta1.GenerationConfig.ThinkingConfigB\003\340A\001\022X\n" + + "\014model_config\030\033 \001(\0132" + + "=.google.cloud.aiplatform.v1beta1.GenerationConfig.ModelConfigB\003\340A\001\022L\n" + + "\014image_config\030\036" + + " \001(\0132,.google.cloud.aiplatform.v1beta1.ImageConfigB\003\340A\001H\020\210\001\001\032\321\004\n\r" + "RoutingConfig\022d\n" - + "\tauto_mode\030\001 \001(\0132O.google.cloud.aiplatform.v1beta" - + "1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022h\n" - + "\013manual_mode\030\002 \001(\0132Q.google" - + ".cloud.aiplatform.v1beta1.GenerationConfig.RoutingConfig.ManualRoutingModeH\000\032\240\002\n" + + "\tauto_mode\030\001 \001(\0132O.google.cloud.ai" + + "platform.v1beta1.GenerationConfig.RoutingConfig.AutoRoutingModeH\000\022h\n" + + "\013manual_mode\030\002 \001(\0132Q.google.cloud.aiplatform.v1beta1" + + ".GenerationConfig.RoutingConfig.ManualRoutingModeH\000\032\240\002\n" + "\017AutoRoutingMode\022\215\001\n" - + "\030model_routing_preference\030\001 \001(\0162f.google.cloud.aiplatform.v1" - + "beta1.GenerationConfig.RoutingConfig.Aut" - + "oRoutingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n" + + "\030model_routing_preference\030\001 \001(\0162f.google.clou" + + "d.aiplatform.v1beta1.GenerationConfig.Ro" + + "utingConfig.AutoRoutingMode.ModelRoutingPreferenceH\000\210\001\001\"`\n" + "\026ModelRoutingPreference\022\013\n" + "\007UNKNOWN\020\000\022\026\n" + "\022PRIORITIZE_QUALITY\020\001\022\014\n" @@ -307,9 +335,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021_include_thoughtsB\022\n" + "\020_thinking_budget\032\233\002\n" + "\013ModelConfig\022\203\001\n" - + "\034feature_selection_preference\030\001 \001(\0162X.googl" - + "e.cloud.aiplatform.v1beta1.GenerationCon" - + "fig.ModelConfig.FeatureSelectionPreferenceB\003\340A\002\"\205\001\n" + + "\034feature_selection_preference\030\001 \001(\0162X.google.cloud.aiplatform.v1beta" + + "1.GenerationConfig.ModelConfig.FeatureSelectionPreferenceB\003\340A\002\"\205\001\n" + "\032FeatureSelectionPreference\022,\n" + "(FEATURE_SELECTION_PREFERENCE_UNSPECIFIED\020\000\022\026\n" + "\022PRIORITIZE_QUALITY\020\001\022\014\n" @@ -340,16 +367,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017_routing_configB\022\n" + "\020_audio_timestampB\023\n" + "\021_media_resolutionB\020\n" - + "\016_speech_configB\017\n" - + "\r" + + "\016_speech_configB\017\n\r" + "_image_config\"\372\003\n\r" + "SafetySetting\022D\n" + "\010category\030\001" + " \001(\0162-.google.cloud.aiplatform.v1beta1.HarmCategoryB\003\340A\002\022Y\n" - + "\tthreshold\030\002 \001(" - + "\0162A.google.cloud.aiplatform.v1beta1.SafetySetting.HarmBlockThresholdB\003\340A\002\022S\n" - + "\006method\030\004 \001(\0162>.google.cloud.aiplatform.v1be" - + "ta1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n" + + "\tthreshold\030\002 \001(\0162A.google.cloud.aiplatfo" + + "rm.v1beta1.SafetySetting.HarmBlockThresholdB\003\340A\002\022S\n" + + "\006method\030\004 \001(\0162>.google.cloud." + + "aiplatform.v1beta1.SafetySetting.HarmBlockMethodB\003\340A\001\"\235\001\n" + "\022HarmBlockThreshold\022$\n" + " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n" + "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n" @@ -362,19 +388,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010SEVERITY\020\001\022\017\n" + "\013PROBABILITY\020\002\"\316\004\n" + "\014SafetyRating\022D\n" - + "\010category\030\001 \001(\0162-" - + ".google.cloud.aiplatform.v1beta1.HarmCategoryB\003\340A\003\022W\n" - + "\013probability\030\002 \001(\0162=.google" - + ".cloud.aiplatform.v1beta1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n" + + "\010category\030\001" + + " \001(\0162-.google.cloud.aiplatform.v1beta1.HarmCategoryB\003\340A\003\022W\n" + + "\013probability\030\002" + + " \001(\0162=.google.cloud.aiplatform.v1beta1.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n" + "\021probability_score\030\005 \001(\002B\003\340A\003\022Q\n" - + "\010severity\030\006 \001(\0162:.google.c" - + "loud.aiplatform.v1beta1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n" + + "\010severity\030\006" + + " \001(\0162:.google.cloud.aiplatform.v1beta1.SafetyRating.HarmSeverityB\003\340A\003\022\033\n" + "\016severity_score\030\007 \001(\002B\003\340A\003\022\024\n" + "\007blocked\030\003 \001(\010B\003\340A\003\"b\n" + "\017HarmProbability\022 \n" + "\034HARM_PROBABILITY_UNSPECIFIED\020\000\022\016\n\n" + "NEGLIGIBLE\020\001\022\007\n" - + "\003LOW\020\002\022\n\n" + + "\003LOW\020\002\022\n" + + "\n" + "\006MEDIUM\020\003\022\010\n" + "\004HIGH\020\004\"\224\001\n" + "\014HarmSeverity\022\035\n" @@ -384,8 +411,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024HARM_SEVERITY_MEDIUM\020\003\022\026\n" + "\022HARM_SEVERITY_HIGH\020\004\"U\n" + "\020CitationMetadata\022A\n" - + "\tcitations\030\001 \003(\0132).go" - + "ogle.cloud.aiplatform.v1beta1.CitationB\003\340A\003\"\252\001\n" + + "\tcitations\030\001" + + " \003(\0132).google.cloud.aiplatform.v1beta1.CitationB\003\340A\003\"\252\001\n" + "\010Citation\022\030\n" + "\013start_index\030\001 \001(\005B\003\340A\003\022\026\n" + "\tend_index\030\002 \001(\005B\003\340A\003\022\020\n" @@ -395,28 +422,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020publication_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\357\006\n" + "\tCandidate\022\022\n" + "\005index\030\001 \001(\005B\003\340A\003\022>\n" - + "\007content\030\002" - + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022\031\n" + + "\007content\030\002 \001" + + "(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022\031\n" + "\014avg_logprobs\030\t \001(\001B\003\340A\003\022M\n" + "\017logprobs_result\030\n" + " \001(\0132/.google.cloud.aiplatform.v1beta1.LogprobsResultB\003\340A\003\022S\n\r" - + "finish_reason\030\003 " - + "\001(\01627.google.cloud.aiplatform.v1beta1.Candidate.FinishReasonB\003\340A\003\022J\n" + + "finish_reason\030\003 \001(\01627.google.cloud.aiplat" + + "form.v1beta1.Candidate.FinishReasonB\003\340A\003\022J\n" + "\016safety_ratings\030\004" + " \003(\0132-.google.cloud.aiplatform.v1beta1.SafetyRatingB\003\340A\003\022 \n" + "\016finish_message\030\005 \001(\tB\003\340A\003H\000\210\001\001\022Q\n" - + "\021citation_metadata\030\006 \001" - + "(\01321.google.cloud.aiplatform.v1beta1.CitationMetadataB\003\340A\003\022S\n" - + "\022grounding_metadata\030\007" - + " \001(\01322.google.cloud.aiplatform.v1beta1.GroundingMetadataB\003\340A\003\022V\n" - + "\024url_context_metadata\030\013" - + " \001(\01323.google.cloud.aiplatform.v1beta1.UrlContextMetadataB\003\340A\003\"\315\001\n" + + "\021citation_metadata\030\006" + + " \001(\01321.google.cloud.aiplatform.v1beta1.CitationMetadataB\003\340A\003\022S\n" + + "\022grounding_metadata\030\007 \001(\01322.google.cloud.aip" + + "latform.v1beta1.GroundingMetadataB\003\340A\003\022V\n" + + "\024url_context_metadata\030\013 \001(\01323.google.cl" + + "oud.aiplatform.v1beta1.UrlContextMetadataB\003\340A\003\"\315\001\n" + "\014FinishReason\022\035\n" + "\031FINISH_REASON_UNSPECIFIED\020\000\022\010\n" + "\004STOP\020\001\022\016\n\n" + "MAX_TOKENS\020\002\022\n\n" - + "\006SAFETY\020\003\022\016\n" - + "\n" + + "\006SAFETY\020\003\022\016\n\n" + "RECITATION\020\004\022\t\n" + "\005OTHER\020\005\022\r\n" + "\tBLOCKLIST\020\006\022\026\n" @@ -427,21 +453,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\021\n" + "\017_finish_message\"]\n" + "\022UrlContextMetadata\022G\n" - + "\014url_metadata\030\001" - + " \003(\0132,.google.cloud.aiplatform.v1beta1.UrlMetadataB\003\340A\003\"\201\002\n" + + "\014url_metadata\030\001 \003(\0132,." + + "google.cloud.aiplatform.v1beta1.UrlMetadataB\003\340A\003\"\201\002\n" + "\013UrlMetadata\022\025\n\r" + "retrieved_url\030\001 \001(\t\022]\n" - + "\024url_retrieval_status\030\002 \001(\0162?.google.cloud.ai" - + "platform.v1beta1.UrlMetadata.UrlRetrievalStatus\"|\n" + + "\024url_retrieval_status\030\002 \001(\0162?." + + "google.cloud.aiplatform.v1beta1.UrlMetadata.UrlRetrievalStatus\"|\n" + "\022UrlRetrievalStatus\022$\n" + " URL_RETRIEVAL_STATUS_UNSPECIFIED\020\000\022 \n" + "\034URL_RETRIEVAL_STATUS_SUCCESS\020\001\022\036\n" + "\032URL_RETRIEVAL_STATUS_ERROR\020\002\"\236\003\n" + "\016LogprobsResult\022U\n" - + "\016top_candidates\030\001 \003(\0132=.google.cloud.aiplatfo" - + "rm.v1beta1.LogprobsResult.TopCandidates\022T\n" - + "\021chosen_candidates\030\002 \003(\01329.google.clou" - + "d.aiplatform.v1beta1.LogprobsResult.Candidate\032\177\n" + + "\016top_candidates\030\001 \003(\0132=.google" + + ".cloud.aiplatform.v1beta1.LogprobsResult.TopCandidates\022T\n" + + "\021chosen_candidates\030\002 \003(" + + "\01329.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate\032\177\n" + "\tCandidate\022\022\n" + "\005token\030\001 \001(\tH\000\210\001\001\022\025\n" + "\010token_id\030\003 \001(\005H\001\210\001\001\022\034\n" @@ -450,8 +476,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_token_idB\022\n" + "\020_log_probability\032^\n\r" + "TopCandidates\022M\n\n" - + "candidates\030\001" - + " \003(\01329.google.cloud.aiplatform.v1beta1.LogprobsResult.Candidate\"g\n" + + "candidates\030\001 \003(\01329.google.clou" + + "d.aiplatform.v1beta1.LogprobsResult.Candidate\"g\n" + "\007Segment\022\027\n\n" + "part_index\030\001 \001(\005B\003\340A\003\022\030\n" + "\013start_index\030\002 \001(\005B\003\340A\003\022\026\n" @@ -460,10 +486,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016GroundingChunk\022B\n" + "\003web\030\001" + " \001(\01323.google.cloud.aiplatform.v1beta1.GroundingChunk.WebH\000\022]\n" - + "\021retrieved_context\030\002" - + " \001(\0132@.google.cloud.aiplatform.v1beta1.GroundingChunk.RetrievedContextH\000\022D\n" - + "\004maps\030\003" - + " \001(\01324.google.cloud.aiplatform.v1beta1.GroundingChunk.MapsH\000\032=\n" + + "\021retrieved_context\030\002 \001(\0132@.google.cloud." + + "aiplatform.v1beta1.GroundingChunk.RetrievedContextH\000\022D\n" + + "\004maps\030\003 \001(\01324.google.clou" + + "d.aiplatform.v1beta1.GroundingChunk.MapsH\000\032=\n" + "\003Web\022\020\n" + "\003uri\030\001 \001(\tH\000\210\001\001\022\022\n" + "\005title\030\002 \001(\tH\001\210\001\001B\006\n" @@ -486,11 +512,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\002 \001(\tH\001\210\001\001\022\021\n" + "\004text\030\003 \001(\tH\002\210\001\001\022\025\n" + "\010place_id\030\004 \001(\tH\003\210\001\001\022e\n" - + "\024place_answer_sources\030\005 \001(\0132G.google.cloud.aiplatform.v1bet" - + "a1.GroundingChunk.Maps.PlaceAnswerSources\032\320\001\n" + + "\024place_answer_sources\030\005 \001(\0132G.google.cloud.a" + + "iplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources\032\320\001\n" + "\022PlaceAnswerSources\022n\n" - + "\017review_snippets\030\001 \003(\0132U.google.cloud.aiplatform.v1be" - + "ta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r" + + "\017review_snippets\030\001 \003(\0132U.google.cloud." + + "aiplatform.v1beta1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet\032J\n\r" + "ReviewSnippet\022\021\n" + "\treview_id\030\001 \001(\t\022\027\n" + "\017google_maps_uri\030\002 \001(\t\022\r\n" @@ -501,26 +527,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\t_place_idB\014\n\n" + "chunk_type\"\232\001\n" + "\020GroundingSupport\022>\n" - + "\007segment\030\001" - + " \001(\0132(.google.cloud.aiplatform.v1beta1.SegmentH\000\210\001\001\022\037\n" + + "\007segment\030\001 \001(\0132" + + "(.google.cloud.aiplatform.v1beta1.SegmentH\000\210\001\001\022\037\n" + "\027grounding_chunk_indices\030\002 \003(\005\022\031\n" + "\021confidence_scores\030\003 \003(\002B\n\n" + "\010_segment\"\331\005\n" + "\021GroundingMetadata\022\037\n" + "\022web_search_queries\030\001 \003(\tB\003\340A\001\022W\n" - + "\022search_entry_point\030\004 \001(\01321.google.clou" - + "d.aiplatform.v1beta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022\036\n" + + "\022search_entry_point\030\004 \001(" + + "\01321.google.cloud.aiplatform.v1beta1.SearchEntryPointB\003\340A\001H\000\210\001\001\022\036\n" + "\021retrieval_queries\030\003 \003(\tB\003\340A\001\022I\n" - + "\020grounding_chunks\030\005" - + " \003(\0132/.google.cloud.aiplatform.v1beta1.GroundingChunk\022R\n" - + "\022grounding_supports\030\006 \003(\01321.google.cloud.ai" - + "platform.v1beta1.GroundingSupportB\003\340A\001\022[\n" - + "\022retrieval_metadata\030\007 \001(\01322.google.clou" - + "d.aiplatform.v1beta1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n" + + "\020grounding_chunks\030\005 \003(\013" + + "2/.google.cloud.aiplatform.v1beta1.GroundingChunk\022R\n" + + "\022grounding_supports\030\006 \003(\01321." + + "google.cloud.aiplatform.v1beta1.GroundingSupportB\003\340A\001\022[\n" + + "\022retrieval_metadata\030\007 \001(" + + "\01322.google.cloud.aiplatform.v1beta1.RetrievalMetadataB\006\340A\001\340A\003H\001\210\001\001\0225\n" + " google_maps_widget_context_token\030\010 \001(" + "\tB\006\340A\001\340A\003H\002\210\001\001\022b\n" - + "\024source_flagging_uris\030\t \003(\0132D.google.cloud.aiplatfo" - + "rm.v1beta1.GroundingMetadata.SourceFlaggingUri\032@\n" + + "\024source_flagging_uris\030\t \003(\0132D.google" + + ".cloud.aiplatform.v1beta1.GroundingMetadata.SourceFlaggingUri\032@\n" + "\021SourceFlaggingUri\022\021\n" + "\tsource_id\030\001 \001(\t\022\030\n" + "\020flag_content_uri\030\002 \001(\tB\025\n" @@ -555,12 +581,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005VIDEO\020\003\022\t\n" + "\005AUDIO\020\004\022\014\n" + "\010DOCUMENT\020\005B\310\002\n" - + "#com.google.cloud.aiplatform.v1beta1B\014ContentProtoP\001ZCcloud.google.com/go" - + "/aiplatform/apiv1beta1/aiplatformpb;aipl" - + "atformpb\252\002\037Google.Cloud.AIPlatform.V1Bet" - + "a1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352Ab\n" - + "\"modelarmor.googleapis.com/Template\022 + * Optional. Resources for a full fine tuned model. + * + * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fullFineTunedResources field is set. + */ + @java.lang.Override + public boolean hasFullFineTunedResources() { + return predictionResourcesCase_ == 36; + } + + /** + * + * + *
+   * Optional. Resources for a full fine tuned model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fullFineTunedResources. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources getFullFineTunedResources() { + if (predictionResourcesCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_; + } + return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Resources for a full fine tuned model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder + getFullFineTunedResourcesOrBuilder() { + if (predictionResourcesCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_; + } + return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance(); + } + public static final int ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -2549,6 +2613,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(30, getSpeculativeDecodingSpec()); } + if (predictionResourcesCase_ == 36) { + output.writeMessage( + 36, (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_); + } getUnknownFields().writeTo(output); } @@ -2635,6 +2703,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 30, getSpeculativeDecodingSpec()); } + if (predictionResourcesCase_ == 36) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 36, + (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2701,6 +2775,9 @@ public boolean equals(final java.lang.Object obj) { case 17: if (!getSharedResources().equals(other.getSharedResources())) return false; break; + case 36: + if (!getFullFineTunedResources().equals(other.getFullFineTunedResources())) return false; + break; case 0: default: } @@ -2780,6 +2857,10 @@ public int hashCode() { hash = (37 * hash) + SHARED_RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getSharedResources().hashCode(); break; + case 36: + hash = (37 * hash) + FULL_FINE_TUNED_RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getFullFineTunedResources().hashCode(); + break; case 0: default: } @@ -2966,6 +3047,9 @@ public Builder clear() { if (automaticResourcesBuilder_ != null) { automaticResourcesBuilder_.clear(); } + if (fullFineTunedResourcesBuilder_ != null) { + fullFineTunedResourcesBuilder_.clear(); + } id_ = ""; model_ = ""; modelVersionId_ = ""; @@ -3051,72 +3135,72 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.DeployedModel result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.id_ = id_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.model_ = model_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.modelVersionId_ = modelVersionId_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.displayName_ = displayName_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.explanationSpec_ = explanationSpecBuilder_ == null ? explanationSpec_ : explanationSpecBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.disableExplanations_ = disableExplanations_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.serviceAccount_ = serviceAccount_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.enableContainerLogging_ = enableContainerLogging_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.disableContainerLogging_ = disableContainerLogging_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.enableAccessLogging_ = enableAccessLogging_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.privateEndpoints_ = privateEndpointsBuilder_ == null ? privateEndpoints_ : privateEndpointsBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.fasterDeploymentConfig_ = fasterDeploymentConfigBuilder_ == null ? fasterDeploymentConfig_ : fasterDeploymentConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.rolloutOptions_ = rolloutOptionsBuilder_ == null ? rolloutOptions_ : rolloutOptionsBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.systemLabels_ = internalGetSystemLabels(); result.systemLabels_.makeImmutable(); } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.checkpointId_ = checkpointId_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.speculativeDecodingSpec_ = speculativeDecodingSpecBuilder_ == null ? speculativeDecodingSpec_ @@ -3135,6 +3219,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.DeployedMode if (predictionResourcesCase_ == 8 && automaticResourcesBuilder_ != null) { result.predictionResources_ = automaticResourcesBuilder_.build(); } + if (predictionResourcesCase_ == 36 && fullFineTunedResourcesBuilder_ != null) { + result.predictionResources_ = fullFineTunedResourcesBuilder_.build(); + } } @java.lang.Override @@ -3185,22 +3272,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other return this; if (!other.getId().isEmpty()) { id_ = other.id_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getModel().isEmpty()) { model_ = other.model_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getModelVersionId().isEmpty()) { modelVersionId_ = other.modelVersionId_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasCreateTime()) { @@ -3214,7 +3301,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (other.getEnableContainerLogging() != false) { @@ -3239,10 +3326,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other mergeStatus(other.getStatus()); } internalGetMutableSystemLabels().mergeFrom(other.internalGetSystemLabels()); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; if (!other.getCheckpointId().isEmpty()) { checkpointId_ = other.checkpointId_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } if (other.hasSpeculativeDecodingSpec()) { @@ -3266,6 +3353,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.DeployedModel other onChanged(); break; } + case FULL_FINE_TUNED_RESOURCES: + { + mergeFullFineTunedResources(other.getFullFineTunedResources()); + break; + } case PREDICTIONRESOURCES_NOT_SET: { break; @@ -3300,25 +3392,25 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 10 case 18: { model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 18 case 26: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 26 case 50: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 50 case 58: @@ -3338,38 +3430,38 @@ public Builder mergeFrom( case 74: { input.readMessage(getExplanationSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 90: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 90 case 96: { enableContainerLogging_ = input.readBool(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 96 case 104: { enableAccessLogging_ = input.readBool(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 104 case 114: { input.readMessage( getPrivateEndpointsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 114 case 120: { disableContainerLogging_ = input.readBool(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 120 case 138: @@ -3382,32 +3474,32 @@ public Builder mergeFrom( case 146: { modelVersionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 146 case 152: { disableExplanations_ = input.readBool(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 152 case 186: { input.readMessage( getFasterDeploymentConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 186 case 202: { input.readMessage(getRolloutOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 202 case 210: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 210 case 226: @@ -3419,22 +3511,29 @@ public Builder mergeFrom( internalGetMutableSystemLabels() .getMutableMap() .put(systemLabels__.getKey(), systemLabels__.getValue()); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 226 case 234: { checkpointId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 234 case 242: { input.readMessage( getSpeculativeDecodingSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 242 + case 290: + { + input.readMessage( + getFullFineTunedResourcesFieldBuilder().getBuilder(), extensionRegistry); + predictionResourcesCase_ = 36; + break; + } // case 290 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4085,6 +4184,250 @@ public Builder setSharedResourcesBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources, + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder, + com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder> + fullFineTunedResourcesBuilder_; + + /** + * + * + *
+     * Optional. Resources for a full fine tuned model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fullFineTunedResources field is set. + */ + @java.lang.Override + public boolean hasFullFineTunedResources() { + return predictionResourcesCase_ == 36; + } + + /** + * + * + *
+     * Optional. Resources for a full fine tuned model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fullFineTunedResources. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources getFullFineTunedResources() { + if (fullFineTunedResourcesBuilder_ == null) { + if (predictionResourcesCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_; + } + return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance(); + } else { + if (predictionResourcesCase_ == 36) { + return fullFineTunedResourcesBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Resources for a full fine tuned model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFullFineTunedResources( + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources value) { + if (fullFineTunedResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predictionResources_ = value; + onChanged(); + } else { + fullFineTunedResourcesBuilder_.setMessage(value); + } + predictionResourcesCase_ = 36; + return this; + } + + /** + * + * + *
+     * Optional. Resources for a full fine tuned model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFullFineTunedResources( + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder builderForValue) { + if (fullFineTunedResourcesBuilder_ == null) { + predictionResources_ = builderForValue.build(); + onChanged(); + } else { + fullFineTunedResourcesBuilder_.setMessage(builderForValue.build()); + } + predictionResourcesCase_ = 36; + return this; + } + + /** + * + * + *
+     * Optional. Resources for a full fine tuned model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFullFineTunedResources( + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources value) { + if (fullFineTunedResourcesBuilder_ == null) { + if (predictionResourcesCase_ == 36 + && predictionResources_ + != com.google.cloud.aiplatform.v1beta1.FullFineTunedResources + .getDefaultInstance()) { + predictionResources_ = + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.newBuilder( + (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) + predictionResources_) + .mergeFrom(value) + .buildPartial(); + } else { + predictionResources_ = value; + } + onChanged(); + } else { + if (predictionResourcesCase_ == 36) { + fullFineTunedResourcesBuilder_.mergeFrom(value); + } else { + fullFineTunedResourcesBuilder_.setMessage(value); + } + } + predictionResourcesCase_ = 36; + return this; + } + + /** + * + * + *
+     * Optional. Resources for a full fine tuned model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFullFineTunedResources() { + if (fullFineTunedResourcesBuilder_ == null) { + if (predictionResourcesCase_ == 36) { + predictionResourcesCase_ = 0; + predictionResources_ = null; + onChanged(); + } + } else { + if (predictionResourcesCase_ == 36) { + predictionResourcesCase_ = 0; + predictionResources_ = null; + } + fullFineTunedResourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Resources for a full fine tuned model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder + getFullFineTunedResourcesBuilder() { + return getFullFineTunedResourcesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Resources for a full fine tuned model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder + getFullFineTunedResourcesOrBuilder() { + if ((predictionResourcesCase_ == 36) && (fullFineTunedResourcesBuilder_ != null)) { + return fullFineTunedResourcesBuilder_.getMessageOrBuilder(); + } else { + if (predictionResourcesCase_ == 36) { + return (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_; + } + return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Resources for a full fine tuned model.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources, + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder, + com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder> + getFullFineTunedResourcesFieldBuilder() { + if (fullFineTunedResourcesBuilder_ == null) { + if (!(predictionResourcesCase_ == 36)) { + predictionResources_ = + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance(); + } + fullFineTunedResourcesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources, + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder, + com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) predictionResources_, + getParentForChildren(), + isClean()); + predictionResources_ = null; + } + predictionResourcesCase_ = 36; + onChanged(); + return fullFineTunedResourcesBuilder_; + } + private java.lang.Object id_ = ""; /** @@ -4159,7 +4502,7 @@ public Builder setId(java.lang.String value) { throw new NullPointerException(); } id_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4180,7 +4523,7 @@ public Builder setId(java.lang.String value) { */ public Builder clearId() { id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -4206,7 +4549,7 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); id_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4300,7 +4643,7 @@ public Builder setModel(java.lang.String value) { throw new NullPointerException(); } model_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4326,7 +4669,7 @@ public Builder setModel(java.lang.String value) { */ public Builder clearModel() { model_ = getDefaultInstance().getModel(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -4357,7 +4700,7 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); model_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4427,7 +4770,7 @@ public Builder setModelVersionId(java.lang.String value) { throw new NullPointerException(); } modelVersionId_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4445,7 +4788,7 @@ public Builder setModelVersionId(java.lang.String value) { */ public Builder clearModelVersionId() { modelVersionId_ = getDefaultInstance().getModelVersionId(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -4468,7 +4811,7 @@ public Builder setModelVersionIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); modelVersionId_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4541,7 +4884,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4560,7 +4903,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -4584,7 +4927,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4610,7 +4953,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -4656,7 +4999,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4678,7 +5021,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4696,7 +5039,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4707,7 +5050,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -4725,7 +5068,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4747,7 +5090,7 @@ public Builder clearCreateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4836,7 +5179,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the explanationSpec field is set. */ public boolean hasExplanationSpec() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -4910,7 +5253,7 @@ public Builder setExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanatio } else { explanationSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4947,7 +5290,7 @@ public Builder setExplanationSpec( } else { explanationSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4979,7 +5322,7 @@ public Builder setExplanationSpec( */ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.ExplanationSpec value) { if (explanationSpecBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && explanationSpec_ != null && explanationSpec_ != com.google.cloud.aiplatform.v1beta1.ExplanationSpec.getDefaultInstance()) { @@ -4991,7 +5334,7 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat explanationSpecBuilder_.mergeFrom(value); } if (explanationSpec_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -5023,7 +5366,7 @@ public Builder mergeExplanationSpec(com.google.cloud.aiplatform.v1beta1.Explanat * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; */ public Builder clearExplanationSpec() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); explanationSpec_ = null; if (explanationSpecBuilder_ != null) { explanationSpecBuilder_.dispose(); @@ -5059,7 +5402,7 @@ public Builder clearExplanationSpec() { * .google.cloud.aiplatform.v1beta1.ExplanationSpec explanation_spec = 9; */ public com.google.cloud.aiplatform.v1beta1.ExplanationSpec.Builder getExplanationSpecBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getExplanationSpecFieldBuilder().getBuilder(); } @@ -5183,7 +5526,7 @@ public boolean getDisableExplanations() { public Builder setDisableExplanations(boolean value) { disableExplanations_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5204,7 +5547,7 @@ public Builder setDisableExplanations(boolean value) { * @return This builder for chaining. */ public Builder clearDisableExplanations() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); disableExplanations_ = false; onChanged(); return this; @@ -5293,7 +5636,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5317,7 +5660,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -5346,7 +5689,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -5390,7 +5733,7 @@ public boolean getEnableContainerLogging() { public Builder setEnableContainerLogging(boolean value) { enableContainerLogging_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5410,7 +5753,7 @@ public Builder setEnableContainerLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableContainerLogging() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); enableContainerLogging_ = false; onChanged(); return this; @@ -5461,7 +5804,7 @@ public boolean getDisableContainerLogging() { public Builder setDisableContainerLogging(boolean value) { disableContainerLogging_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5484,7 +5827,7 @@ public Builder setDisableContainerLogging(boolean value) { * @return This builder for chaining. */ public Builder clearDisableContainerLogging() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); disableContainerLogging_ = false; onChanged(); return this; @@ -5537,7 +5880,7 @@ public boolean getEnableAccessLogging() { public Builder setEnableAccessLogging(boolean value) { enableAccessLogging_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5561,7 +5904,7 @@ public Builder setEnableAccessLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableAccessLogging() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); enableAccessLogging_ = false; onChanged(); return this; @@ -5591,7 +5934,7 @@ public Builder clearEnableAccessLogging() { * @return Whether the privateEndpoints field is set. */ public boolean hasPrivateEndpoints() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5643,7 +5986,7 @@ public Builder setPrivateEndpoints(com.google.cloud.aiplatform.v1beta1.PrivateEn } else { privateEndpointsBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5669,7 +6012,7 @@ public Builder setPrivateEndpoints( } else { privateEndpointsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5691,7 +6034,7 @@ public Builder setPrivateEndpoints( public Builder mergePrivateEndpoints( com.google.cloud.aiplatform.v1beta1.PrivateEndpoints value) { if (privateEndpointsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && privateEndpoints_ != null && privateEndpoints_ != com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.getDefaultInstance()) { @@ -5703,7 +6046,7 @@ public Builder mergePrivateEndpoints( privateEndpointsBuilder_.mergeFrom(value); } if (privateEndpoints_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5724,7 +6067,7 @@ public Builder mergePrivateEndpoints( *
*/ public Builder clearPrivateEndpoints() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); privateEndpoints_ = null; if (privateEndpointsBuilder_ != null) { privateEndpointsBuilder_.dispose(); @@ -5750,7 +6093,7 @@ public Builder clearPrivateEndpoints() { */ public com.google.cloud.aiplatform.v1beta1.PrivateEndpoints.Builder getPrivateEndpointsBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return getPrivateEndpointsFieldBuilder().getBuilder(); } @@ -5831,7 +6174,7 @@ public Builder clearPrivateEndpoints() { * @return Whether the fasterDeploymentConfig field is set. */ public boolean hasFasterDeploymentConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -5876,7 +6219,7 @@ public Builder setFasterDeploymentConfig( } else { fasterDeploymentConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5898,7 +6241,7 @@ public Builder setFasterDeploymentConfig( } else { fasterDeploymentConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5916,7 +6259,7 @@ public Builder setFasterDeploymentConfig( public Builder mergeFasterDeploymentConfig( com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig value) { if (fasterDeploymentConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && fasterDeploymentConfig_ != null && fasterDeploymentConfig_ != com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig @@ -5929,7 +6272,7 @@ public Builder mergeFasterDeploymentConfig( fasterDeploymentConfigBuilder_.mergeFrom(value); } if (fasterDeploymentConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -5946,7 +6289,7 @@ public Builder mergeFasterDeploymentConfig( *
*/ public Builder clearFasterDeploymentConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); fasterDeploymentConfig_ = null; if (fasterDeploymentConfigBuilder_ != null) { fasterDeploymentConfigBuilder_.dispose(); @@ -5968,7 +6311,7 @@ public Builder clearFasterDeploymentConfig() { */ public com.google.cloud.aiplatform.v1beta1.FasterDeploymentConfig.Builder getFasterDeploymentConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return getFasterDeploymentConfigFieldBuilder().getBuilder(); } @@ -6040,7 +6383,7 @@ public Builder clearFasterDeploymentConfig() { * @return Whether the rolloutOptions field is set. */ public boolean hasRolloutOptions() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -6082,7 +6425,7 @@ public Builder setRolloutOptions(com.google.cloud.aiplatform.v1beta1.RolloutOpti } else { rolloutOptionsBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6103,7 +6446,7 @@ public Builder setRolloutOptions( } else { rolloutOptionsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6119,7 +6462,7 @@ public Builder setRolloutOptions( */ public Builder mergeRolloutOptions(com.google.cloud.aiplatform.v1beta1.RolloutOptions value) { if (rolloutOptionsBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && rolloutOptions_ != null && rolloutOptions_ != com.google.cloud.aiplatform.v1beta1.RolloutOptions.getDefaultInstance()) { @@ -6131,7 +6474,7 @@ public Builder mergeRolloutOptions(com.google.cloud.aiplatform.v1beta1.RolloutOp rolloutOptionsBuilder_.mergeFrom(value); } if (rolloutOptions_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -6147,7 +6490,7 @@ public Builder mergeRolloutOptions(com.google.cloud.aiplatform.v1beta1.RolloutOp * .google.cloud.aiplatform.v1beta1.RolloutOptions rollout_options = 25; */ public Builder clearRolloutOptions() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); rolloutOptions_ = null; if (rolloutOptionsBuilder_ != null) { rolloutOptionsBuilder_.dispose(); @@ -6167,7 +6510,7 @@ public Builder clearRolloutOptions() { * .google.cloud.aiplatform.v1beta1.RolloutOptions rollout_options = 25; */ public com.google.cloud.aiplatform.v1beta1.RolloutOptions.Builder getRolloutOptionsBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return getRolloutOptionsFieldBuilder().getBuilder(); } @@ -6239,7 +6582,7 @@ public com.google.cloud.aiplatform.v1beta1.RolloutOptions.Builder getRolloutOpti * @return Whether the status field is set. */ public boolean hasStatus() { - return ((bitField0_ & 0x00020000) != 0); + return ((bitField0_ & 0x00040000) != 0); } /** @@ -6285,7 +6628,7 @@ public Builder setStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Statu } else { statusBuilder_.setMessage(value); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6308,7 +6651,7 @@ public Builder setStatus( } else { statusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6326,7 +6669,7 @@ public Builder setStatus( */ public Builder mergeStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Status value) { if (statusBuilder_ == null) { - if (((bitField0_ & 0x00020000) != 0) + if (((bitField0_ & 0x00040000) != 0) && status_ != null && status_ != com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.getDefaultInstance()) { @@ -6338,7 +6681,7 @@ public Builder mergeStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Sta statusBuilder_.mergeFrom(value); } if (status_ != null) { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -6356,7 +6699,7 @@ public Builder mergeStatus(com.google.cloud.aiplatform.v1beta1.DeployedModel.Sta *
*/ public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); status_ = null; if (statusBuilder_ != null) { statusBuilder_.dispose(); @@ -6378,7 +6721,7 @@ public Builder clearStatus() { * */ public com.google.cloud.aiplatform.v1beta1.DeployedModel.Status.Builder getStatusBuilder() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -6452,7 +6795,7 @@ public com.google.cloud.aiplatform.v1beta1.DeployedModel.StatusOrBuilder getStat if (!systemLabels_.isMutable()) { systemLabels_ = systemLabels_.copy(); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return systemLabels_; } @@ -6546,7 +6889,7 @@ public java.lang.String getSystemLabelsOrThrow(java.lang.String key) { } public Builder clearSystemLabels() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); internalGetMutableSystemLabels().getMutableMap().clear(); return this; } @@ -6572,7 +6915,7 @@ public Builder removeSystemLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableSystemLabels() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return internalGetMutableSystemLabels().getMutableMap(); } @@ -6594,7 +6937,7 @@ public Builder putSystemLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableSystemLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } @@ -6610,7 +6953,7 @@ public Builder putSystemLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllSystemLabels(java.util.Map values) { internalGetMutableSystemLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } @@ -6679,7 +7022,7 @@ public Builder setCheckpointId(java.lang.String value) { throw new NullPointerException(); } checkpointId_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6697,7 +7040,7 @@ public Builder setCheckpointId(java.lang.String value) { */ public Builder clearCheckpointId() { checkpointId_ = getDefaultInstance().getCheckpointId(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -6720,7 +7063,7 @@ public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); checkpointId_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6746,7 +7089,7 @@ public Builder setCheckpointIdBytes(com.google.protobuf.ByteString value) { * @return Whether the speculativeDecodingSpec field is set. */ public boolean hasSpeculativeDecodingSpec() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -6794,7 +7137,7 @@ public Builder setSpeculativeDecodingSpec( } else { speculativeDecodingSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6817,7 +7160,7 @@ public Builder setSpeculativeDecodingSpec( } else { speculativeDecodingSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6836,7 +7179,7 @@ public Builder setSpeculativeDecodingSpec( public Builder mergeSpeculativeDecodingSpec( com.google.cloud.aiplatform.v1beta1.SpeculativeDecodingSpec value) { if (speculativeDecodingSpecBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0) + if (((bitField0_ & 0x00200000) != 0) && speculativeDecodingSpec_ != null && speculativeDecodingSpec_ != com.google.cloud.aiplatform.v1beta1.SpeculativeDecodingSpec @@ -6849,7 +7192,7 @@ public Builder mergeSpeculativeDecodingSpec( speculativeDecodingSpecBuilder_.mergeFrom(value); } if (speculativeDecodingSpec_ != null) { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } return this; @@ -6867,7 +7210,7 @@ public Builder mergeSpeculativeDecodingSpec( * */ public Builder clearSpeculativeDecodingSpec() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); speculativeDecodingSpec_ = null; if (speculativeDecodingSpecBuilder_ != null) { speculativeDecodingSpecBuilder_.dispose(); @@ -6890,7 +7233,7 @@ public Builder clearSpeculativeDecodingSpec() { */ public com.google.cloud.aiplatform.v1beta1.SpeculativeDecodingSpec.Builder getSpeculativeDecodingSpecBuilder() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return getSpeculativeDecodingSpecFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java index 22dbfe99a0ff..eb28ca11df78 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeployedModelOrBuilder.java @@ -149,6 +149,50 @@ public interface DeployedModelOrBuilder */ com.google.protobuf.ByteString getSharedResourcesBytes(); + /** + * + * + *
+   * Optional. Resources for a full fine tuned model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fullFineTunedResources field is set. + */ + boolean hasFullFineTunedResources(); + + /** + * + * + *
+   * Optional. Resources for a full fine tuned model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fullFineTunedResources. + */ + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources getFullFineTunedResources(); + + /** + * + * + *
+   * Optional. Resources for a full fine tuned model.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources full_fine_tuned_resources = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder + getFullFineTunedResourcesOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java index f0f2d4fd6ac4..bee394449832 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java @@ -155,41 +155,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001:\265\001\352A\261\001\n" + "\"aiplatform.googleapis.com/Endpoint\022 + * Optional. The zone where the underlying Bigtable cluster for the primary + * Bigtable instance will be provisioned. Only the zone must be provided. + * For example, only "us-central1-a" should be provided. + * + * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + java.lang.String getZone(); + + /** + * + * + *
+     * Optional. The zone where the underlying Bigtable cluster for the primary
+     * Bigtable instance will be provisioned. Only the zone must be provided.
+     * For example, only "us-central1-a" should be provided.
+     * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + com.google.protobuf.ByteString getZoneBytes(); } /** Protobuf type {@code google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable} */ @@ -372,7 +402,9 @@ private Bigtable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Bigtable() {} + private Bigtable() { + zone_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -2488,6 +2520,63 @@ public boolean hasBigtableMetadata() { : bigtableMetadata_; } + public static final int ZONE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object zone_ = ""; + + /** + * + * + *
+     * Optional. The zone where the underlying Bigtable cluster for the primary
+     * Bigtable instance will be provisioned. Only the zone must be provided.
+     * For example, only "us-central1-a" should be provided.
+     * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + @java.lang.Override + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The zone where the underlying Bigtable cluster for the primary
+     * Bigtable instance will be provisioned. Only the zone must be provided.
+     * For example, only "us-central1-a" should be provided.
+     * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2511,6 +2600,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getBigtableMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, zone_); + } getUnknownFields().writeTo(output); } @@ -2530,6 +2622,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBigtableMetadata()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, zone_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2555,6 +2650,7 @@ public boolean equals(final java.lang.Object obj) { if (hasBigtableMetadata()) { if (!getBigtableMetadata().equals(other.getBigtableMetadata())) return false; } + if (!getZone().equals(other.getZone())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2577,6 +2673,8 @@ public int hashCode() { hash = (37 * hash) + BIGTABLE_METADATA_FIELD_NUMBER; hash = (53 * hash) + getBigtableMetadata().hashCode(); } + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2735,6 +2833,7 @@ public Builder clear() { bigtableMetadataBuilder_.dispose(); bigtableMetadataBuilder_ = null; } + zone_ = ""; return this; } @@ -2789,6 +2888,9 @@ private void buildPartial0( : bigtableMetadataBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.zone_ = zone_; + } result.bitField0_ |= to_bitField0_; } @@ -2851,6 +2953,11 @@ public Builder mergeFrom( if (other.hasBigtableMetadata()) { mergeBigtableMetadata(other.getBigtableMetadata()); } + if (!other.getZone().isEmpty()) { + zone_ = other.zone_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2896,6 +3003,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 34 + case 42: + { + zone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3431,6 +3544,127 @@ public Builder clearBigtableMetadata() { return bigtableMetadataBuilder_; } + private java.lang.Object zone_ = ""; + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The zone. + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for zone. + */ + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearZone() { + zone_ = getDefaultInstance().getZone(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The zone where the underlying Bigtable cluster for the primary
+       * Bigtable instance will be provisioned. Only the zone must be provided.
+       * For example, only "us-central1-a" should be provided.
+       * 
+ * + * string zone = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + zone_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6583,7 +6817,7 @@ public boolean hasDedicatedServingEndpoint() { * * * @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is - * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196 + * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201 * @return Whether the embeddingManagement field is set. */ @java.lang.Override @@ -6605,7 +6839,7 @@ public boolean hasEmbeddingManagement() { * * * @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is - * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196 + * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201 * @return The embeddingManagement. */ @java.lang.Override @@ -9300,7 +9534,7 @@ public Builder clearDedicatedServingEndpoint() { * * * @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is - * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196 + * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201 * @return Whether the embeddingManagement field is set. */ @java.lang.Deprecated @@ -9321,7 +9555,7 @@ public boolean hasEmbeddingManagement() { * * * @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is - * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196 + * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201 * @return The embeddingManagement. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java index 4708429808b9..72db5aa097e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreOrBuilder.java @@ -456,7 +456,7 @@ java.lang.String getLabelsOrDefault( * * * @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is - * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196 + * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201 * @return Whether the embeddingManagement field is set. */ @java.lang.Deprecated @@ -475,7 +475,7 @@ java.lang.String getLabelsOrDefault( * * * @deprecated google.cloud.aiplatform.v1beta1.FeatureOnlineStore.embedding_management is - * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=196 + * deprecated. See google/cloud/aiplatform/v1beta1/feature_online_store.proto;l=201 * @return The embeddingManagement. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java index dedc6fe90a10..45c5fa01507c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FeatureOnlineStoreProto.java @@ -69,67 +69,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n:google/cloud/aiplatform/v1beta1/featur" - + "e_online_store.proto\022\037google.cloud.aipla" + "\n" + + ":google/cloud/aiplatform/v1beta1/feature_online_store.proto\022\037google.cloud.aipla" + "tform.v1beta1\032\037google/api/field_behavior" + ".proto\032\031google/api/resource.proto\0325googl" - + "e/cloud/aiplatform/v1beta1/encryption_sp" - + "ec.proto\0328google/cloud/aiplatform/v1beta" - + "1/service_networking.proto\032\037google/proto" - + "buf/timestamp.proto\"\304\016\n\022FeatureOnlineSto" - + "re\022P\n\010bigtable\030\010 \001(\0132<.google.cloud.aipl" - + "atform.v1beta1.FeatureOnlineStore.Bigtab" - + "leH\000\022R\n\toptimized\030\014 \001(\0132=.google.cloud.a" - + "iplatform.v1beta1.FeatureOnlineStore.Opt" - + "imizedH\000\022\021\n\004name\030\001 \001(\tB\003\340A\010\0224\n\013create_ti" - + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013update_time\030\004 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\021\n\004etag\030\005 \001(\tB\003\340A\001\022T\n\006la" - + "bels\030\006 \003(\0132?.google.cloud.aiplatform.v1b" - + "eta1.FeatureOnlineStore.LabelsEntryB\003\340A\001" - + "\022M\n\005state\030\007 \001(\01629.google.cloud.aiplatfor" - + "m.v1beta1.FeatureOnlineStore.StateB\003\340A\003\022" - + "u\n\032dedicated_serving_endpoint\030\n \001(\0132L.go" - + "ogle.cloud.aiplatform.v1beta1.FeatureOnl" - + "ineStore.DedicatedServingEndpointB\003\340A\001\022l" - + "\n\024embedding_management\030\013 \001(\0132G.google.cl" - + "oud.aiplatform.v1beta1.FeatureOnlineStor" - + "e.EmbeddingManagementB\005\030\001\340A\001\022M\n\017encrypti" - + "on_spec\030\r \001(\0132/.google.cloud.aiplatform." - + "v1beta1.EncryptionSpecB\003\340A\001\022\032\n\rsatisfies" - + "_pzs\030\017 \001(\010B\003\340A\003\022\032\n\rsatisfies_pzi\030\020 \001(\010B\003" - + "\340A\003\032\316\003\n\010Bigtable\022c\n\014auto_scaling\030\001 \001(\0132H" - + ".google.cloud.aiplatform.v1beta1.Feature" - + "OnlineStore.Bigtable.AutoScalingB\003\340A\002\022*\n" - + "\035enable_direct_bigtable_access\030\003 \001(\010B\003\340A" - + "\001\022m\n\021bigtable_metadata\030\004 \001(\0132M.google.cl" - + "oud.aiplatform.v1beta1.FeatureOnlineStor" - + "e.Bigtable.BigtableMetadataB\003\340A\003\032l\n\013Auto" - + "Scaling\022\033\n\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n\016" - + "max_node_count\030\002 \001(\005B\003\340A\002\022#\n\026cpu_utiliza" - + "tion_target\030\003 \001(\005B\003\340A\001\032T\n\020BigtableMetada" - + "ta\022\031\n\021tenant_project_id\030\001 \001(\t\022\023\n\013instanc" - + "e_id\030\002 \001(\t\022\020\n\010table_id\030\003 \001(\t\032\013\n\tOptimize" - + "d\032\320\001\n\030DedicatedServingEndpoint\022(\n\033public" - + "_endpoint_domain_name\030\002 \001(\tB\003\340A\003\022i\n\036priv" - + "ate_service_connect_config\030\003 \001(\0132<.googl" - + "e.cloud.aiplatform.v1beta1.PrivateServic" - + "eConnectConfigB\003\340A\001\022\037\n\022service_attachmen" - + "t\030\004 \001(\tB\003\340A\003\0322\n\023EmbeddingManagement\022\027\n\007e" - + "nabled\030\001 \001(\010B\006\340A\001\340A\005:\002\030\001\032-\n\013LabelsEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\n\n\006STABLE\020\001\022\014\n\010U" - + "PDATING\020\002:\206\001\352A\202\001\n,aiplatform.googleapis." - + "com/FeatureOnlineStore\022Rprojects/{projec" - + "t}/locations/{location}/featureOnlineSto" - + "res/{feature_online_store}B\016\n\014storage_ty" - + "peB\356\001\n#com.google.cloud.aiplatform.v1bet" - + "a1B\027FeatureOnlineStoreProtoP\001ZCcloud.goo" - + "gle.com/go/aiplatform/apiv1beta1/aiplatf" - + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" - + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" - + "1beta1\352\002\"Google::Cloud::AIPlatform::V1be" - + "ta1b\006proto3" + + "e/cloud/aiplatform/v1beta1/encryption_spec.proto\0328google/cloud/aiplatform/v1beta" + + "1/service_networking.proto\032\037google/protobuf/timestamp.proto\"\327\016\n" + + "\022FeatureOnlineStore\022P\n" + + "\010bigtable\030\010 \001(\0132<.google.cloud.aipl" + + "atform.v1beta1.FeatureOnlineStore.BigtableH\000\022R\n" + + "\toptimized\030\014 \001(\0132=.google.cloud.a" + + "iplatform.v1beta1.FeatureOnlineStore.OptimizedH\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + + "\004etag\030\005 \001(\tB\003\340A\001\022T\n" + + "\006labels\030\006 \003(\0132?.google.cloud.aiplatform.v1b" + + "eta1.FeatureOnlineStore.LabelsEntryB\003\340A\001\022M\n" + + "\005state\030\007 \001(\01629.google.cloud.aiplatfor" + + "m.v1beta1.FeatureOnlineStore.StateB\003\340A\003\022u\n" + + "\032dedicated_serving_endpoint\030\n" + + " \001(\0132L.google.cloud.aiplatform.v1beta1.FeatureOnl" + + "ineStore.DedicatedServingEndpointB\003\340A\001\022l\n" + + "\024embedding_management\030\013 \001(\0132G.google.cl" + + "oud.aiplatform.v1beta1.FeatureOnlineStore.EmbeddingManagementB\005\030\001\340A\001\022M\n" + + "\017encryption_spec\030\r" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpecB\003\340A\001\022\032\n\r" + + "satisfies_pzs\030\017 \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030\020 \001(\010B\003\340A\003\032\341\003\n" + + "\010Bigtable\022c\n" + + "\014auto_scaling\030\001 \001(\0132H" + + ".google.cloud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.AutoScalingB\003\340A\002\022*\n" + + "\035enable_direct_bigtable_access\030\003 \001(\010B\003\340A\001\022m\n" + + "\021bigtable_metadata\030\004 \001(\0132M.google.cl" + + "oud.aiplatform.v1beta1.FeatureOnlineStore.Bigtable.BigtableMetadataB\003\340A\003\022\021\n" + + "\004zone\030\005 \001(\tB\003\340A\001\032l\n" + + "\013AutoScaling\022\033\n" + + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n" + + "\016max_node_count\030\002 \001(\005B\003\340A\002\022#\n" + + "\026cpu_utilization_target\030\003 \001(\005B\003\340A\001\032T\n" + + "\020BigtableMetadata\022\031\n" + + "\021tenant_project_id\030\001 \001(\t\022\023\n" + + "\013instance_id\030\002 \001(\t\022\020\n" + + "\010table_id\030\003 \001(\t\032\013\n" + + "\tOptimized\032\320\001\n" + + "\030DedicatedServingEndpoint\022(\n" + + "\033public_endpoint_domain_name\030\002 \001(\tB\003\340A\003\022i\n" + + "\036private_service_connect_config\030\003 \001(\0132<.google.cloud.aiplatform.v1" + + "beta1.PrivateServiceConnectConfigB\003\340A\001\022\037\n" + + "\022service_attachment\030\004 \001(\tB\003\340A\003\0322\n" + + "\023EmbeddingManagement\022\027\n" + + "\007enabled\030\001 \001(\010B\006\340A\001\340A\005:\002\030\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"8\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006STABLE\020\001\022\014\n" + + "\010UPDATING\020\002:\206\001\352A\202\001\n" + + ",aiplatform.googleapis.com/FeatureOnlineStor" + + "e\022Rprojects/{project}/locations/{locatio" + + "n}/featureOnlineStores/{feature_online_store}B\016\n" + + "\014storage_typeB\356\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\027FeatureOnlineStor" + + "eProtoP\001ZCcloud.google.com/go/aiplatform" + + "/apiv1beta1/aiplatformpb;aiplatformpb\252\002\037" + + "Google.Cloud.AIPlatform.V1Beta1\312\002\037Google" + + "\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -170,7 +177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_descriptor, new java.lang.String[] { - "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata", + "AutoScaling", "EnableDirectBigtableAccess", "BigtableMetadata", "Zone", }); internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_AutoScaling_descriptor = internal_static_google_cloud_aiplatform_v1beta1_FeatureOnlineStore_Bigtable_descriptor diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FullFineTunedResources.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FullFineTunedResources.java new file mode 100644 index 000000000000..7df23c7a7c34 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FullFineTunedResources.java @@ -0,0 +1,948 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/machine_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Resources for an fft model.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FullFineTunedResources} + */ +public final class FullFineTunedResources extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.FullFineTunedResources) + FullFineTunedResourcesOrBuilder { + private static final long serialVersionUID = 0L; + + // Use FullFineTunedResources.newBuilder() to construct. + private FullFineTunedResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FullFineTunedResources() { + deploymentType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FullFineTunedResources(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.class, + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder.class); + } + + /** + * + * + *
+   * The type of deployment.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType} + */ + public enum DeploymentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified deployment type.
+     * 
+ * + * DEPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + DEPLOYMENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Eval deployment type.
+     * 
+ * + * DEPLOYMENT_TYPE_EVAL = 1; + */ + DEPLOYMENT_TYPE_EVAL(1), + /** + * + * + *
+     * Prod deployment type.
+     * 
+ * + * DEPLOYMENT_TYPE_PROD = 2; + */ + DEPLOYMENT_TYPE_PROD(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified deployment type.
+     * 
+ * + * DEPLOYMENT_TYPE_UNSPECIFIED = 0; + */ + public static final int DEPLOYMENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Eval deployment type.
+     * 
+ * + * DEPLOYMENT_TYPE_EVAL = 1; + */ + public static final int DEPLOYMENT_TYPE_EVAL_VALUE = 1; + + /** + * + * + *
+     * Prod deployment type.
+     * 
+ * + * DEPLOYMENT_TYPE_PROD = 2; + */ + public static final int DEPLOYMENT_TYPE_PROD_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 DeploymentType 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 DeploymentType forNumber(int value) { + switch (value) { + case 0: + return DEPLOYMENT_TYPE_UNSPECIFIED; + case 1: + return DEPLOYMENT_TYPE_EVAL; + case 2: + return DEPLOYMENT_TYPE_PROD; + 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 DeploymentType findValueByNumber(int number) { + return DeploymentType.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.aiplatform.v1beta1.FullFineTunedResources.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DeploymentType[] VALUES = values(); + + public static DeploymentType 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 DeploymentType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType) + } + + public static final int DEPLOYMENT_TYPE_FIELD_NUMBER = 1; + private int deploymentType_ = 0; + + /** + * + * + *
+   * Required. The kind of deployment.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for deploymentType. + */ + @java.lang.Override + public int getDeploymentTypeValue() { + return deploymentType_; + } + + /** + * + * + *
+   * Required. The kind of deployment.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType + getDeploymentType() { + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType result = + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType.forNumber( + deploymentType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType.UNRECOGNIZED + : result; + } + + public static final int MODEL_INFERENCE_UNIT_COUNT_FIELD_NUMBER = 2; + private int modelInferenceUnitCount_ = 0; + + /** + * + * + *
+   * Optional. The number of model inference units to use for this deployment.
+   * This can only be specified for DEPLOYMENT_TYPE_PROD.
+   * The following table lists the number of model inference units for different
+   * model types:
+   * * Gemini 2.5 Flash
+   *   * Foundation FMIU: 25
+   *   * Expansion FMIU: 4
+   * * Gemini 2.5 Pro
+   *   * Foundation FMIU: 32
+   *   * Expansion FMIU: 16
+   * * Veo 3.0 (undistilled)
+   *   * Foundation FMIU: 63
+   *   * Expansion FMIU: 7
+   * * Veo 3.0 (distilled)
+   *   * Foundation FMIU: 30
+   *   * Expansion FMIU: 10
+   * 
+ * + * int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelInferenceUnitCount. + */ + @java.lang.Override + public int getModelInferenceUnitCount() { + return modelInferenceUnitCount_; + } + + 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 (deploymentType_ + != com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType + .DEPLOYMENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, deploymentType_); + } + if (modelInferenceUnitCount_ != 0) { + output.writeInt32(2, modelInferenceUnitCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (deploymentType_ + != com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType + .DEPLOYMENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, deploymentType_); + } + if (modelInferenceUnitCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, modelInferenceUnitCount_); + } + 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.aiplatform.v1beta1.FullFineTunedResources)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources other = + (com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) obj; + + if (deploymentType_ != other.deploymentType_) return false; + if (getModelInferenceUnitCount() != other.getModelInferenceUnitCount()) 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) + DEPLOYMENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + deploymentType_; + hash = (37 * hash) + MODEL_INFERENCE_UNIT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getModelInferenceUnitCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources 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.aiplatform.v1beta1.FullFineTunedResources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources 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.aiplatform.v1beta1.FullFineTunedResources parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources 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.aiplatform.v1beta1.FullFineTunedResources parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources 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.aiplatform.v1beta1.FullFineTunedResources 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; + } + + /** + * + * + *
+   * Resources for an fft model.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.FullFineTunedResources} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.FullFineTunedResources) + com.google.cloud.aiplatform.v1beta1.FullFineTunedResourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.class, + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deploymentType_ = 0; + modelInferenceUnitCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.MachineResourcesProto + .internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources build() { + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources buildPartial() { + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources result = + new com.google.cloud.aiplatform.v1beta1.FullFineTunedResources(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.FullFineTunedResources result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deploymentType_ = deploymentType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelInferenceUnitCount_ = modelInferenceUnitCount_; + } + } + + @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.aiplatform.v1beta1.FullFineTunedResources) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.FullFineTunedResources) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.FullFineTunedResources other) { + if (other == com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.getDefaultInstance()) + return this; + if (other.deploymentType_ != 0) { + setDeploymentTypeValue(other.getDeploymentTypeValue()); + } + if (other.getModelInferenceUnitCount() != 0) { + setModelInferenceUnitCount(other.getModelInferenceUnitCount()); + } + 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: + { + deploymentType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + modelInferenceUnitCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int deploymentType_ = 0; + + /** + * + * + *
+     * Required. The kind of deployment.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for deploymentType. + */ + @java.lang.Override + public int getDeploymentTypeValue() { + return deploymentType_; + } + + /** + * + * + *
+     * Required. The kind of deployment.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for deploymentType to set. + * @return This builder for chaining. + */ + public Builder setDeploymentTypeValue(int value) { + deploymentType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The kind of deployment.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType + getDeploymentType() { + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType result = + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType.forNumber( + deploymentType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The kind of deployment.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The deploymentType to set. + * @return This builder for chaining. + */ + public Builder setDeploymentType( + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + deploymentType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The kind of deployment.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeploymentType() { + bitField0_ = (bitField0_ & ~0x00000001); + deploymentType_ = 0; + onChanged(); + return this; + } + + private int modelInferenceUnitCount_; + + /** + * + * + *
+     * Optional. The number of model inference units to use for this deployment.
+     * This can only be specified for DEPLOYMENT_TYPE_PROD.
+     * The following table lists the number of model inference units for different
+     * model types:
+     * * Gemini 2.5 Flash
+     *   * Foundation FMIU: 25
+     *   * Expansion FMIU: 4
+     * * Gemini 2.5 Pro
+     *   * Foundation FMIU: 32
+     *   * Expansion FMIU: 16
+     * * Veo 3.0 (undistilled)
+     *   * Foundation FMIU: 63
+     *   * Expansion FMIU: 7
+     * * Veo 3.0 (distilled)
+     *   * Foundation FMIU: 30
+     *   * Expansion FMIU: 10
+     * 
+ * + * int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelInferenceUnitCount. + */ + @java.lang.Override + public int getModelInferenceUnitCount() { + return modelInferenceUnitCount_; + } + + /** + * + * + *
+     * Optional. The number of model inference units to use for this deployment.
+     * This can only be specified for DEPLOYMENT_TYPE_PROD.
+     * The following table lists the number of model inference units for different
+     * model types:
+     * * Gemini 2.5 Flash
+     *   * Foundation FMIU: 25
+     *   * Expansion FMIU: 4
+     * * Gemini 2.5 Pro
+     *   * Foundation FMIU: 32
+     *   * Expansion FMIU: 16
+     * * Veo 3.0 (undistilled)
+     *   * Foundation FMIU: 63
+     *   * Expansion FMIU: 7
+     * * Veo 3.0 (distilled)
+     *   * Foundation FMIU: 30
+     *   * Expansion FMIU: 10
+     * 
+ * + * int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The modelInferenceUnitCount to set. + * @return This builder for chaining. + */ + public Builder setModelInferenceUnitCount(int value) { + + modelInferenceUnitCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The number of model inference units to use for this deployment.
+     * This can only be specified for DEPLOYMENT_TYPE_PROD.
+     * The following table lists the number of model inference units for different
+     * model types:
+     * * Gemini 2.5 Flash
+     *   * Foundation FMIU: 25
+     *   * Expansion FMIU: 4
+     * * Gemini 2.5 Pro
+     *   * Foundation FMIU: 32
+     *   * Expansion FMIU: 16
+     * * Veo 3.0 (undistilled)
+     *   * Foundation FMIU: 63
+     *   * Expansion FMIU: 7
+     * * Veo 3.0 (distilled)
+     *   * Foundation FMIU: 30
+     *   * Expansion FMIU: 10
+     * 
+ * + * int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelInferenceUnitCount() { + bitField0_ = (bitField0_ & ~0x00000002); + modelInferenceUnitCount_ = 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.aiplatform.v1beta1.FullFineTunedResources) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.FullFineTunedResources) + private static final com.google.cloud.aiplatform.v1beta1.FullFineTunedResources DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.FullFineTunedResources(); + } + + public static com.google.cloud.aiplatform.v1beta1.FullFineTunedResources getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FullFineTunedResources 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.aiplatform.v1beta1.FullFineTunedResources getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FullFineTunedResourcesOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FullFineTunedResourcesOrBuilder.java new file mode 100644 index 000000000000..0e4c8a434e4a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/FullFineTunedResourcesOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/machine_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface FullFineTunedResourcesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.FullFineTunedResources) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The kind of deployment.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for deploymentType. + */ + int getDeploymentTypeValue(); + + /** + * + * + *
+   * Required. The kind of deployment.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType deployment_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The deploymentType. + */ + com.google.cloud.aiplatform.v1beta1.FullFineTunedResources.DeploymentType getDeploymentType(); + + /** + * + * + *
+   * Optional. The number of model inference units to use for this deployment.
+   * This can only be specified for DEPLOYMENT_TYPE_PROD.
+   * The following table lists the number of model inference units for different
+   * model types:
+   * * Gemini 2.5 Flash
+   *   * Foundation FMIU: 25
+   *   * Expansion FMIU: 4
+   * * Gemini 2.5 Pro
+   *   * Foundation FMIU: 32
+   *   * Expansion FMIU: 16
+   * * Veo 3.0 (undistilled)
+   *   * Foundation FMIU: 63
+   *   * Expansion FMIU: 7
+   * * Veo 3.0 (distilled)
+   *   * Foundation FMIU: 30
+   *   * Expansion FMIU: 10
+   * 
+ * + * int32 model_inference_unit_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelInferenceUnitCount. + */ + int getModelInferenceUnitCount(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java index eeeac8751148..9b47a3738b1b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfig.java @@ -523,7 +523,7 @@ public com.google.cloud.aiplatform.v1beta1.SharePointSources getSharePointSource * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710 * @return Whether the partialFailureGcsSink field is set. */ @java.lang.Override @@ -545,7 +545,7 @@ public boolean hasPartialFailureGcsSink() { * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710 * @return The partialFailureGcsSink. */ @java.lang.Override @@ -599,7 +599,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsDestination getPartialFailureGcsSi * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink - * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698 + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719 * @return Whether the partialFailureBigquerySink field is set. */ @java.lang.Override @@ -626,7 +626,7 @@ public boolean hasPartialFailureBigquerySink() { * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink - * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698 + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719 * @return The partialFailureBigquerySink. */ @java.lang.Override @@ -808,7 +808,7 @@ public com.google.cloud.aiplatform.v1beta1.BigQueryDestination getImportResultBi * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Override @@ -829,7 +829,7 @@ public boolean hasRagFileChunkingConfig() { * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738 * @return The ragFileChunkingConfig. */ @java.lang.Override @@ -3239,7 +3239,7 @@ public Builder clearSharePointSources() { * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710 * @return Whether the partialFailureGcsSink field is set. */ @java.lang.Override @@ -3261,7 +3261,7 @@ public boolean hasPartialFailureGcsSink() { * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710 * @return The partialFailureGcsSink. */ @java.lang.Override @@ -3508,7 +3508,7 @@ public Builder clearPartialFailureGcsSink() { * * @deprecated * google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719 * @return Whether the partialFailureBigquerySink field is set. */ @java.lang.Override @@ -3536,7 +3536,7 @@ public boolean hasPartialFailureBigquerySink() { * * @deprecated * google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719 * @return The partialFailureBigquerySink. */ @java.lang.Override @@ -4314,7 +4314,7 @@ public Builder clearImportResultBigquerySink() { * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Deprecated @@ -4334,7 +4334,7 @@ public boolean hasRagFileChunkingConfig() { * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738 * @return The ragFileChunkingConfig. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java index 52b99f4b57a1..1af43e4f6932 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ImportRagFilesConfigOrBuilder.java @@ -234,7 +234,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710 * @return Whether the partialFailureGcsSink field is set. */ @java.lang.Deprecated @@ -253,7 +253,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_gcs_sink is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=689 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=710 * @return The partialFailureGcsSink. */ @java.lang.Deprecated @@ -292,7 +292,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink - * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698 + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719 * @return Whether the partialFailureBigquerySink field is set. */ @java.lang.Deprecated @@ -316,7 +316,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.partial_failure_bigquery_sink - * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=698 + * is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=719 * @return The partialFailureBigquerySink. */ @java.lang.Deprecated @@ -448,7 +448,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Deprecated @@ -466,7 +466,7 @@ public interface ImportRagFilesConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.ImportRagFilesConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=717 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=738 * @return The ragFileChunkingConfig. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java index 78f9132db386..406ad3f25531 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineResourcesProto.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_BatchDedicatedResources_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_BatchDedicatedResources_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -93,7 +97,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "7google/cloud/aiplatform/v1beta1/machine_resources.proto\022\037google.cloud.aiplatfo" + "rm.v1beta1\032\037google/api/field_behavior.pr" + "oto\0326google/cloud/aiplatform/v1beta1/accelerator_type.proto\032:google/cloud/aiplat" - + "form/v1beta1/reservation_affinity.proto\032\036google/protobuf/duration.proto\"\331\002\n" + + "form/v1beta1/reservation_affinity.proto\032\036google/protobuf/duration.proto\"\201\003\n" + "\013MachineSpec\022\031\n" + "\014machine_type\030\001 \001(\tB\003\340A\005\022O\n" + "\020accelerator_type\030\002" @@ -103,7 +107,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014tpu_topology\030\004 \001(\tB\003\340A\005\022(\n" + "\030multihost_gpu_node_count\030\006 \001(\005B\006\340A\005\340A\001\022Z\n" + "\024reservation_affinity\030\005 \001(\01324." - + "google.cloud.aiplatform.v1beta1.ReservationAffinityB\006\340A\005\340A\001\"\233\005\n" + + "google.cloud.aiplatform.v1beta1.ReservationAffinityB\006\340A\005\340A\001\022&\n" + + "\026min_gpu_driver_version\030\t \001(\tB\006\340A\001\340A\005\"\233\005\n" + "\022DedicatedResources\022J\n" + "\014machine_spec\030\001 \001(\0132,.google.cloud." + "aiplatform.v1beta1.MachineSpecB\006\340A\002\340A\005\022!\n" @@ -133,7 +138,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021max_replica_count\030\003 \001(\005B\003\340A\005\022F\n\n" + "flex_start\030\004" + " \001(\0132*.google.cloud.aiplatform.v1beta1.FlexStartB\006\340A\005\340A\001\022\021\n" - + "\004spot\030\005 \001(\010B\003\340A\001\"/\n" + + "\004spot\030\005 \001(\010B\003\340A\001\"\216\002\n" + + "\026FullFineTunedResources\022d\n" + + "\017deployment_type\030\001 \001(\0162F.google.cloud.aiplatform.v1" + + "beta1.FullFineTunedResources.DeploymentTypeB\003\340A\002\022\'\n" + + "\032model_inference_unit_count\030\002 \001(\005B\003\340A\001\"e\n" + + "\016DeploymentType\022\037\n" + + "\033DEPLOYMENT_TYPE_UNSPECIFIED\020\000\022\030\n" + + "\024DEPLOYMENT_TYPE_EVAL\020\001\022\030\n" + + "\024DEPLOYMENT_TYPE_PROD\020\002\"/\n" + "\021ResourcesConsumed\022\032\n\r" + "replica_hours\030\001 \001(\001B\003\340A\003\"=\n" + "\010DiskSpec\022\026\n" @@ -149,9 +162,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025AutoscalingMetricSpec\022\030\n" + "\013metric_name\030\001 \001(\tB\003\340A\002\022\016\n" + "\006target\030\002 \001(\005\022{\n" - + "\031monitored_resource_labels\030\003 \003(\0132S.go" - + "ogle.cloud.aiplatform.v1beta1.Autoscalin" - + "gMetricSpec.MonitoredResourceLabelsEntryB\003\340A\001\032>\n" + + "\031monitored_resource_labels\030\003 \003(\0132S.google.cl" + + "oud.aiplatform.v1beta1.AutoscalingMetric" + + "Spec.MonitoredResourceLabelsEntryB\003\340A\001\032>\n" + "\034MonitoredResourceLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\".\n" @@ -159,11 +172,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022enable_secure_boot\030\001 \001(\010\"D\n" + "\tFlexStart\0227\n" + "\024max_runtime_duration\030\001 \001(\0132\031.google.protobuf.DurationB\354\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\025MachineReso" - + "urcesProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformp" - + "b\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Go" - + "ogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::" - + "Cloud::AIPlatform::V1beta1b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\025MachineResourcesPr" + + "otoP\001ZCcloud.google.com/go/aiplatform/ap" + + "iv1beta1/aiplatformpb;aiplatformpb\252\002\037Goo" + + "gle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Cl" + + "oud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -187,6 +200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TpuTopology", "MultihostGpuNodeCount", "ReservationAffinity", + "MinGpuDriverVersion", }); internal_static_google_cloud_aiplatform_v1beta1_DedicatedResources_descriptor = getDescriptor().getMessageTypes().get(1); @@ -230,8 +244,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "MachineSpec", "StartingReplicaCount", "MaxReplicaCount", "FlexStart", "Spot", }); - internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_FullFineTunedResources_descriptor, + new java.lang.String[] { + "DeploymentType", "ModelInferenceUnitCount", + }); + internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ResourcesConsumed_descriptor, @@ -239,7 +261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReplicaHours", }); internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_DiskSpec_descriptor, @@ -247,7 +269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BootDiskType", "BootDiskSizeGb", }); internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PersistentDiskSpec_descriptor, @@ -255,7 +277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DiskType", "DiskSizeGb", }); internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1beta1_NfsMount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_NfsMount_descriptor, @@ -263,7 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Server", "Path", "MountPoint", }); internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_AutoscalingMetricSpec_descriptor, @@ -281,7 +303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_aiplatform_v1beta1_ShieldedVmConfig_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1beta1_ShieldedVmConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ShieldedVmConfig_descriptor, @@ -289,7 +311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableSecureBoot", }); internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1beta1_FlexStart_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_FlexStart_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java index 4cb7f8be8e05..00af546eeb06 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpec.java @@ -44,6 +44,7 @@ private MachineSpec() { acceleratorType_ = 0; gpuPartitionSize_ = ""; tpuTopology_ = ""; + minGpuDriverVersion_ = ""; } @java.lang.Override @@ -434,6 +435,67 @@ public com.google.cloud.aiplatform.v1beta1.ReservationAffinity getReservationAff : reservationAffinity_; } + public static final int MIN_GPU_DRIVER_VERSION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object minGpuDriverVersion_ = ""; + + /** + * + * + *
+   * Optional. Immutable. The minimum GPU driver version that this machine
+   * requires. For example, "535.104.06". If not specified, the default GPU
+   * driver version will be used by the underlying infrastructure.
+   * 
+ * + * + * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The minGpuDriverVersion. + */ + @java.lang.Override + public java.lang.String getMinGpuDriverVersion() { + java.lang.Object ref = minGpuDriverVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minGpuDriverVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Immutable. The minimum GPU driver version that this machine
+   * requires. For example, "535.104.06". If not specified, the default GPU
+   * driver version will be used by the underlying infrastructure.
+   * 
+ * + * + * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for minGpuDriverVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMinGpuDriverVersionBytes() { + java.lang.Object ref = minGpuDriverVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minGpuDriverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -471,6 +533,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, gpuPartitionSize_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minGpuDriverVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, minGpuDriverVersion_); + } getUnknownFields().writeTo(output); } @@ -503,6 +568,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gpuPartitionSize_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, gpuPartitionSize_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(minGpuDriverVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, minGpuDriverVersion_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -529,6 +597,7 @@ public boolean equals(final java.lang.Object obj) { if (hasReservationAffinity()) { if (!getReservationAffinity().equals(other.getReservationAffinity())) return false; } + if (!getMinGpuDriverVersion().equals(other.getMinGpuDriverVersion())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -556,6 +625,8 @@ public int hashCode() { hash = (37 * hash) + RESERVATION_AFFINITY_FIELD_NUMBER; hash = (53 * hash) + getReservationAffinity().hashCode(); } + hash = (37 * hash) + MIN_GPU_DRIVER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMinGpuDriverVersion().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -716,6 +787,7 @@ public Builder clear() { reservationAffinityBuilder_.dispose(); reservationAffinityBuilder_ = null; } + minGpuDriverVersion_ = ""; return this; } @@ -778,6 +850,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MachineSpec resul : reservationAffinityBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.minGpuDriverVersion_ = minGpuDriverVersion_; + } result.bitField0_ |= to_bitField0_; } @@ -854,6 +929,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MachineSpec other) if (other.hasReservationAffinity()) { mergeReservationAffinity(other.getReservationAffinity()); } + if (!other.getMinGpuDriverVersion().isEmpty()) { + minGpuDriverVersion_ = other.minGpuDriverVersion_; + bitField0_ |= 0x00000080; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -923,6 +1003,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 58 + case 74: + { + minGpuDriverVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1880,6 +1966,137 @@ public Builder clearReservationAffinity() { return reservationAffinityBuilder_; } + private java.lang.Object minGpuDriverVersion_ = ""; + + /** + * + * + *
+     * Optional. Immutable. The minimum GPU driver version that this machine
+     * requires. For example, "535.104.06". If not specified, the default GPU
+     * driver version will be used by the underlying infrastructure.
+     * 
+ * + * + * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The minGpuDriverVersion. + */ + public java.lang.String getMinGpuDriverVersion() { + java.lang.Object ref = minGpuDriverVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + minGpuDriverVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. The minimum GPU driver version that this machine
+     * requires. For example, "535.104.06". If not specified, the default GPU
+     * driver version will be used by the underlying infrastructure.
+     * 
+ * + * + * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for minGpuDriverVersion. + */ + public com.google.protobuf.ByteString getMinGpuDriverVersionBytes() { + java.lang.Object ref = minGpuDriverVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + minGpuDriverVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Immutable. The minimum GPU driver version that this machine
+     * requires. For example, "535.104.06". If not specified, the default GPU
+     * driver version will be used by the underlying infrastructure.
+     * 
+ * + * + * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The minGpuDriverVersion to set. + * @return This builder for chaining. + */ + public Builder setMinGpuDriverVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + minGpuDriverVersion_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The minimum GPU driver version that this machine
+     * requires. For example, "535.104.06". If not specified, the default GPU
+     * driver version will be used by the underlying infrastructure.
+     * 
+ * + * + * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearMinGpuDriverVersion() { + minGpuDriverVersion_ = getDefaultInstance().getMinGpuDriverVersion(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The minimum GPU driver version that this machine
+     * requires. For example, "535.104.06". If not specified, the default GPU
+     * driver version will be used by the underlying infrastructure.
+     * 
+ * + * + * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for minGpuDriverVersion to set. + * @return This builder for chaining. + */ + public Builder setMinGpuDriverVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + minGpuDriverVersion_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java index e99f4d0f24bb..de2a660e643b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MachineSpecOrBuilder.java @@ -267,4 +267,38 @@ public interface MachineSpecOrBuilder */ com.google.cloud.aiplatform.v1beta1.ReservationAffinityOrBuilder getReservationAffinityOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. The minimum GPU driver version that this machine
+   * requires. For example, "535.104.06". If not specified, the default GPU
+   * driver version will be used by the underlying infrastructure.
+   * 
+ * + * + * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The minGpuDriverVersion. + */ + java.lang.String getMinGpuDriverVersion(); + + /** + * + * + *
+   * Optional. Immutable. The minimum GPU driver version that this machine
+   * requires. For example, "535.104.06". If not specified, the default GPU
+   * driver version will be used by the underlying infrastructure.
+   * 
+ * + * + * string min_gpu_driver_version = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for minGpuDriverVersion. + */ + com.google.protobuf.ByteString getMinGpuDriverVersionBytes(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MultiSpeakerVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MultiSpeakerVoiceConfig.java new file mode 100644 index 000000000000..4ba0e3d91fb8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MultiSpeakerVoiceConfig.java @@ -0,0 +1,1052 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Configuration for a multi-speaker text-to-speech request.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig} + */ +public final class MultiSpeakerVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) + MultiSpeakerVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use MultiSpeakerVoiceConfig.newBuilder() to construct. + private MultiSpeakerVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MultiSpeakerVoiceConfig() { + speakerVoiceConfigs_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MultiSpeakerVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder.class); + } + + public static final int SPEAKER_VOICE_CONFIGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + speakerVoiceConfigs_; + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSpeakerVoiceConfigsList() { + return speakerVoiceConfigs_; + } + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getSpeakerVoiceConfigsOrBuilderList() { + return speakerVoiceConfigs_; + } + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSpeakerVoiceConfigsCount() { + return speakerVoiceConfigs_.size(); + } + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index) { + return speakerVoiceConfigs_.get(index); + } + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder + getSpeakerVoiceConfigsOrBuilder(int index) { + return speakerVoiceConfigs_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < speakerVoiceConfigs_.size(); i++) { + output.writeMessage(2, speakerVoiceConfigs_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < speakerVoiceConfigs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, speakerVoiceConfigs_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig other = + (com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) obj; + + if (!getSpeakerVoiceConfigsList().equals(other.getSpeakerVoiceConfigsList())) 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 (getSpeakerVoiceConfigsCount() > 0) { + hash = (37 * hash) + SPEAKER_VOICE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getSpeakerVoiceConfigsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig 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.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig 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.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig 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.aiplatform.v1beta1.MultiSpeakerVoiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig 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.aiplatform.v1beta1.MultiSpeakerVoiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for a multi-speaker text-to-speech request.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (speakerVoiceConfigsBuilder_ == null) { + speakerVoiceConfigs_ = java.util.Collections.emptyList(); + } else { + speakerVoiceConfigs_ = null; + speakerVoiceConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_MultiSpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig build() { + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig result = + new com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig result) { + if (speakerVoiceConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + speakerVoiceConfigs_ = java.util.Collections.unmodifiableList(speakerVoiceConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.speakerVoiceConfigs_ = speakerVoiceConfigs_; + } else { + result.speakerVoiceConfigs_ = speakerVoiceConfigsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance()) + return this; + if (speakerVoiceConfigsBuilder_ == null) { + if (!other.speakerVoiceConfigs_.isEmpty()) { + if (speakerVoiceConfigs_.isEmpty()) { + speakerVoiceConfigs_ = other.speakerVoiceConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.addAll(other.speakerVoiceConfigs_); + } + onChanged(); + } + } else { + if (!other.speakerVoiceConfigs_.isEmpty()) { + if (speakerVoiceConfigsBuilder_.isEmpty()) { + speakerVoiceConfigsBuilder_.dispose(); + speakerVoiceConfigsBuilder_ = null; + speakerVoiceConfigs_ = other.speakerVoiceConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + speakerVoiceConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSpeakerVoiceConfigsFieldBuilder() + : null; + } else { + speakerVoiceConfigsBuilder_.addAllMessages(other.speakerVoiceConfigs_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.parser(), + extensionRegistry); + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(m); + } else { + speakerVoiceConfigsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + speakerVoiceConfigs_ = java.util.Collections.emptyList(); + + private void ensureSpeakerVoiceConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + speakerVoiceConfigs_ = + new java.util.ArrayList( + speakerVoiceConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig, + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder> + speakerVoiceConfigsBuilder_; + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSpeakerVoiceConfigsList() { + if (speakerVoiceConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(speakerVoiceConfigs_); + } else { + return speakerVoiceConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSpeakerVoiceConfigsCount() { + if (speakerVoiceConfigsBuilder_ == null) { + return speakerVoiceConfigs_.size(); + } else { + return speakerVoiceConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getSpeakerVoiceConfigs( + int index) { + if (speakerVoiceConfigsBuilder_ == null) { + return speakerVoiceConfigs_.get(index); + } else { + return speakerVoiceConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpeakerVoiceConfigs( + int index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig value) { + if (speakerVoiceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.set(index, value); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSpeakerVoiceConfigs( + int index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder builderForValue) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpeakerVoiceConfigs( + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig value) { + if (speakerVoiceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(value); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpeakerVoiceConfigs( + int index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig value) { + if (speakerVoiceConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(index, value); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpeakerVoiceConfigs( + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder builderForValue) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(builderForValue.build()); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSpeakerVoiceConfigs( + int index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder builderForValue) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSpeakerVoiceConfigs( + java.lang.Iterable + values) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speakerVoiceConfigs_); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSpeakerVoiceConfigs() { + if (speakerVoiceConfigsBuilder_ == null) { + speakerVoiceConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSpeakerVoiceConfigs(int index) { + if (speakerVoiceConfigsBuilder_ == null) { + ensureSpeakerVoiceConfigsIsMutable(); + speakerVoiceConfigs_.remove(index); + onChanged(); + } else { + speakerVoiceConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder + getSpeakerVoiceConfigsBuilder(int index) { + return getSpeakerVoiceConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder + getSpeakerVoiceConfigsOrBuilder(int index) { + if (speakerVoiceConfigsBuilder_ == null) { + return speakerVoiceConfigs_.get(index); + } else { + return speakerVoiceConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSpeakerVoiceConfigsOrBuilderList() { + if (speakerVoiceConfigsBuilder_ != null) { + return speakerVoiceConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(speakerVoiceConfigs_); + } + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder + addSpeakerVoiceConfigsBuilder() { + return getSpeakerVoiceConfigsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder + addSpeakerVoiceConfigsBuilder(int index) { + return getSpeakerVoiceConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. A list of configurations for the voices of the speakers. Exactly
+     * two speaker voice configurations must be provided.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getSpeakerVoiceConfigsBuilderList() { + return getSpeakerVoiceConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig, + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder> + getSpeakerVoiceConfigsFieldBuilder() { + if (speakerVoiceConfigsBuilder_ == null) { + speakerVoiceConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig, + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder>( + speakerVoiceConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + speakerVoiceConfigs_ = null; + } + return speakerVoiceConfigsBuilder_; + } + + @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.aiplatform.v1beta1.MultiSpeakerVoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) + private static final com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultiSpeakerVoiceConfig 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.aiplatform.v1beta1.MultiSpeakerVoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MultiSpeakerVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MultiSpeakerVoiceConfigOrBuilder.java new file mode 100644 index 000000000000..2f379b0a8749 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MultiSpeakerVoiceConfigOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface MultiSpeakerVoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSpeakerVoiceConfigsList(); + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getSpeakerVoiceConfigs(int index); + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSpeakerVoiceConfigsCount(); + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSpeakerVoiceConfigsOrBuilderList(); + + /** + * + * + *
+   * Required. A list of configurations for the voices of the speakers. Exactly
+   * two speaker voice configurations must be provided.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig speaker_voice_configs = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder getSpeakerVoiceConfigsOrBuilder( + int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java index 0cef861b82bf..bc29b052674e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpus.java @@ -3048,7 +3048,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated. - * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360 * @return Whether the ragEmbeddingModelConfig field is set. */ @java.lang.Override @@ -3069,7 +3069,7 @@ public boolean hasRagEmbeddingModelConfig() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated. - * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360 * @return The ragEmbeddingModelConfig. */ @java.lang.Override @@ -3115,7 +3115,7 @@ public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig getRagEmbeddi * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367 * @return Whether the ragVectorDbConfig field is set. */ @java.lang.Override @@ -3136,7 +3136,7 @@ public boolean hasRagVectorDbConfig() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367 * @return The ragVectorDbConfig. */ @java.lang.Override @@ -3338,6 +3338,9 @@ public com.google.cloud.aiplatform.v1beta1.CorpusStatusOrBuilder getCorpusStatus * *
    * Output only. Number of RagFiles in the RagCorpus.
+   *
+   * NOTE: This field is not populated in the response of
+   * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
    * 
* * int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3477,6 +3480,44 @@ public com.google.cloud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfig getCorpusT : corpusTypeConfig_; } + public static final int SATISFIES_PZS_FIELD_NUMBER = 19; + private boolean satisfiesPzs_ = false; + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + public static final int SATISFIES_PZI_FIELD_NUMBER = 20; + private boolean satisfiesPzi_ = false; + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3532,6 +3573,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(13, getCorpusTypeConfig()); } + if (satisfiesPzs_ != false) { + output.writeBool(19, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + output.writeBool(20, satisfiesPzi_); + } getUnknownFields().writeTo(output); } @@ -3585,6 +3632,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getCorpusTypeConfig()); } + if (satisfiesPzs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, satisfiesPzs_); + } + if (satisfiesPzi_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, satisfiesPzi_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3633,6 +3686,8 @@ public boolean equals(final java.lang.Object obj) { if (hasCorpusTypeConfig()) { if (!getCorpusTypeConfig().equals(other.getCorpusTypeConfig())) return false; } + if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; if (!getBackendConfigCase().equals(other.getBackendConfigCase())) return false; switch (backendConfigCase_) { case 9: @@ -3691,6 +3746,10 @@ public int hashCode() { hash = (37 * hash) + CORPUS_TYPE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getCorpusTypeConfig().hashCode(); } + hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); switch (backendConfigCase_) { case 9: hash = (37 * hash) + VECTOR_DB_CONFIG_FIELD_NUMBER; @@ -3904,6 +3963,8 @@ public Builder clear() { corpusTypeConfigBuilder_.dispose(); corpusTypeConfigBuilder_ = null; } + satisfiesPzs_ = false; + satisfiesPzi_ = false; backendConfigCase_ = 0; backendConfig_ = null; return this; @@ -3993,6 +4054,12 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagCorpus result) corpusTypeConfigBuilder_ == null ? corpusTypeConfig_ : corpusTypeConfigBuilder_.build(); to_bitField0_ |= 0x00000040; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.satisfiesPzs_ = satisfiesPzs_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.satisfiesPzi_ = satisfiesPzi_; + } result.bitField0_ |= to_bitField0_; } @@ -4091,6 +4158,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagCorpus other) { if (other.hasCorpusTypeConfig()) { mergeCorpusTypeConfig(other.getCorpusTypeConfig()); } + if (other.getSatisfiesPzs() != false) { + setSatisfiesPzs(other.getSatisfiesPzs()); + } + if (other.getSatisfiesPzi() != false) { + setSatisfiesPzi(other.getSatisfiesPzi()); + } switch (other.getBackendConfigCase()) { case VECTOR_DB_CONFIG: { @@ -4215,6 +4288,18 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 106 + case 152: + { + satisfiesPzs_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 152 + case 160: + { + satisfiesPzi_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5093,7 +5178,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360 * @return Whether the ragEmbeddingModelConfig field is set. */ @java.lang.Deprecated @@ -5113,7 +5198,7 @@ public boolean hasRagEmbeddingModelConfig() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360 * @return The ragEmbeddingModelConfig. */ @java.lang.Deprecated @@ -5325,7 +5410,7 @@ public Builder clearRagEmbeddingModelConfig() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367 * @return Whether the ragVectorDbConfig field is set. */ @java.lang.Deprecated @@ -5345,7 +5430,7 @@ public boolean hasRagVectorDbConfig() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367 * @return The ragVectorDbConfig. */ @java.lang.Deprecated @@ -6181,6 +6266,9 @@ public com.google.cloud.aiplatform.v1beta1.CorpusStatusOrBuilder getCorpusStatus * *
      * Output only. Number of RagFiles in the RagCorpus.
+     *
+     * NOTE: This field is not populated in the response of
+     * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
      * 
* * int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6197,6 +6285,9 @@ public int getRagFilesCount() { * *
      * Output only. Number of RagFiles in the RagCorpus.
+     *
+     * NOTE: This field is not populated in the response of
+     * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
      * 
* * int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6217,6 +6308,9 @@ public Builder setRagFilesCount(int value) { * *
      * Output only. Number of RagFiles in the RagCorpus.
+     *
+     * NOTE: This field is not populated in the response of
+     * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
      * 
* * int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6691,6 +6785,118 @@ public Builder clearCorpusTypeConfig() { return corpusTypeConfigBuilder_; } + private boolean satisfiesPzs_; + + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + @java.lang.Override + public boolean getSatisfiesPzs() { + return satisfiesPzs_; + } + + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzs to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzs(boolean value) { + + satisfiesPzs_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzs() { + bitField0_ = (bitField0_ & ~0x00002000); + satisfiesPzs_ = false; + onChanged(); + return this; + } + + private boolean satisfiesPzi_; + + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + @java.lang.Override + public boolean getSatisfiesPzi() { + return satisfiesPzi_; + } + + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The satisfiesPzi to set. + * @return This builder for chaining. + */ + public Builder setSatisfiesPzi(boolean value) { + + satisfiesPzi_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Reserved for future use.
+     * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSatisfiesPzi() { + bitField0_ = (bitField0_ & ~0x00004000); + satisfiesPzi_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java index 2ae2b11f7044..6e73d63b4e2c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagCorpusOrBuilder.java @@ -205,7 +205,7 @@ public interface RagCorpusOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated. - * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360 * @return Whether the ragEmbeddingModelConfig field is set. */ @java.lang.Deprecated @@ -223,7 +223,7 @@ public interface RagCorpusOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_embedding_model_config is deprecated. - * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=348 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=360 * @return The ragEmbeddingModelConfig. */ @java.lang.Deprecated @@ -256,7 +256,7 @@ public interface RagCorpusOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367 * @return Whether the ragVectorDbConfig field is set. */ @java.lang.Deprecated @@ -274,7 +274,7 @@ public interface RagCorpusOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.RagCorpus.rag_vector_db_config is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=355 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=367 * @return The ragVectorDbConfig. */ @java.lang.Deprecated @@ -422,6 +422,9 @@ public interface RagCorpusOrBuilder * *
    * Output only. Number of RagFiles in the RagCorpus.
+   *
+   * NOTE: This field is not populated in the response of
+   * [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora].
    * 
* * int32 rag_files_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -526,5 +529,31 @@ public interface RagCorpusOrBuilder com.google.cloud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfigOrBuilder getCorpusTypeConfigOrBuilder(); + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzs. + */ + boolean getSatisfiesPzs(); + + /** + * + * + *
+   * Output only. Reserved for future use.
+   * 
+ * + * bool satisfies_pzi = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The satisfiesPzi. + */ + boolean getSatisfiesPzi(); + com.google.cloud.aiplatform.v1beta1.RagCorpus.BackendConfigCase getBackendConfigCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java index debfc2437242..3b8007b250de 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFile.java @@ -1041,7 +1041,7 @@ public com.google.cloud.aiplatform.v1beta1.FileStatusOrBuilder getFileStatusOrBu * * *
-   * Output only. The metadata for metadata search. The contents will be
+   * Output only. The metadata for metadata search. The user_metadata Needs to
    * be in JSON format.
    * 
* @@ -1066,7 +1066,7 @@ public java.lang.String getUserMetadata() { * * *
-   * Output only. The metadata for metadata search. The contents will be
+   * Output only. The metadata for metadata search. The user_metadata Needs to
    * be in JSON format.
    * 
* @@ -4452,7 +4452,7 @@ public com.google.cloud.aiplatform.v1beta1.FileStatusOrBuilder getFileStatusOrBu * * *
-     * Output only. The metadata for metadata search. The contents will be
+     * Output only. The metadata for metadata search. The user_metadata Needs to
      * be in JSON format.
      * 
* @@ -4476,7 +4476,7 @@ public java.lang.String getUserMetadata() { * * *
-     * Output only. The metadata for metadata search. The contents will be
+     * Output only. The metadata for metadata search. The user_metadata Needs to
      * be in JSON format.
      * 
* @@ -4500,7 +4500,7 @@ public com.google.protobuf.ByteString getUserMetadataBytes() { * * *
-     * Output only. The metadata for metadata search. The contents will be
+     * Output only. The metadata for metadata search. The user_metadata Needs to
      * be in JSON format.
      * 
* @@ -4523,7 +4523,7 @@ public Builder setUserMetadata(java.lang.String value) { * * *
-     * Output only. The metadata for metadata search. The contents will be
+     * Output only. The metadata for metadata search. The user_metadata Needs to
      * be in JSON format.
      * 
* @@ -4542,7 +4542,7 @@ public Builder clearUserMetadata() { * * *
-     * Output only. The metadata for metadata search. The contents will be
+     * Output only. The metadata for metadata search. The user_metadata Needs to
      * be in JSON format.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java index 35caa86d0718..1baa912d5f29 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfig.java @@ -873,7 +873,7 @@ public boolean hasFixedLengthChunking() { * int32 chunk_size = 1 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528 * @return The chunkSize. */ @java.lang.Override @@ -895,7 +895,7 @@ public int getChunkSize() { * int32 chunk_overlap = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is deprecated. - * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531 * @return The chunkOverlap. */ @java.lang.Override @@ -1613,7 +1613,7 @@ public Builder clearFixedLengthChunking() { * int32 chunk_size = 1 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. - * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528 * @return The chunkSize. */ @java.lang.Override @@ -1632,7 +1632,7 @@ public int getChunkSize() { * int32 chunk_size = 1 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. - * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528 * @param value The chunkSize to set. * @return This builder for chaining. */ @@ -1655,7 +1655,7 @@ public Builder setChunkSize(int value) { * int32 chunk_size = 1 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. - * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1678,7 +1678,7 @@ public Builder clearChunkSize() { * int32 chunk_overlap = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531 * @return The chunkOverlap. */ @java.lang.Override @@ -1697,7 +1697,7 @@ public int getChunkOverlap() { * int32 chunk_overlap = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531 * @param value The chunkOverlap to set. * @return This builder for chaining. */ @@ -1720,7 +1720,7 @@ public Builder setChunkOverlap(int value) { * int32 chunk_overlap = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java index 1e19cadba1ad..8474e3324be2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileChunkingConfigOrBuilder.java @@ -79,7 +79,7 @@ public interface RagFileChunkingConfigOrBuilder * int32 chunk_size = 1 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_size is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=507 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=528 * @return The chunkSize. */ @java.lang.Deprecated @@ -95,7 +95,7 @@ public interface RagFileChunkingConfigOrBuilder * int32 chunk_overlap = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileChunkingConfig.chunk_overlap is deprecated. - * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=510 + * See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=531 * @return The chunkOverlap. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfig.java index d615b611de16..189b4f811a02 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfig.java @@ -178,7 +178,7 @@ public MetadataSourceCase getMetadataSourceCase() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -199,7 +199,7 @@ public boolean hasGcsMetadataSchemaSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -223,7 +223,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSchemaSource( * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -246,7 +246,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSchemaSource( *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a folder, the metadata schema will be read from
+   * If the user provides a folder, the metadata schema will be read from
    * the files that ends with "metadata_schema.json" in the directory.
    * 
* @@ -267,7 +267,7 @@ public boolean hasGoogleDriveMetadataSchemaSource() { *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a folder, the metadata schema will be read from
+   * If the user provides a folder, the metadata schema will be read from
    * the files that ends with "metadata_schema.json" in the directory.
    * 
* @@ -292,7 +292,7 @@ public boolean hasGoogleDriveMetadataSchemaSource() { *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a folder, the metadata schema will be read from
+   * If the user provides a folder, the metadata schema will be read from
    * the files that ends with "metadata_schema.json" in the directory.
    * 
* @@ -392,7 +392,7 @@ public com.google.protobuf.ByteString getInlineMetadataSchemaSourceBytes() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -413,7 +413,7 @@ public boolean hasGcsMetadataSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -437,7 +437,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -459,7 +459,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsMetadataSour *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a directory, the metadata will be read from
+   * If the user provides a directory, the metadata will be read from
    * the files that ends with "metadata.json" in the directory.
    * 
* @@ -479,7 +479,7 @@ public boolean hasGoogleDriveMetadataSource() { *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a directory, the metadata will be read from
+   * If the user provides a directory, the metadata will be read from
    * the files that ends with "metadata.json" in the directory.
    * 
* @@ -502,7 +502,7 @@ public com.google.cloud.aiplatform.v1beta1.GoogleDriveSource getGoogleDriveMetad *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a directory, the metadata will be read from
+   * If the user provides a directory, the metadata will be read from
    * the files that ends with "metadata.json" in the directory.
    * 
* @@ -1188,7 +1188,7 @@ public Builder clearMetadataSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -1209,7 +1209,7 @@ public boolean hasGcsMetadataSchemaSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -1240,7 +1240,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSchemaSource( * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -1268,7 +1268,7 @@ public Builder setGcsMetadataSchemaSource(com.google.cloud.aiplatform.v1beta1.Gc * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -1294,7 +1294,7 @@ public Builder setGcsMetadataSchemaSource( * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -1334,7 +1334,7 @@ public Builder mergeGcsMetadataSchemaSource( * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -1365,7 +1365,7 @@ public Builder clearGcsMetadataSchemaSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -1384,7 +1384,7 @@ public Builder clearGcsMetadataSchemaSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -1411,7 +1411,7 @@ public Builder clearGcsMetadataSchemaSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -1454,7 +1454,7 @@ public Builder clearGcsMetadataSchemaSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a folder, the metadata schema will be read from
+     * If the user provides a folder, the metadata schema will be read from
      * the files that ends with "metadata_schema.json" in the directory.
      * 
* @@ -1475,7 +1475,7 @@ public boolean hasGoogleDriveMetadataSchemaSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a folder, the metadata schema will be read from
+     * If the user provides a folder, the metadata schema will be read from
      * the files that ends with "metadata_schema.json" in the directory.
      * 
* @@ -1507,7 +1507,7 @@ public boolean hasGoogleDriveMetadataSchemaSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a folder, the metadata schema will be read from
+     * If the user provides a folder, the metadata schema will be read from
      * the files that ends with "metadata_schema.json" in the directory.
      * 
* @@ -1536,7 +1536,7 @@ public Builder setGoogleDriveMetadataSchemaSource( *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a folder, the metadata schema will be read from
+     * If the user provides a folder, the metadata schema will be read from
      * the files that ends with "metadata_schema.json" in the directory.
      * 
* @@ -1562,7 +1562,7 @@ public Builder setGoogleDriveMetadataSchemaSource( *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a folder, the metadata schema will be read from
+     * If the user provides a folder, the metadata schema will be read from
      * the files that ends with "metadata_schema.json" in the directory.
      * 
* @@ -1602,7 +1602,7 @@ public Builder mergeGoogleDriveMetadataSchemaSource( *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a folder, the metadata schema will be read from
+     * If the user provides a folder, the metadata schema will be read from
      * the files that ends with "metadata_schema.json" in the directory.
      * 
* @@ -1633,7 +1633,7 @@ public Builder clearGoogleDriveMetadataSchemaSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a folder, the metadata schema will be read from
+     * If the user provides a folder, the metadata schema will be read from
      * the files that ends with "metadata_schema.json" in the directory.
      * 
* @@ -1652,7 +1652,7 @@ public Builder clearGoogleDriveMetadataSchemaSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a folder, the metadata schema will be read from
+     * If the user provides a folder, the metadata schema will be read from
      * the files that ends with "metadata_schema.json" in the directory.
      * 
* @@ -1679,7 +1679,7 @@ public Builder clearGoogleDriveMetadataSchemaSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a folder, the metadata schema will be read from
+     * If the user provides a folder, the metadata schema will be read from
      * the files that ends with "metadata_schema.json" in the directory.
      * 
* @@ -1865,7 +1865,7 @@ public Builder setInlineMetadataSchemaSourceBytes(com.google.protobuf.ByteString * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -1886,7 +1886,7 @@ public boolean hasGcsMetadataSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -1917,7 +1917,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource getGcsMetadataSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -1945,7 +1945,7 @@ public Builder setGcsMetadataSource(com.google.cloud.aiplatform.v1beta1.GcsSourc * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -1971,7 +1971,7 @@ public Builder setGcsMetadataSource( * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -2010,7 +2010,7 @@ public Builder mergeGcsMetadataSource(com.google.cloud.aiplatform.v1beta1.GcsSou * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -2041,7 +2041,7 @@ public Builder clearGcsMetadataSource() { * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -2059,7 +2059,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSource.Builder getGcsMetadataSourc * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -2085,7 +2085,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsMetadataSour * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -2127,7 +2127,7 @@ public com.google.cloud.aiplatform.v1beta1.GcsSourceOrBuilder getGcsMetadataSour *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a directory, the metadata will be read from
+     * If the user provides a directory, the metadata will be read from
      * the files that ends with "metadata.json" in the directory.
      * 
* @@ -2147,7 +2147,7 @@ public boolean hasGoogleDriveMetadataSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a directory, the metadata will be read from
+     * If the user provides a directory, the metadata will be read from
      * the files that ends with "metadata.json" in the directory.
      * 
* @@ -2177,7 +2177,7 @@ public com.google.cloud.aiplatform.v1beta1.GoogleDriveSource getGoogleDriveMetad *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a directory, the metadata will be read from
+     * If the user provides a directory, the metadata will be read from
      * the files that ends with "metadata.json" in the directory.
      * 
* @@ -2205,7 +2205,7 @@ public Builder setGoogleDriveMetadataSource( *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a directory, the metadata will be read from
+     * If the user provides a directory, the metadata will be read from
      * the files that ends with "metadata.json" in the directory.
      * 
* @@ -2230,7 +2230,7 @@ public Builder setGoogleDriveMetadataSource( *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a directory, the metadata will be read from
+     * If the user provides a directory, the metadata will be read from
      * the files that ends with "metadata.json" in the directory.
      * 
* @@ -2269,7 +2269,7 @@ public Builder mergeGoogleDriveMetadataSource( *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a directory, the metadata will be read from
+     * If the user provides a directory, the metadata will be read from
      * the files that ends with "metadata.json" in the directory.
      * 
* @@ -2299,7 +2299,7 @@ public Builder clearGoogleDriveMetadataSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a directory, the metadata will be read from
+     * If the user provides a directory, the metadata will be read from
      * the files that ends with "metadata.json" in the directory.
      * 
* @@ -2317,7 +2317,7 @@ public Builder clearGoogleDriveMetadataSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a directory, the metadata will be read from
+     * If the user provides a directory, the metadata will be read from
      * the files that ends with "metadata.json" in the directory.
      * 
* @@ -2343,7 +2343,7 @@ public Builder clearGoogleDriveMetadataSource() { *
      * Google Drive location. Supports importing individual files as
      * well as Google Drive folders.
-     * If providing a directory, the metadata will be read from
+     * If the user provides a directory, the metadata will be read from
      * the files that ends with "metadata.json" in the directory.
      * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfigOrBuilder.java index 7a0805d436d2..bd4de42441f8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileMetadataConfigOrBuilder.java @@ -32,7 +32,7 @@ public interface RagFileMetadataConfigOrBuilder * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -50,7 +50,7 @@ public interface RagFileMetadataConfigOrBuilder * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -68,7 +68,7 @@ public interface RagFileMetadataConfigOrBuilder * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata_schema.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata schema will be read from + * If the user provides a directory, the metadata schema will be read from * the files that ends with "metadata_schema.json" in the directory. * * @@ -82,7 +82,7 @@ public interface RagFileMetadataConfigOrBuilder *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a folder, the metadata schema will be read from
+   * If the user provides a folder, the metadata schema will be read from
    * the files that ends with "metadata_schema.json" in the directory.
    * 
* @@ -100,7 +100,7 @@ public interface RagFileMetadataConfigOrBuilder *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a folder, the metadata schema will be read from
+   * If the user provides a folder, the metadata schema will be read from
    * the files that ends with "metadata_schema.json" in the directory.
    * 
* @@ -118,7 +118,7 @@ public interface RagFileMetadataConfigOrBuilder *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a folder, the metadata schema will be read from
+   * If the user provides a folder, the metadata schema will be read from
    * the files that ends with "metadata_schema.json" in the directory.
    * 
* @@ -176,7 +176,7 @@ public interface RagFileMetadataConfigOrBuilder * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -194,7 +194,7 @@ public interface RagFileMetadataConfigOrBuilder * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -212,7 +212,7 @@ public interface RagFileMetadataConfigOrBuilder * well as entire Google Cloud Storage directories. Sample formats: * - `gs://bucket_name/my_directory/object_name/metadata.json` * - `gs://bucket_name/my_directory` - * If providing a directory, the metadata will be read from + * If the user provides a directory, the metadata will be read from * the files that ends with "metadata.json" in the directory. * * @@ -226,7 +226,7 @@ public interface RagFileMetadataConfigOrBuilder *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a directory, the metadata will be read from
+   * If the user provides a directory, the metadata will be read from
    * the files that ends with "metadata.json" in the directory.
    * 
* @@ -243,7 +243,7 @@ public interface RagFileMetadataConfigOrBuilder *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a directory, the metadata will be read from
+   * If the user provides a directory, the metadata will be read from
    * the files that ends with "metadata.json" in the directory.
    * 
* @@ -260,7 +260,7 @@ public interface RagFileMetadataConfigOrBuilder *
    * Google Drive location. Supports importing individual files as
    * well as Google Drive folders.
-   * If providing a directory, the metadata will be read from
+   * If the user provides a directory, the metadata will be read from
    * the files that ends with "metadata.json" in the directory.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java index 93870200ec02..089f9f3da283 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileOrBuilder.java @@ -525,7 +525,7 @@ public interface RagFileOrBuilder * * *
-   * Output only. The metadata for metadata search. The contents will be
+   * Output only. The metadata for metadata search. The user_metadata Needs to
    * be in JSON format.
    * 
* @@ -539,7 +539,7 @@ public interface RagFileOrBuilder * * *
-   * Output only. The metadata for metadata search. The contents will be
+   * Output only. The metadata for metadata search. The user_metadata Needs to
    * be in JSON format.
    * 
* diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java index 8514dc49e3e5..fa6468ab7037 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfig.java @@ -3036,7 +3036,7 @@ public com.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParser getLlm * bool use_advanced_pdf_parsing = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616 * @return The useAdvancedPdfParsing. */ @java.lang.Override @@ -4256,7 +4256,7 @@ public Builder clearLlmParser() { * bool use_advanced_pdf_parsing = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616 * @return The useAdvancedPdfParsing. */ @java.lang.Override @@ -4275,7 +4275,7 @@ public boolean getUseAdvancedPdfParsing() { * bool use_advanced_pdf_parsing = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616 * @param value The useAdvancedPdfParsing to set. * @return This builder for chaining. */ @@ -4298,7 +4298,7 @@ public Builder setUseAdvancedPdfParsing(boolean value) { * bool use_advanced_pdf_parsing = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java index 8d6cac10b0a7..d216c265aa3a 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagFileParsingConfigOrBuilder.java @@ -154,7 +154,7 @@ public interface RagFileParsingConfigOrBuilder * bool use_advanced_pdf_parsing = 2 [deprecated = true]; * * @deprecated google.cloud.aiplatform.v1beta1.RagFileParsingConfig.use_advanced_pdf_parsing is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=595 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=616 * @return The useAdvancedPdfParsing. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfig.java index 25bf7bd5483b..261e9523d704 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfig.java @@ -72,7 +72,6 @@ public interface EnterpriseOrBuilder * * *
-   * Deprecated: Please use `Scaled` tier instead.
    * Enterprise tier offers production grade performance along with
    * autoscaling functionality. It is suitable for customers with large
    * amounts of data or performance sensitive workloads.
@@ -273,7 +272,6 @@ protected Builder newBuilderForType(
      *
      *
      * 
-     * Deprecated: Please use `Scaled` tier instead.
      * Enterprise tier offers production grade performance along with
      * autoscaling functionality. It is suitable for customers with large
      * amounts of data or performance sensitive workloads.
@@ -1897,9 +1895,7 @@ public TierCase getTierCase() {
    *
    *
    * 
-   * Deprecated: Please use `Scaled` tier instead.
-   * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-   * if not explicitly chosen.
+   * Sets the RagManagedDb to the Enterprise tier.
    * 
* * @@ -1907,7 +1903,7 @@ public TierCase getTierCase() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814 * @return Whether the enterprise field is set. */ @java.lang.Override @@ -1920,9 +1916,7 @@ public boolean hasEnterprise() { * * *
-   * Deprecated: Please use `Scaled` tier instead.
-   * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-   * if not explicitly chosen.
+   * Sets the RagManagedDb to the Enterprise tier.
    * 
* * @@ -1930,7 +1924,7 @@ public boolean hasEnterprise() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814 * @return The enterprise. */ @java.lang.Override @@ -1946,9 +1940,7 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Enterprise getEnte * * *
-   * Deprecated: Please use `Scaled` tier instead.
-   * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-   * if not explicitly chosen.
+   * Sets the RagManagedDb to the Enterprise tier.
    * 
* * @@ -1971,7 +1963,8 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Enterprise getEnte * * *
-   * Sets the RagManagedDb to the Scaled tier.
+   * Sets the RagManagedDb to the Scaled tier. This is the default tier
+   * if not explicitly chosen.
    * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -1987,7 +1980,8 @@ public boolean hasScaled() { * * *
-   * Sets the RagManagedDb to the Scaled tier.
+   * Sets the RagManagedDb to the Scaled tier. This is the default tier
+   * if not explicitly chosen.
    * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -2006,7 +2000,8 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled getScaled() * * *
-   * Sets the RagManagedDb to the Scaled tier.
+   * Sets the RagManagedDb to the Scaled tier. This is the default tier
+   * if not explicitly chosen.
    * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -2631,9 +2626,7 @@ public Builder clearTier() { * * *
-     * Deprecated: Please use `Scaled` tier instead.
-     * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-     * if not explicitly chosen.
+     * Sets the RagManagedDb to the Enterprise tier.
      * 
* * @@ -2641,7 +2634,7 @@ public Builder clearTier() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814 * @return Whether the enterprise field is set. */ @java.lang.Override @@ -2654,9 +2647,7 @@ public boolean hasEnterprise() { * * *
-     * Deprecated: Please use `Scaled` tier instead.
-     * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-     * if not explicitly chosen.
+     * Sets the RagManagedDb to the Enterprise tier.
      * 
* * @@ -2664,7 +2655,7 @@ public boolean hasEnterprise() { * * * @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814 * @return The enterprise. */ @java.lang.Override @@ -2689,9 +2680,7 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Enterprise getEnte * * *
-     * Deprecated: Please use `Scaled` tier instead.
-     * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-     * if not explicitly chosen.
+     * Sets the RagManagedDb to the Enterprise tier.
      * 
* * @@ -2718,9 +2707,7 @@ public Builder setEnterprise( * * *
-     * Deprecated: Please use `Scaled` tier instead.
-     * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-     * if not explicitly chosen.
+     * Sets the RagManagedDb to the Enterprise tier.
      * 
* * @@ -2744,9 +2731,7 @@ public Builder setEnterprise( * * *
-     * Deprecated: Please use `Scaled` tier instead.
-     * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-     * if not explicitly chosen.
+     * Sets the RagManagedDb to the Enterprise tier.
      * 
* * @@ -2785,9 +2770,7 @@ public Builder mergeEnterprise( * * *
-     * Deprecated: Please use `Scaled` tier instead.
-     * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-     * if not explicitly chosen.
+     * Sets the RagManagedDb to the Enterprise tier.
      * 
* * @@ -2816,9 +2799,7 @@ public Builder clearEnterprise() { * * *
-     * Deprecated: Please use `Scaled` tier instead.
-     * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-     * if not explicitly chosen.
+     * Sets the RagManagedDb to the Enterprise tier.
      * 
* * @@ -2835,9 +2816,7 @@ public Builder clearEnterprise() { * * *
-     * Deprecated: Please use `Scaled` tier instead.
-     * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-     * if not explicitly chosen.
+     * Sets the RagManagedDb to the Enterprise tier.
      * 
* * @@ -2863,9 +2842,7 @@ public Builder clearEnterprise() { * * *
-     * Deprecated: Please use `Scaled` tier instead.
-     * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-     * if not explicitly chosen.
+     * Sets the RagManagedDb to the Enterprise tier.
      * 
* * @@ -2908,7 +2885,8 @@ public Builder clearEnterprise() { * * *
-     * Sets the RagManagedDb to the Scaled tier.
+     * Sets the RagManagedDb to the Scaled tier. This is the default tier
+     * if not explicitly chosen.
      * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -2924,7 +2902,8 @@ public boolean hasScaled() { * * *
-     * Sets the RagManagedDb to the Scaled tier.
+     * Sets the RagManagedDb to the Scaled tier. This is the default tier
+     * if not explicitly chosen.
      * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -2950,7 +2929,8 @@ public com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled getScaled() * * *
-     * Sets the RagManagedDb to the Scaled tier.
+     * Sets the RagManagedDb to the Scaled tier. This is the default tier
+     * if not explicitly chosen.
      * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -2973,7 +2953,8 @@ public Builder setScaled(com.google.cloud.aiplatform.v1beta1.RagManagedDbConfig. * * *
-     * Sets the RagManagedDb to the Scaled tier.
+     * Sets the RagManagedDb to the Scaled tier. This is the default tier
+     * if not explicitly chosen.
      * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -2994,7 +2975,8 @@ public Builder setScaled( * * *
-     * Sets the RagManagedDb to the Scaled tier.
+     * Sets the RagManagedDb to the Scaled tier. This is the default tier
+     * if not explicitly chosen.
      * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -3030,7 +3012,8 @@ public Builder mergeScaled( * * *
-     * Sets the RagManagedDb to the Scaled tier.
+     * Sets the RagManagedDb to the Scaled tier. This is the default tier
+     * if not explicitly chosen.
      * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -3056,7 +3039,8 @@ public Builder clearScaled() { * * *
-     * Sets the RagManagedDb to the Scaled tier.
+     * Sets the RagManagedDb to the Scaled tier. This is the default tier
+     * if not explicitly chosen.
      * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -3070,7 +3054,8 @@ public Builder clearScaled() { * * *
-     * Sets the RagManagedDb to the Scaled tier.
+     * Sets the RagManagedDb to the Scaled tier. This is the default tier
+     * if not explicitly chosen.
      * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -3092,7 +3077,8 @@ public Builder clearScaled() { * * *
-     * Sets the RagManagedDb to the Scaled tier.
+     * Sets the RagManagedDb to the Scaled tier. This is the default tier
+     * if not explicitly chosen.
      * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfigOrBuilder.java index d463d0277058..87c4301ea3c5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagManagedDbConfigOrBuilder.java @@ -28,9 +28,7 @@ public interface RagManagedDbConfigOrBuilder * * *
-   * Deprecated: Please use `Scaled` tier instead.
-   * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-   * if not explicitly chosen.
+   * Sets the RagManagedDb to the Enterprise tier.
    * 
* * @@ -38,7 +36,7 @@ public interface RagManagedDbConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814 * @return Whether the enterprise field is set. */ @java.lang.Deprecated @@ -48,9 +46,7 @@ public interface RagManagedDbConfigOrBuilder * * *
-   * Deprecated: Please use `Scaled` tier instead.
-   * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-   * if not explicitly chosen.
+   * Sets the RagManagedDb to the Enterprise tier.
    * 
* * @@ -58,7 +54,7 @@ public interface RagManagedDbConfigOrBuilder * * * @deprecated google.cloud.aiplatform.v1beta1.RagManagedDbConfig.enterprise is deprecated. See - * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=796 + * google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=814 * @return The enterprise. */ @java.lang.Deprecated @@ -68,9 +64,7 @@ public interface RagManagedDbConfigOrBuilder * * *
-   * Deprecated: Please use `Scaled` tier instead.
-   * Sets the RagManagedDb to the Enterprise tier. This is the default tier
-   * if not explicitly chosen.
+   * Sets the RagManagedDb to the Enterprise tier.
    * 
* * @@ -85,7 +79,8 @@ public interface RagManagedDbConfigOrBuilder * * *
-   * Sets the RagManagedDb to the Scaled tier.
+   * Sets the RagManagedDb to the Scaled tier. This is the default tier
+   * if not explicitly chosen.
    * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -98,7 +93,8 @@ public interface RagManagedDbConfigOrBuilder * * *
-   * Sets the RagManagedDb to the Scaled tier.
+   * Sets the RagManagedDb to the Scaled tier. This is the default tier
+   * if not explicitly chosen.
    * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; @@ -111,7 +107,8 @@ public interface RagManagedDbConfigOrBuilder * * *
-   * Sets the RagManagedDb to the Scaled tier.
+   * Sets the RagManagedDb to the Scaled tier. This is the default tier
+   * if not explicitly chosen.
    * 
* * .google.cloud.aiplatform.v1beta1.RagManagedDbConfig.Scaled scaled = 4; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java index 85d00c6959fb..b2c94cf201ea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfig.java @@ -5768,6 +5768,725 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface RagManagedVertexVectorSearchOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The resource name of the Vector Search 2.0 Collection that
+     * RAG Created for the corpus. Only populated after the corpus is
+     * successfully created. Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`
+     * 
+ * + * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The collectionName. + */ + java.lang.String getCollectionName(); + + /** + * + * + *
+     * Output only. The resource name of the Vector Search 2.0 Collection that
+     * RAG Created for the corpus. Only populated after the corpus is
+     * successfully created. Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`
+     * 
+ * + * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for collectionName. + */ + com.google.protobuf.ByteString getCollectionNameBytes(); + } + + /** + * + * + *
+   * The config for the RAG-managed Vertex Vector Search 2.0.
+   * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch} + */ + public static final class RagManagedVertexVectorSearch + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + RagManagedVertexVectorSearchOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RagManagedVertexVectorSearch.newBuilder() to construct. + private RagManagedVertexVectorSearch( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RagManagedVertexVectorSearch() { + collectionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RagManagedVertexVectorSearch(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .class, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .Builder.class); + } + + public static final int COLLECTION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object collectionName_ = ""; + + /** + * + * + *
+     * Output only. The resource name of the Vector Search 2.0 Collection that
+     * RAG Created for the corpus. Only populated after the corpus is
+     * successfully created. Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`
+     * 
+ * + * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The collectionName. + */ + @java.lang.Override + public java.lang.String getCollectionName() { + java.lang.Object ref = collectionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectionName_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The resource name of the Vector Search 2.0 Collection that
+     * RAG Created for the corpus. Only populated after the corpus is
+     * successfully created. Format:
+     * `projects/{project}/locations/{location}/collections/{collection_id}`
+     * 
+ * + * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for collectionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCollectionNameBytes() { + java.lang.Object ref = collectionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collectionName_ = 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(collectionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, collectionName_); + } + 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(collectionName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, collectionName_); + } + 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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch other = + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) obj; + + if (!getCollectionName().equals(other.getCollectionName())) 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) + COLLECTION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCollectionName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + 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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + 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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + 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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + 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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearchOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .class, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + collectionName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.VertexRagDataProto + .internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + build() { + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + buildPartial() { + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch result = + new com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.collectionName_ = collectionName_; + } + } + + @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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .getDefaultInstance()) return this; + if (!other.getCollectionName().isEmpty()) { + collectionName_ = other.collectionName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + collectionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object collectionName_ = ""; + + /** + * + * + *
+       * Output only. The resource name of the Vector Search 2.0 Collection that
+       * RAG Created for the corpus. Only populated after the corpus is
+       * successfully created. Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`
+       * 
+ * + * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The collectionName. + */ + public java.lang.String getCollectionName() { + java.lang.Object ref = collectionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + collectionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The resource name of the Vector Search 2.0 Collection that
+       * RAG Created for the corpus. Only populated after the corpus is
+       * successfully created. Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`
+       * 
+ * + * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for collectionName. + */ + public com.google.protobuf.ByteString getCollectionNameBytes() { + java.lang.Object ref = collectionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + collectionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The resource name of the Vector Search 2.0 Collection that
+       * RAG Created for the corpus. Only populated after the corpus is
+       * successfully created. Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`
+       * 
+ * + * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The collectionName to set. + * @return This builder for chaining. + */ + public Builder setCollectionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + collectionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The resource name of the Vector Search 2.0 Collection that
+       * RAG Created for the corpus. Only populated after the corpus is
+       * successfully created. Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`
+       * 
+ * + * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCollectionName() { + collectionName_ = getDefaultInstance().getCollectionName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The resource name of the Vector Search 2.0 Collection that
+       * RAG Created for the corpus. Only populated after the corpus is
+       * successfully created. Format:
+       * `projects/{project}/locations/{location}/collections/{collection_id}`
+       * 
+ * + * string collection_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for collectionName to set. + * @return This builder for chaining. + */ + public Builder setCollectionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collectionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + private static final com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearch + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch(); + } + + public static com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RagManagedVertexVectorSearch 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.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; private int vectorDbCase_ = 0; @@ -5783,6 +6502,7 @@ public enum VectorDbCase PINECONE(3), VERTEX_FEATURE_STORE(4), VERTEX_VECTOR_SEARCH(6), + RAG_MANAGED_VERTEX_VECTOR_SEARCH(8), VECTORDB_NOT_SET(0); private final int value; @@ -5812,6 +6532,8 @@ public static VectorDbCase forNumber(int value) { return VERTEX_FEATURE_STORE; case 6: return VERTEX_VECTOR_SEARCH; + case 8: + return RAG_MANAGED_VERTEX_VECTOR_SEARCH; case 0: return VECTORDB_NOT_SET; default: @@ -6124,6 +6846,72 @@ public boolean hasVertexVectorSearch() { .getDefaultInstance(); } + public static final int RAG_MANAGED_VERTEX_VECTOR_SEARCH_FIELD_NUMBER = 8; + + /** + * + * + *
+   * The config for the RAG-managed Vertex Vector Search 2.0.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + * + * @return Whether the ragManagedVertexVectorSearch field is set. + */ + @java.lang.Override + public boolean hasRagManagedVertexVectorSearch() { + return vectorDbCase_ == 8; + } + + /** + * + * + *
+   * The config for the RAG-managed Vertex Vector Search 2.0.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + * + * @return The ragManagedVertexVectorSearch. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + getRagManagedVertexVectorSearch() { + if (vectorDbCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + vectorDb_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .getDefaultInstance(); + } + + /** + * + * + *
+   * The config for the RAG-managed Vertex Vector Search 2.0.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearchOrBuilder + getRagManagedVertexVectorSearchOrBuilder() { + if (vectorDbCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + vectorDb_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .getDefaultInstance(); + } + public static final int API_AUTH_FIELD_NUMBER = 5; private com.google.cloud.aiplatform.v1beta1.ApiAuth apiAuth_; @@ -6277,6 +7065,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getRagEmbeddingModelConfig()); } + if (vectorDbCase_ == 8) { + output.writeMessage( + 8, + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + vectorDb_); + } getUnknownFields().writeTo(output); } @@ -6320,6 +7114,13 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRagEmbeddingModelConfig()); } + if (vectorDbCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + vectorDb_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6361,6 +7162,10 @@ public boolean equals(final java.lang.Object obj) { case 6: if (!getVertexVectorSearch().equals(other.getVertexVectorSearch())) return false; break; + case 8: + if (!getRagManagedVertexVectorSearch().equals(other.getRagManagedVertexVectorSearch())) + return false; + break; case 0: default: } @@ -6404,6 +7209,10 @@ public int hashCode() { hash = (37 * hash) + VERTEX_VECTOR_SEARCH_FIELD_NUMBER; hash = (53 * hash) + getVertexVectorSearch().hashCode(); break; + case 8: + hash = (37 * hash) + RAG_MANAGED_VERTEX_VECTOR_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + getRagManagedVertexVectorSearch().hashCode(); + break; case 0: default: } @@ -6573,6 +7382,9 @@ public Builder clear() { if (vertexVectorSearchBuilder_ != null) { vertexVectorSearchBuilder_.clear(); } + if (ragManagedVertexVectorSearchBuilder_ != null) { + ragManagedVertexVectorSearchBuilder_.clear(); + } apiAuth_ = null; if (apiAuthBuilder_ != null) { apiAuthBuilder_.dispose(); @@ -6623,11 +7435,11 @@ public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.apiAuth_ = apiAuthBuilder_ == null ? apiAuth_ : apiAuthBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.ragEmbeddingModelConfig_ = ragEmbeddingModelConfigBuilder_ == null ? ragEmbeddingModelConfig_ @@ -6655,6 +7467,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.RagVectorDbC if (vectorDbCase_ == 6 && vertexVectorSearchBuilder_ != null) { result.vectorDb_ = vertexVectorSearchBuilder_.build(); } + if (vectorDbCase_ == 8 && ragManagedVertexVectorSearchBuilder_ != null) { + result.vectorDb_ = ragManagedVertexVectorSearchBuilder_.build(); + } } @java.lang.Override @@ -6735,6 +7550,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig o mergeVertexVectorSearch(other.getVertexVectorSearch()); break; } + case RAG_MANAGED_VERTEX_VECTOR_SEARCH: + { + mergeRagManagedVertexVectorSearch(other.getRagManagedVertexVectorSearch()); + break; + } case VECTORDB_NOT_SET: { break; @@ -6794,7 +7614,7 @@ public Builder mergeFrom( case 42: { input.readMessage(getApiAuthFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 42 case 50: @@ -6808,9 +7628,16 @@ public Builder mergeFrom( { input.readMessage( getRagEmbeddingModelConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 + case 66: + { + input.readMessage( + getRagManagedVertexVectorSearchFieldBuilder().getBuilder(), extensionRegistry); + vectorDbCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -8040,6 +8867,271 @@ public Builder clearVertexVectorSearch() { return vertexVectorSearchBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearchOrBuilder> + ragManagedVertexVectorSearchBuilder_; + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + * + * @return Whether the ragManagedVertexVectorSearch field is set. + */ + @java.lang.Override + public boolean hasRagManagedVertexVectorSearch() { + return vectorDbCase_ == 8; + } + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + * + * @return The ragManagedVertexVectorSearch. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + getRagManagedVertexVectorSearch() { + if (ragManagedVertexVectorSearchBuilder_ == null) { + if (vectorDbCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearch) + vectorDb_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .getDefaultInstance(); + } else { + if (vectorDbCase_ == 8) { + return ragManagedVertexVectorSearchBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + */ + public Builder setRagManagedVertexVectorSearch( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch value) { + if (ragManagedVertexVectorSearchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vectorDb_ = value; + onChanged(); + } else { + ragManagedVertexVectorSearchBuilder_.setMessage(value); + } + vectorDbCase_ = 8; + return this; + } + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + */ + public Builder setRagManagedVertexVectorSearch( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch.Builder + builderForValue) { + if (ragManagedVertexVectorSearchBuilder_ == null) { + vectorDb_ = builderForValue.build(); + onChanged(); + } else { + ragManagedVertexVectorSearchBuilder_.setMessage(builderForValue.build()); + } + vectorDbCase_ = 8; + return this; + } + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + */ + public Builder mergeRagManagedVertexVectorSearch( + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch value) { + if (ragManagedVertexVectorSearchBuilder_ == null) { + if (vectorDbCase_ == 8 + && vectorDb_ + != com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearch.getDefaultInstance()) { + vectorDb_ = + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearch) + vectorDb_) + .mergeFrom(value) + .buildPartial(); + } else { + vectorDb_ = value; + } + onChanged(); + } else { + if (vectorDbCase_ == 8) { + ragManagedVertexVectorSearchBuilder_.mergeFrom(value); + } else { + ragManagedVertexVectorSearchBuilder_.setMessage(value); + } + } + vectorDbCase_ = 8; + return this; + } + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + */ + public Builder clearRagManagedVertexVectorSearch() { + if (ragManagedVertexVectorSearchBuilder_ == null) { + if (vectorDbCase_ == 8) { + vectorDbCase_ = 0; + vectorDb_ = null; + onChanged(); + } + } else { + if (vectorDbCase_ == 8) { + vectorDbCase_ = 0; + vectorDb_ = null; + } + ragManagedVertexVectorSearchBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + */ + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .Builder + getRagManagedVertexVectorSearchBuilder() { + return getRagManagedVertexVectorSearchFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearchOrBuilder + getRagManagedVertexVectorSearchOrBuilder() { + if ((vectorDbCase_ == 8) && (ragManagedVertexVectorSearchBuilder_ != null)) { + return ragManagedVertexVectorSearchBuilder_.getMessageOrBuilder(); + } else { + if (vectorDbCase_ == 8) { + return (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearch) + vectorDb_; + } + return com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * The config for the RAG-managed Vertex Vector Search 2.0.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearchOrBuilder> + getRagManagedVertexVectorSearchFieldBuilder() { + if (ragManagedVertexVectorSearchBuilder_ == null) { + if (!(vectorDbCase_ == 8)) { + vectorDb_ = + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .getDefaultInstance(); + } + ragManagedVertexVectorSearchBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + .Builder, + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig + .RagManagedVertexVectorSearchOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch) + vectorDb_, + getParentForChildren(), + isClean()); + vectorDb_ = null; + } + vectorDbCase_ = 8; + onChanged(); + return ragManagedVertexVectorSearchBuilder_; + } + private com.google.cloud.aiplatform.v1beta1.ApiAuth apiAuth_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.ApiAuth, @@ -8059,7 +9151,7 @@ public Builder clearVertexVectorSearch() { * @return Whether the apiAuth field is set. */ public boolean hasApiAuth() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -8101,7 +9193,7 @@ public Builder setApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth value) { } else { apiAuthBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -8121,7 +9213,7 @@ public Builder setApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth.Builder bu } else { apiAuthBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -8137,7 +9229,7 @@ public Builder setApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth.Builder bu */ public Builder mergeApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth value) { if (apiAuthBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && apiAuth_ != null && apiAuth_ != com.google.cloud.aiplatform.v1beta1.ApiAuth.getDefaultInstance()) { getApiAuthBuilder().mergeFrom(value); @@ -8148,7 +9240,7 @@ public Builder mergeApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth value) { apiAuthBuilder_.mergeFrom(value); } if (apiAuth_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -8164,7 +9256,7 @@ public Builder mergeApiAuth(com.google.cloud.aiplatform.v1beta1.ApiAuth value) { * .google.cloud.aiplatform.v1beta1.ApiAuth api_auth = 5; */ public Builder clearApiAuth() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); apiAuth_ = null; if (apiAuthBuilder_ != null) { apiAuthBuilder_.dispose(); @@ -8184,7 +9276,7 @@ public Builder clearApiAuth() { * .google.cloud.aiplatform.v1beta1.ApiAuth api_auth = 5; */ public com.google.cloud.aiplatform.v1beta1.ApiAuth.Builder getApiAuthBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return getApiAuthFieldBuilder().getBuilder(); } @@ -8255,7 +9347,7 @@ public com.google.cloud.aiplatform.v1beta1.ApiAuthOrBuilder getApiAuthOrBuilder( * @return Whether the ragEmbeddingModelConfig field is set. */ public boolean hasRagEmbeddingModelConfig() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -8303,7 +9395,7 @@ public Builder setRagEmbeddingModelConfig( } else { ragEmbeddingModelConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -8326,7 +9418,7 @@ public Builder setRagEmbeddingModelConfig( } else { ragEmbeddingModelConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -8345,7 +9437,7 @@ public Builder setRagEmbeddingModelConfig( public Builder mergeRagEmbeddingModelConfig( com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig value) { if (ragEmbeddingModelConfigBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && ragEmbeddingModelConfig_ != null && ragEmbeddingModelConfig_ != com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig @@ -8358,7 +9450,7 @@ public Builder mergeRagEmbeddingModelConfig( ragEmbeddingModelConfigBuilder_.mergeFrom(value); } if (ragEmbeddingModelConfig_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -8376,7 +9468,7 @@ public Builder mergeRagEmbeddingModelConfig( *
*/ public Builder clearRagEmbeddingModelConfig() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); ragEmbeddingModelConfig_ = null; if (ragEmbeddingModelConfigBuilder_ != null) { ragEmbeddingModelConfigBuilder_.dispose(); @@ -8399,7 +9491,7 @@ public Builder clearRagEmbeddingModelConfig() { */ public com.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.Builder getRagEmbeddingModelConfigBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getRagEmbeddingModelConfigFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java index 9130da36ede4..24b7047da9c1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RagVectorDbConfigOrBuilder.java @@ -227,6 +227,51 @@ public interface RagVectorDbConfigOrBuilder com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexVectorSearchOrBuilder getVertexVectorSearchOrBuilder(); + /** + * + * + *
+   * The config for the RAG-managed Vertex Vector Search 2.0.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + * + * @return Whether the ragManagedVertexVectorSearch field is set. + */ + boolean hasRagManagedVertexVectorSearch(); + + /** + * + * + *
+   * The config for the RAG-managed Vertex Vector Search 2.0.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + * + * @return The ragManagedVertexVectorSearch. + */ + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch + getRagManagedVertexVectorSearch(); + + /** + * + * + *
+   * The config for the RAG-managed Vertex Vector Search 2.0.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; + * + */ + com.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedVertexVectorSearchOrBuilder + getRagManagedVertexVectorSearchOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java index c5b2b494505b..3473fde870f1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -105,7 +113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v_var.proto\0328google/cloud/aiplatform/v1b" + "eta1/service_networking.proto\032\036google/pr" + "otobuf/duration.proto\032\034google/protobuf/s" - + "truct.proto\032\037google/protobuf/timestamp.proto\"\352\014\n" + + "truct.proto\032\037google/protobuf/timestamp.proto\"\222\020\n" + "\023ReasoningEngineSpec\022_\n" + "\020source_code_spec\030\013 \001(\0132C.google.cloud.aiplatform" + ".v1beta1.ReasoningEngineSpec.SourceCodeSpecH\000\022!\n" @@ -138,14 +146,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001B\020\n" + "\016_min_instancesB\020\n" + "\016_max_instancesB\030\n" - + "\026_container_concurrency\032\262\003\n" + + "\026_container_concurrency\032\332\006\n" + "\016SourceCodeSpec\022i\n\r" + "inline_source\030\001 \001(\0132P.google.cloud.aiplatform." - + "v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\000\022e\n" - + "\013python_spec\030\002 \001(\0132N.google.cloud.aiplatform.v1beta1.Reasoni" - + "ngEngineSpec.SourceCodeSpec.PythonSpecH\001\032.\n" + + "v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceH\000\022~\n" + + "\030developer_connect_source\030\003 \001(\0132Z.google.cloud.aiplatform.v1" + + "beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSourceH\000\022e\n" + + "\013python_spec\030\002 \001(\0132N.google.cloud.aiplatform.v1beta1" + + ".ReasoningEngineSpec.SourceCodeSpec.PythonSpecH\001\032.\n" + "\014InlineSource\022\036\n" - + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\202\001\n\n" + + "\016source_archive\030\001 \001(\014B\006\340A\002\340A\004\032\231\001\n" + + "\026DeveloperConnectConfig\022V\n" + + "\023git_repository_link\030\001 \001(\tB9\340A\002\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022\020\n" + + "\003dir\030\002 \001(\tB\003\340A\002\022\025\n" + + "\010revision\030\003 \001(\tB\003\340A\002\032\211\001\n" + + "\026DeveloperConnectSource\022o\n" + + "\006config\030\001 \001(\0132Z.google.cloud.aiplatfor" + + "m.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfigB\003\340A\002\032\202\001\n\n" + "PythonSpec\022\024\n" + "\007version\030\001 \001(\tB\003\340A\001\022\036\n" + "\021entrypoint_module\030\002 \001(\tB\003\340A\001\022\036\n" @@ -159,42 +177,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\007 \001(\tB\003\340A\001\022G\n" - + "\004spec\030\003 \001(\01324.go" - + "ogle.cloud.aiplatform.v1beta1.ReasoningEngineSpecB\003\340A\001\0224\n" + + "\004spec\030\003 \001(\01324.google.cloud.aipla" + + "tform.v1beta1.ReasoningEngineSpecB\003\340A\001\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + "\004etag\030\006 \001(\tB\003\340A\001\022V\n" - + "\014context_spec\030\t " - + "\001(\0132;.google.cloud.aiplatform.v1beta1.ReasoningEngineContextSpecB\003\340A\001\022H\n" - + "\017encryption_spec\030\013" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.EncryptionSpec\022L\n" - + "\006labels\030\021 \003(\0132" - + "<.google.cloud.aiplatform.v1beta1.ReasoningEngine.LabelsEntry\032-\n" + + "\014context_spec\030\t \001(\0132;.google.clo" + + "ud.aiplatform.v1beta1.ReasoningEngineContextSpecB\003\340A\001\022H\n" + + "\017encryption_spec\030\013 \001(\0132/" + + ".google.cloud.aiplatform.v1beta1.EncryptionSpec\022L\n" + + "\006labels\030\021 \003(\0132<.google.cloud.a" + + "iplatform.v1beta1.ReasoningEngine.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n" - + ")aiplatform.googleapis.com/ReasoningEngine\022K" - + "projects/{project}/locations/{location}/" - + "reasoningEngines/{reasoning_engine}*\020reasoningEngines2\017reasoningEngine\"\354\010\n" + + ")aiplatform.googleapis.com/ReasoningEngine\022Kprojects/{projec" + + "t}/locations/{location}/reasoningEngines" + + "/{reasoning_engine}*\020reasoningEngines2\017reasoningEngine\"\354\010\n" + "\032ReasoningEngineContextSpec\022m\n" - + "\022memory_bank_config\030\001 \001(\0132L.google.cloud.aiplatform.v1be" - + "ta1.ReasoningEngineContextSpec.MemoryBankConfigB\003\340A\001\032\336\007\n" + + "\022memory_bank_config\030\001 \001(\0132L.goog" + + "le.cloud.aiplatform.v1beta1.ReasoningEngineContextSpec.MemoryBankConfigB\003\340A\001\032\336\007\n" + "\020MemoryBankConfig\022}\n" - + "\021generation_config\030\001 \001(\0132].google.cloud.aipl" - + "atform.v1beta1.ReasoningEngineContextSpe" - + "c.MemoryBankConfig.GenerationConfigB\003\340A\001\022\212\001\n" - + "\030similarity_search_config\030\002 \001(\0132c.go" - + "ogle.cloud.aiplatform.v1beta1.ReasoningE" - + "ngineContextSpec.MemoryBankConfig.SimilaritySearchConfigB\003\340A\001\022o\n\n" - + "ttl_config\030\005 \001(\0132V.google.cloud.aiplatform.v1beta1.Reas" - + "oningEngineContextSpec.MemoryBankConfig.TtlConfigB\003\340A\001\032\236\003\n" + + "\021generation_config\030\001 \001(\0132].google.cloud.aiplatform.v1beta1.R" + + "easoningEngineContextSpec.MemoryBankConfig.GenerationConfigB\003\340A\001\022\212\001\n" + + "\030similarity_search_config\030\002 \001(\0132c.google.cloud.aipla" + + "tform.v1beta1.ReasoningEngineContextSpec" + + ".MemoryBankConfig.SimilaritySearchConfigB\003\340A\001\022o\n\n" + + "ttl_config\030\005 \001(\0132V.google.cloud.aiplatform.v1beta1.ReasoningEngineConte" + + "xtSpec.MemoryBankConfig.TtlConfigB\003\340A\001\032\236\003\n" + "\tTtlConfig\0225\n" + "\013default_ttl\030\001" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001H\000\022\214\001\n" - + "\023granular_ttl_config\030\002 \001(\0132h.goog" - + "le.cloud.aiplatform.v1beta1.ReasoningEng" - + "ineContextSpec.MemoryBankConfig.TtlConfig.GranularTtlConfigB\003\340A\001H\000\032\303\001\n" + + "\023granular_ttl_config\030\002 \001(\0132h.google.cloud.aiplatf" + + "orm.v1beta1.ReasoningEngineContextSpec.M" + + "emoryBankConfig.TtlConfig.GranularTtlConfigB\003\340A\001H\000\032\303\001\n" + "\021GranularTtlConfig\0222\n\n" + "create_ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022<\n" + "\024generate_created_ttl\030\002" @@ -207,12 +224,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"aiplatform.googleapis.com/Endpoint\032]\n" + "\026SimilaritySearchConfig\022C\n" + "\017embedding_model\030\001 \001(\tB*\340A\002\372A$\n" - + "\"aiplatform.googleapis.com/EndpointB\353\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\024ReasoningEngineProtoP\001ZCcloud.goo" - + "gle.com/go/aiplatform/apiv1beta1/aiplatf" - + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" - + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" - + "1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "\"aiplatform.googleapis.com/EndpointB\215\003\n" + + "#com.google.cloud.aiplatform.v1beta1B\024Reasoning" + + "EngineProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatform" + + "pb\252\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037G" + + "oogle\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLi" + + "nk\022iprojects/{project}/locations/{location}/connections/{connection}/gitReposito" + + "ryLinks/{git_repository_link}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -285,7 +304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor, new java.lang.String[] { - "InlineSource", "PythonSpec", "Source", "LanguageSpec", + "InlineSource", "DeveloperConnectSource", "PythonSpec", "Source", "LanguageSpec", }); internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_InlineSource_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor @@ -297,10 +316,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SourceArchive", }); - internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor = internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor .getNestedTypes() .get(1); + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor, + new java.lang.String[] { + "GitRepositoryLink", "Dir", "Revision", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor, + new java.lang.String[] { + "Config", + }); + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_descriptor + .getNestedTypes() + .get(3); internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor, @@ -396,6 +435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java index a2f167fc7761..9ebfa8eedbd7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineSpec.java @@ -153,8 +153,9 @@ public interface PackageSpecOrBuilder * * *
-     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-     * If not specified, default value is 3.10.
+     * Optional. The Python version. Supported values
+     * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+     * is 3.10.
      * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -167,8 +168,9 @@ public interface PackageSpecOrBuilder * * *
-     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-     * If not specified, default value is 3.10.
+     * Optional. The Python version. Supported values
+     * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+     * is 3.10.
      * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -395,8 +397,9 @@ public com.google.protobuf.ByteString getRequirementsGcsUriBytes() { * * *
-     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-     * If not specified, default value is 3.10.
+     * Optional. The Python version. Supported values
+     * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+     * is 3.10.
      * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -420,8 +423,9 @@ public java.lang.String getPythonVersion() { * * *
-     * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-     * If not specified, default value is 3.10.
+     * Optional. The Python version. Supported values
+     * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+     * is 3.10.
      * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1209,8 +1213,9 @@ public Builder setRequirementsGcsUriBytes(com.google.protobuf.ByteString value) * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1233,8 +1238,9 @@ public java.lang.String getPythonVersion() { * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1257,8 +1263,9 @@ public com.google.protobuf.ByteString getPythonVersionBytes() { * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1280,8 +1287,9 @@ public Builder setPythonVersion(java.lang.String value) { * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1299,8 +1307,9 @@ public Builder clearPythonVersion() { * * *
-       * Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11.
-       * If not specified, default value is 3.10.
+       * Optional. The Python version. Supported values
+       * are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value
+       * is 3.10.
        * 
* * string python_version = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -4803,6 +4812,52 @@ public interface SourceCodeSpecOrBuilder com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.InlineSourceOrBuilder getInlineSourceOrBuilder(); + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return Whether the developerConnectSource field is set. + */ + boolean hasDeveloperConnectSource(); + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return The developerConnectSource. + */ + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource + getDeveloperConnectSource(); + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder + getDeveloperConnectSourceOrBuilder(); + /** * * @@ -5526,274 +5581,180 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface PythonSpecOrBuilder + public interface DeveloperConnectConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) com.google.protobuf.MessageOrBuilder { /** * * *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - java.lang.String getVersion(); - - /** - * - * - *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The Developer Connect Git repository link, formatted as
+       * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The entrypointModule. + * @return The gitRepositoryLink. */ - java.lang.String getEntrypointModule(); + java.lang.String getGitRepositoryLink(); /** * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The Developer Connect Git repository link, formatted as
+       * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for entrypointModule. + * @return The bytes for gitRepositoryLink. */ - com.google.protobuf.ByteString getEntrypointModuleBytes(); + com.google.protobuf.ByteString getGitRepositoryLinkBytes(); /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entrypointObject. + * @return The dir. */ - java.lang.String getEntrypointObject(); + java.lang.String getDir(); /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entrypointObject. + * @return The bytes for dir. */ - com.google.protobuf.ByteString getEntrypointObjectBytes(); + com.google.protobuf.ByteString getDirBytes(); /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository such as a
+       * branch, a tag, a commit SHA, or any Git ref.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The requirementsFile. + * @return The revision. */ - java.lang.String getRequirementsFile(); + java.lang.String getRevision(); /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository such as a
+       * branch, a tag, a commit SHA, or any Git ref.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for requirementsFile. + * @return The bytes for revision. */ - com.google.protobuf.ByteString getRequirementsFileBytes(); + com.google.protobuf.ByteString getRevisionBytes(); } /** * * *
-     * Specification for running a Python application from source.
+     * Specifies the configuration for fetching source code from a Git
+     * repository that is managed by Developer Connect. This includes the
+     * repository, revision, and directory to use.
      * 
* * Protobuf type {@code - * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec} + * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} */ - public static final class PythonSpec extends com.google.protobuf.GeneratedMessageV3 + public static final class DeveloperConnectConfig extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) - PythonSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + DeveloperConnectConfigOrBuilder { private static final long serialVersionUID = 0L; - // Use PythonSpec.newBuilder() to construct. - private PythonSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use DeveloperConnectConfig.newBuilder() to construct. + private DeveloperConnectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PythonSpec() { - version_ = ""; - entrypointModule_ = ""; - entrypointObject_ = ""; - requirementsFile_ = ""; + private DeveloperConnectConfig() { + gitRepositoryLink_ = ""; + dir_ = ""; + revision_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PythonSpec(); + return new DeveloperConnectConfig(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto - .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto - .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec - .class, - com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec - .Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; - - /** - * - * - *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
-       * Optional. The version of Python to use. Support version
-       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
-       * If not specified, default value is 3.10.
-       * 
- * - * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.class, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder.class); } - public static final int ENTRYPOINT_MODULE_FIELD_NUMBER = 2; + public static final int GIT_REPOSITORY_LINK_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object entrypointModule_ = ""; + private volatile java.lang.Object gitRepositoryLink_ = ""; /** * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The Developer Connect Git repository link, formatted as
+       * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The entrypointModule. + * @return The gitRepositoryLink. */ @java.lang.Override - public java.lang.String getEntrypointModule() { - java.lang.Object ref = entrypointModule_; + public java.lang.String getGitRepositoryLink() { + java.lang.Object ref = gitRepositoryLink_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - entrypointModule_ = s; + gitRepositoryLink_ = s; return s; } } @@ -5802,58 +5763,55 @@ public java.lang.String getEntrypointModule() { * * *
-       * Optional. The Python module to load as the entrypoint, specified as a
-       * fully qualified module name. For example: path.to.agent.
-       * If not specified, defaults to "agent".
-       *
-       * The project root will be added to Python sys.path, allowing imports
-       * to be specified relative to the root.
+       * Required. The Developer Connect Git repository link, formatted as
+       * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
        * 
* - * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for entrypointModule. + * @return The bytes for gitRepositoryLink. */ @java.lang.Override - public com.google.protobuf.ByteString getEntrypointModuleBytes() { - java.lang.Object ref = entrypointModule_; + public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { + java.lang.Object ref = gitRepositoryLink_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entrypointModule_ = b; + gitRepositoryLink_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3; + public static final int DIR_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object entrypointObject_ = ""; + private volatile java.lang.Object dir_ = ""; /** * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The entrypointObject. + * @return The dir. */ @java.lang.Override - public java.lang.String getEntrypointObject() { - java.lang.Object ref = entrypointObject_; + public java.lang.String getDir() { + java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - entrypointObject_ = s; + dir_ = s; return s; } } @@ -5862,54 +5820,53 @@ public java.lang.String getEntrypointObject() { * * *
-       * Optional. The name of the callable object within the
-       * `entrypoint_module` to use as the application If not specified,
-       * defaults to "root_agent".
+       * Required. Directory, relative to the source root, in which to run the
+       * build.
        * 
* - * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for entrypointObject. + * @return The bytes for dir. */ @java.lang.Override - public com.google.protobuf.ByteString getEntrypointObjectBytes() { - java.lang.Object ref = entrypointObject_; + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entrypointObject_ = b; + dir_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4; + public static final int REVISION_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object requirementsFile_ = ""; + private volatile java.lang.Object revision_ = ""; /** * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository such as a
+       * branch, a tag, a commit SHA, or any Git ref.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The requirementsFile. + * @return The revision. */ @java.lang.Override - public java.lang.String getRequirementsFile() { - java.lang.Object ref = requirementsFile_; + public java.lang.String getRevision() { + java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - requirementsFile_ = s; + revision_ = s; return s; } } @@ -5918,21 +5875,21 @@ public java.lang.String getRequirementsFile() { * * *
-       * Optional. The path to the requirements file, relative to the source
-       * root. If not specified, defaults to "requirements.txt".
+       * Required. The revision to fetch from the Git repository such as a
+       * branch, a tag, a commit SHA, or any Git ref.
        * 
* - * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for requirementsFile. + * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString getRequirementsFileBytes() { - java.lang.Object ref = requirementsFile_; + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - requirementsFile_ = b; + revision_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -5953,13 +5910,2251 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(gitRepositoryLink_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gitRepositoryLink_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointModule_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entrypointModule_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dir_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointObject_)) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, revision_); + } + 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(gitRepositoryLink_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gitRepositoryLink_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dir_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, revision_); + } + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + other = + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig) + obj; + + if (!getGitRepositoryLink().equals(other.getGitRepositoryLink())) return false; + if (!getDir().equals(other.getDir())) return false; + if (!getRevision().equals(other.getRevision())) 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) + GIT_REPOSITORY_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGitRepositoryLink().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + getRevision().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + 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; + } + + /** + * + * + *
+       * Specifies the configuration for fetching source code from a Git
+       * repository that is managed by Developer Connect. This includes the
+       * repository, revision, and directory to use.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.class, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + gitRepositoryLink_ = ""; + dir_ = ""; + revision_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + build() { + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + result = + new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gitRepositoryLink_ = gitRepositoryLink_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dir_ = dir_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.revision_ = revision_; + } + } + + @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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance()) return this; + if (!other.getGitRepositoryLink().isEmpty()) { + gitRepositoryLink_ = other.gitRepositoryLink_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRevision().isEmpty()) { + revision_ = other.revision_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + gitRepositoryLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + revision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object gitRepositoryLink_ = ""; + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The gitRepositoryLink. + */ + public java.lang.String getGitRepositoryLink() { + java.lang.Object ref = gitRepositoryLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRepositoryLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gitRepositoryLink. + */ + public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { + java.lang.Object ref = gitRepositoryLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitRepositoryLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The gitRepositoryLink to set. + * @return This builder for chaining. + */ + public Builder setGitRepositoryLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gitRepositoryLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearGitRepositoryLink() { + gitRepositoryLink_ = getDefaultInstance().getGitRepositoryLink(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect Git repository link, formatted as
+         * `projects/*/locations/*/connections/*/gitRepositoryLink/*`.
+         * 
+ * + * + * string git_repository_link = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for gitRepositoryLink to set. + * @return This builder for chaining. + */ + public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitRepositoryLink_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. Directory, relative to the source root, in which to run the
+         * build.
+         * 
+ * + * string dir = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object revision_ = ""; + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revision. + */ + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revision. + */ + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRevision() { + revision_ = getDefaultInstance().getRevision(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The revision to fetch from the Git repository such as a
+         * branch, a tag, a commit SHA, or any Git ref.
+         * 
+ * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for revision to set. + * @return This builder for chaining. + */ + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig) + private static final com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeveloperConnectConfig 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DeveloperConnectSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig + getConfig(); + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder + getConfigOrBuilder(); + } + + /** + * + * + *
+     * Specifies source code to be fetched from a Git repository managed through
+     * the Developer Connect service.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} + */ + public static final class DeveloperConnectSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + DeveloperConnectSourceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DeveloperConnectSource.newBuilder() to construct. + private DeveloperConnectSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeveloperConnectSource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeveloperConnectSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.class, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder.class); + } + + private int bitField0_; + public static final int CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + config_; + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getConfig() { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance() + : config_; + } + + /** + * + * + *
+       * Required. The Developer Connect configuration that defines the
+       * specific repository, revision, and directory to use as the source code
+       * root.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder + getConfigOrBuilder() { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance() + : config_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + } + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + other = + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + obj; + + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) 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 (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + 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; + } + + /** + * + * + *
+       * Specifies source code to be fetched from a Git repository managed through
+       * the Developer Connect service.
+       * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.class, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_DeveloperConnectSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + build() { + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + result = + new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance()) return this; + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + 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(getConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + config_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder> + configBuilder_; + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder + builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfig( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig + value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ + != com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder + getConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder + getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.getDefaultInstance() + : config_; + } + } + + /** + * + * + *
+         * Required. The Developer Connect configuration that defines the
+         * specific repository, revision, and directory to use as the source code
+         * root.
+         * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + @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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource) + private static final com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeveloperConnectSource 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.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PythonSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointModule. + */ + java.lang.String getEntrypointModule(); + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointModule. + */ + com.google.protobuf.ByteString getEntrypointModuleBytes(); + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointObject. + */ + java.lang.String getEntrypointObject(); + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointObject. + */ + com.google.protobuf.ByteString getEntrypointObjectBytes(); + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsFile. + */ + java.lang.String getRequirementsFile(); + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requirementsFile. + */ + com.google.protobuf.ByteString getRequirementsFileBytes(); + } + + /** + * + * + *
+     * Specification for running a Python application from source.
+     * 
+ * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec} + */ + public static final class PythonSpec extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) + PythonSpecOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PythonSpec.newBuilder() to construct. + private PythonSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PythonSpec() { + version_ = ""; + entrypointModule_ = ""; + entrypointObject_ = ""; + requirementsFile_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PythonSpec(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineProto + .internal_static_google_cloud_aiplatform_v1beta1_ReasoningEngineSpec_SourceCodeSpec_PythonSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec + .class, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec + .Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+       * Optional. The version of Python to use. Support version
+       * includes 3.9, 3.10, 3.11, 3.12, 3.13.
+       * If not specified, default value is 3.10.
+       * 
+ * + * string version = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 ENTRYPOINT_MODULE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrypointModule_ = ""; + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointModule. + */ + @java.lang.Override + public java.lang.String getEntrypointModule() { + java.lang.Object ref = entrypointModule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrypointModule_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The Python module to load as the entrypoint, specified as a
+       * fully qualified module name. For example: path.to.agent.
+       * If not specified, defaults to "agent".
+       *
+       * The project root will be added to Python sys.path, allowing imports
+       * to be specified relative to the root.
+       * 
+ * + * string entrypoint_module = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointModule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrypointModuleBytes() { + java.lang.Object ref = entrypointModule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrypointModule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTRYPOINT_OBJECT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object entrypointObject_ = ""; + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entrypointObject. + */ + @java.lang.Override + public java.lang.String getEntrypointObject() { + java.lang.Object ref = entrypointObject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entrypointObject_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The name of the callable object within the
+       * `entrypoint_module` to use as the application If not specified,
+       * defaults to "root_agent".
+       * 
+ * + * string entrypoint_object = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entrypointObject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntrypointObjectBytes() { + java.lang.Object ref = entrypointObject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entrypointObject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUIREMENTS_FILE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requirementsFile_ = ""; + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requirementsFile. + */ + @java.lang.Override + public java.lang.String getRequirementsFile() { + java.lang.Object ref = requirementsFile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requirementsFile_ = s; + return s; + } + } + + /** + * + * + *
+       * Optional. The path to the requirements file, relative to the source
+       * root. If not specified, defaults to "requirements.txt".
+       * 
+ * + * string requirements_file = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requirementsFile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequirementsFileBytes() { + java.lang.Object ref = requirementsFile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requirementsFile_ = 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(version_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointModule_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entrypointModule_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entrypointObject_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entrypointObject_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requirementsFile_)) { @@ -6976,6 +9171,7 @@ public enum SourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { INLINE_SOURCE(1), + DEVELOPER_CONNECT_SOURCE(3), SOURCE_NOT_SET(0); private final int value; @@ -6997,6 +9193,8 @@ public static SourceCase forNumber(int value) { switch (value) { case 1: return INLINE_SOURCE; + case 3: + return DEVELOPER_CONNECT_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -7127,6 +9325,76 @@ public boolean hasInlineSource() { .getDefaultInstance(); } + public static final int DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER = 3; + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return Whether the developerConnectSource field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSource() { + return sourceCase_ == 3; + } + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return The developerConnectSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + getDeveloperConnectSource() { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_; + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + + /** + * + * + *
+     * Source code is in a Git repository managed by Developer Connect.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder + getDeveloperConnectSourceOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_; + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + public static final int PYTHON_SPEC_FIELD_NUMBER = 2; /** @@ -7220,6 +9488,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) languageSpec_); } + if (sourceCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_); + } getUnknownFields().writeTo(output); } @@ -7244,6 +9519,14 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec) languageSpec_); } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7266,6 +9549,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getInlineSource().equals(other.getInlineSource())) return false; break; + case 3: + if (!getDeveloperConnectSource().equals(other.getDeveloperConnectSource())) return false; + break; case 0: default: } @@ -7293,6 +9579,10 @@ public int hashCode() { hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getInlineSource().hashCode(); break; + case 3: + hash = (37 * hash) + DEVELOPER_CONNECT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperConnectSource().hashCode(); + break; case 0: default: } @@ -7453,6 +9743,9 @@ public Builder clear() { if (inlineSourceBuilder_ != null) { inlineSourceBuilder_.clear(); } + if (developerConnectSourceBuilder_ != null) { + developerConnectSourceBuilder_.clear(); + } if (pythonSpecBuilder_ != null) { pythonSpecBuilder_.clear(); } @@ -7510,6 +9803,9 @@ private void buildPartialOneofs( if (sourceCase_ == 1 && inlineSourceBuilder_ != null) { result.source_ = inlineSourceBuilder_.build(); } + if (sourceCase_ == 3 && developerConnectSourceBuilder_ != null) { + result.source_ = developerConnectSourceBuilder_.build(); + } result.languageSpecCase_ = languageSpecCase_; result.languageSpec_ = this.languageSpec_; if (languageSpecCase_ == 2 && pythonSpecBuilder_ != null) { @@ -7575,6 +9871,11 @@ public Builder mergeFrom( mergeInlineSource(other.getInlineSource()); break; } + case DEVELOPER_CONNECT_SOURCE: + { + mergeDeveloperConnectSource(other.getDeveloperConnectSource()); + break; + } case SOURCE_NOT_SET: { break; @@ -7629,6 +9930,13 @@ public Builder mergeFrom( languageSpecCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage( + getDeveloperConnectSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7946,6 +10254,281 @@ public Builder clearInlineSource() { return inlineSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder> + developerConnectSourceBuilder_; + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return Whether the developerConnectSource field is set. + */ + @java.lang.Override + public boolean hasDeveloperConnectSource() { + return sourceCase_ == 3; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + * + * @return The developerConnectSource. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + getDeveloperConnectSource() { + if (developerConnectSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_; + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return developerConnectSourceBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public Builder setDeveloperConnectSource( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + value) { + if (developerConnectSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + developerConnectSourceBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public Builder setDeveloperConnectSource( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder + builderForValue) { + if (developerConnectSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + developerConnectSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public Builder mergeDeveloperConnectSource( + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource + value) { + if (developerConnectSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance()) { + source_ = + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + developerConnectSourceBuilder_.mergeFrom(value); + } else { + developerConnectSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public Builder clearDeveloperConnectSource() { + if (developerConnectSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + developerConnectSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder + getDeveloperConnectSourceBuilder() { + return getDeveloperConnectSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder + getDeveloperConnectSourceOrBuilder() { + if ((sourceCase_ == 3) && (developerConnectSourceBuilder_ != null)) { + return developerConnectSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_; + } + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Source code is in a Git repository managed by Developer Connect.
+       * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.DeveloperConnectSource developer_connect_source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder> + getDeveloperConnectSourceFieldBuilder() { + if (developerConnectSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.getDefaultInstance(); + } + developerConnectSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource.Builder, + com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSourceOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec + .DeveloperConnectSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return developerConnectSourceBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec, com.google.cloud.aiplatform.v1beta1.ReasoningEngineSpec.SourceCodeSpec.PythonSpec diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfig.java new file mode 100644 index 000000000000..2685190c7d3b --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfig.java @@ -0,0 +1,756 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * The configuration for the replicated voice to use.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig} + */ +public final class ReplicatedVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) + ReplicatedVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ReplicatedVoiceConfig.newBuilder() to construct. + private ReplicatedVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ReplicatedVoiceConfig() { + mimeType_ = ""; + voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ReplicatedVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder.class); + } + + public static final int MIME_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
+   * Optional. The mimetype of the voice sample. The only currently supported
+   * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+   * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+   * set.
+   * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The mimetype of the voice sample. The only currently supported
+   * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+   * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+   * set.
+   * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOICE_SAMPLE_AUDIO_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Optional. The sample of the custom voice.
+   * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleAudio. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceSampleAudio() { + return voiceSampleAudio_; + } + + 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(mimeType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_); + } + if (!voiceSampleAudio_.isEmpty()) { + output.writeBytes(2, voiceSampleAudio_); + } + 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(mimeType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_); + } + if (!voiceSampleAudio_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, voiceSampleAudio_); + } + 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.aiplatform.v1beta1.ReplicatedVoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig other = + (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) obj; + + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getVoiceSampleAudio().equals(other.getVoiceSampleAudio())) 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) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + VOICE_SAMPLE_AUDIO_FIELD_NUMBER; + hash = (53 * hash) + getVoiceSampleAudio().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig 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.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig 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.aiplatform.v1beta1.ReplicatedVoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig 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.aiplatform.v1beta1.ReplicatedVoiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig 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.aiplatform.v1beta1.ReplicatedVoiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The configuration for the replicated voice to use.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_ReplicatedVoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig build() { + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig result = + new com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.voiceSampleAudio_ = voiceSampleAudio_; + } + } + + @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.aiplatform.v1beta1.ReplicatedVoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance()) + return this; + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getVoiceSampleAudio() != com.google.protobuf.ByteString.EMPTY) { + setVoiceSampleAudio(other.getVoiceSampleAudio()); + } + 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: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + voiceSampleAudio_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mimetype of the voice sample. The only currently supported
+     * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+     * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+     * set.
+     * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString voiceSampleAudio_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Optional. The sample of the custom voice.
+     * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleAudio. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceSampleAudio() { + return voiceSampleAudio_; + } + + /** + * + * + *
+     * Optional. The sample of the custom voice.
+     * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The voiceSampleAudio to set. + * @return This builder for chaining. + */ + public Builder setVoiceSampleAudio(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + voiceSampleAudio_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The sample of the custom voice.
+     * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVoiceSampleAudio() { + bitField0_ = (bitField0_ & ~0x00000002); + voiceSampleAudio_ = getDefaultInstance().getVoiceSampleAudio(); + 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.aiplatform.v1beta1.ReplicatedVoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) + private static final com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplicatedVoiceConfig 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.aiplatform.v1beta1.ReplicatedVoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfigOrBuilder.java new file mode 100644 index 000000000000..8541aaa7b34c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReplicatedVoiceConfigOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface ReplicatedVoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The mimetype of the voice sample. The only currently supported
+   * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+   * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+   * set.
+   * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
+   * Optional. The mimetype of the voice sample. The only currently supported
+   * value is `audio/wav`. This represents 16-bit signed little-endian wav data,
+   * with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not
+   * set.
+   * 
+ * + * string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
+   * Optional. The sample of the custom voice.
+   * 
+ * + * bytes voice_sample_audio = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleAudio. + */ + com.google.protobuf.ByteString getVoiceSampleAudio(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfig.java new file mode 100644 index 000000000000..97bc20557e96 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfig.java @@ -0,0 +1,960 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
+ * Configuration for a single speaker in a multi-speaker setup.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig} + */ +public final class SpeakerVoiceConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) + SpeakerVoiceConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SpeakerVoiceConfig.newBuilder() to construct. + private SpeakerVoiceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpeakerVoiceConfig() { + speaker_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpeakerVoiceConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder.class); + } + + private int bitField0_; + public static final int SPEAKER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object speaker_ = ""; + + /** + * + * + *
+   * Required. The name of the speaker. This should be the same as the speaker
+   * name used in the prompt.
+   * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The speaker. + */ + @java.lang.Override + public java.lang.String getSpeaker() { + java.lang.Object ref = speaker_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + speaker_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the speaker. This should be the same as the speaker
+   * name used in the prompt.
+   * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for speaker. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSpeakerBytes() { + java.lang.Object ref = speaker_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + speaker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOICE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.VoiceConfig voiceConfig_; + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the voiceConfig field is set. + */ + @java.lang.Override + public boolean hasVoiceConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The voiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + + 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(speaker_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, speaker_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getVoiceConfig()); + } + 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(speaker_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, speaker_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVoiceConfig()); + } + 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.aiplatform.v1beta1.SpeakerVoiceConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig other = + (com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) obj; + + if (!getSpeaker().equals(other.getSpeaker())) return false; + if (hasVoiceConfig() != other.hasVoiceConfig()) return false; + if (hasVoiceConfig()) { + if (!getVoiceConfig().equals(other.getVoiceConfig())) 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) + SPEAKER_FIELD_NUMBER; + hash = (53 * hash) + getSpeaker().hashCode(); + if (hasVoiceConfig()) { + hash = (37 * hash) + VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVoiceConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig 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.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig 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.aiplatform.v1beta1.SpeakerVoiceConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig 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.aiplatform.v1beta1.SpeakerVoiceConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig 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.aiplatform.v1beta1.SpeakerVoiceConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for a single speaker in a multi-speaker setup.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.class, + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getVoiceConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + speaker_ = ""; + voiceConfig_ = null; + if (voiceConfigBuilder_ != null) { + voiceConfigBuilder_.dispose(); + voiceConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ContentProto + .internal_static_google_cloud_aiplatform_v1beta1_SpeakerVoiceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig build() { + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig result = + new com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.speaker_ = speaker_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.voiceConfig_ = + voiceConfigBuilder_ == null ? voiceConfig_ : voiceConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig.getDefaultInstance()) + return this; + if (!other.getSpeaker().isEmpty()) { + speaker_ = other.speaker_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasVoiceConfig()) { + mergeVoiceConfig(other.getVoiceConfig()); + } + 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: + { + speaker_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getVoiceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object speaker_ = ""; + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The speaker. + */ + public java.lang.String getSpeaker() { + java.lang.Object ref = speaker_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + speaker_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for speaker. + */ + public com.google.protobuf.ByteString getSpeakerBytes() { + java.lang.Object ref = speaker_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + speaker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The speaker to set. + * @return This builder for chaining. + */ + public Builder setSpeaker(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + speaker_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSpeaker() { + speaker_ = getDefaultInstance().getSpeaker(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the speaker. This should be the same as the speaker
+     * name used in the prompt.
+     * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for speaker to set. + * @return This builder for chaining. + */ + public Builder setSpeakerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + speaker_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.VoiceConfig voiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VoiceConfig, + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder> + voiceConfigBuilder_; + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the voiceConfig field is set. + */ + public boolean hasVoiceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The voiceConfig. + */ + public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() { + if (voiceConfigBuilder_ == null) { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } else { + return voiceConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig value) { + if (voiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceConfig_ = value; + } else { + voiceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setVoiceConfig( + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder builderForValue) { + if (voiceConfigBuilder_ == null) { + voiceConfig_ = builderForValue.build(); + } else { + voiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig value) { + if (voiceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && voiceConfig_ != null + && voiceConfig_ + != com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance()) { + getVoiceConfigBuilder().mergeFrom(value); + } else { + voiceConfig_ = value; + } + } else { + voiceConfigBuilder_.mergeFrom(value); + } + if (voiceConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearVoiceConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + voiceConfig_ = null; + if (voiceConfigBuilder_ != null) { + voiceConfigBuilder_.dispose(); + voiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder getVoiceConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getVoiceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder() { + if (voiceConfigBuilder_ != null) { + return voiceConfigBuilder_.getMessageOrBuilder(); + } else { + return voiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.VoiceConfig.getDefaultInstance() + : voiceConfig_; + } + } + + /** + * + * + *
+     * Required. The configuration for the voice of this speaker.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VoiceConfig, + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder> + getVoiceConfigFieldBuilder() { + if (voiceConfigBuilder_ == null) { + voiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.VoiceConfig, + com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder>( + getVoiceConfig(), getParentForChildren(), isClean()); + voiceConfig_ = null; + } + return voiceConfigBuilder_; + } + + @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.aiplatform.v1beta1.SpeakerVoiceConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) + private static final com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerVoiceConfig 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.aiplatform.v1beta1.SpeakerVoiceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfigOrBuilder.java new file mode 100644 index 000000000000..f8b35e51619d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeakerVoiceConfigOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/aiplatform/v1beta1/content.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1beta1; + +public interface SpeakerVoiceConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SpeakerVoiceConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the speaker. This should be the same as the speaker
+   * name used in the prompt.
+   * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The speaker. + */ + java.lang.String getSpeaker(); + + /** + * + * + *
+   * Required. The name of the speaker. This should be the same as the speaker
+   * name used in the prompt.
+   * 
+ * + * string speaker = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for speaker. + */ + com.google.protobuf.ByteString getSpeakerBytes(); + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the voiceConfig field is set. + */ + boolean hasVoiceConfig(); + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The voiceConfig. + */ + com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig(); + + /** + * + * + *
+   * Required. The configuration for the voice of this speaker.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java index 46fc8480c2d3..43c3c490be5f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfig.java @@ -23,7 +23,7 @@ * * *
- * The speech generation config.
+ * Configuration for speech generation.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeechConfig} @@ -39,7 +39,9 @@ private SpeechConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } - private SpeechConfig() {} + private SpeechConfig() { + languageCode_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -70,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The configuration for the speaker to use.
+   * The configuration for the voice to use.
    * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -86,7 +88,7 @@ public boolean hasVoiceConfig() { * * *
-   * The configuration for the speaker to use.
+   * The configuration for the voice to use.
    * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -104,7 +106,7 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() { * * *
-   * The configuration for the speaker to use.
+   * The configuration for the voice to use.
    * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -116,6 +118,119 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOr : voiceConfig_; } + public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + + /** + * + * + *
+   * Optional. The language code (ISO 639-1) for the speech synthesis.
+   * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + @java.lang.Override + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The language code (ISO 639-1) for the speech synthesis.
+   * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MULTI_SPEAKER_VOICE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multiSpeakerVoiceConfig_; + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return Whether the multiSpeakerVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasMultiSpeakerVoiceConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return The multiSpeakerVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig() { + return multiSpeakerVoiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance() + : multiSpeakerVoiceConfig_; + } + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder + getMultiSpeakerVoiceConfigOrBuilder() { + return multiSpeakerVoiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance() + : multiSpeakerVoiceConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -133,6 +248,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getVoiceConfig()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, languageCode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getMultiSpeakerVoiceConfig()); + } getUnknownFields().writeTo(output); } @@ -145,6 +266,13 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getVoiceConfig()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, languageCode_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMultiSpeakerVoiceConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -165,6 +293,11 @@ public boolean equals(final java.lang.Object obj) { if (hasVoiceConfig()) { if (!getVoiceConfig().equals(other.getVoiceConfig())) return false; } + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (hasMultiSpeakerVoiceConfig() != other.hasMultiSpeakerVoiceConfig()) return false; + if (hasMultiSpeakerVoiceConfig()) { + if (!getMultiSpeakerVoiceConfig().equals(other.getMultiSpeakerVoiceConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,6 +313,12 @@ public int hashCode() { hash = (37 * hash) + VOICE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getVoiceConfig().hashCode(); } + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasMultiSpeakerVoiceConfig()) { + hash = (37 * hash) + MULTI_SPEAKER_VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMultiSpeakerVoiceConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -285,7 +424,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The speech generation config.
+   * Configuration for speech generation.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.SpeechConfig} @@ -322,6 +461,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getVoiceConfigFieldBuilder(); + getMultiSpeakerVoiceConfigFieldBuilder(); } } @@ -334,6 +474,12 @@ public Builder clear() { voiceConfigBuilder_.dispose(); voiceConfigBuilder_ = null; } + languageCode_ = ""; + multiSpeakerVoiceConfig_ = null; + if (multiSpeakerVoiceConfigBuilder_ != null) { + multiSpeakerVoiceConfigBuilder_.dispose(); + multiSpeakerVoiceConfigBuilder_ = null; + } return this; } @@ -376,6 +522,16 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.SpeechConfig resu voiceConfigBuilder_ == null ? voiceConfig_ : voiceConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.multiSpeakerVoiceConfig_ = + multiSpeakerVoiceConfigBuilder_ == null + ? multiSpeakerVoiceConfig_ + : multiSpeakerVoiceConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -428,6 +584,14 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.SpeechConfig other) if (other.hasVoiceConfig()) { mergeVoiceConfig(other.getVoiceConfig()); } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasMultiSpeakerVoiceConfig()) { + mergeMultiSpeakerVoiceConfig(other.getMultiSpeakerVoiceConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -460,6 +624,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getMultiSpeakerVoiceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -490,7 +667,7 @@ public Builder mergeFrom( * * *
-     * The configuration for the speaker to use.
+     * The configuration for the voice to use.
      * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -505,7 +682,7 @@ public boolean hasVoiceConfig() { * * *
-     * The configuration for the speaker to use.
+     * The configuration for the voice to use.
      * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -526,7 +703,7 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfig getVoiceConfig() { * * *
-     * The configuration for the speaker to use.
+     * The configuration for the voice to use.
      * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -549,7 +726,7 @@ public Builder setVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig va * * *
-     * The configuration for the speaker to use.
+     * The configuration for the voice to use.
      * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -570,7 +747,7 @@ public Builder setVoiceConfig( * * *
-     * The configuration for the speaker to use.
+     * The configuration for the voice to use.
      * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -599,7 +776,7 @@ public Builder mergeVoiceConfig(com.google.cloud.aiplatform.v1beta1.VoiceConfig * * *
-     * The configuration for the speaker to use.
+     * The configuration for the voice to use.
      * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -619,7 +796,7 @@ public Builder clearVoiceConfig() { * * *
-     * The configuration for the speaker to use.
+     * The configuration for the voice to use.
      * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -634,7 +811,7 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfig.Builder getVoiceConfigBui * * *
-     * The configuration for the speaker to use.
+     * The configuration for the voice to use.
      * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -653,7 +830,7 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOr * * *
-     * The configuration for the speaker to use.
+     * The configuration for the voice to use.
      * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -675,6 +852,346 @@ public com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOr return voiceConfigBuilder_; } + private java.lang.Object languageCode_ = ""; + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + public java.lang.String getLanguageCode() { + java.lang.Object ref = languageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + languageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + public com.google.protobuf.ByteString getLanguageCodeBytes() { + java.lang.Object ref = languageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + languageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The language code (ISO 639-1) for the speech synthesis.
+     * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for languageCode to set. + * @return This builder for chaining. + */ + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multiSpeakerVoiceConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig, + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder> + multiSpeakerVoiceConfigBuilder_; + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return Whether the multiSpeakerVoiceConfig field is set. + */ + public boolean hasMultiSpeakerVoiceConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return The multiSpeakerVoiceConfig. + */ + public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + getMultiSpeakerVoiceConfig() { + if (multiSpeakerVoiceConfigBuilder_ == null) { + return multiSpeakerVoiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance() + : multiSpeakerVoiceConfig_; + } else { + return multiSpeakerVoiceConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public Builder setMultiSpeakerVoiceConfig( + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig value) { + if (multiSpeakerVoiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multiSpeakerVoiceConfig_ = value; + } else { + multiSpeakerVoiceConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public Builder setMultiSpeakerVoiceConfig( + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder builderForValue) { + if (multiSpeakerVoiceConfigBuilder_ == null) { + multiSpeakerVoiceConfig_ = builderForValue.build(); + } else { + multiSpeakerVoiceConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public Builder mergeMultiSpeakerVoiceConfig( + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig value) { + if (multiSpeakerVoiceConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && multiSpeakerVoiceConfig_ != null + && multiSpeakerVoiceConfig_ + != com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig + .getDefaultInstance()) { + getMultiSpeakerVoiceConfigBuilder().mergeFrom(value); + } else { + multiSpeakerVoiceConfig_ = value; + } + } else { + multiSpeakerVoiceConfigBuilder_.mergeFrom(value); + } + if (multiSpeakerVoiceConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public Builder clearMultiSpeakerVoiceConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + multiSpeakerVoiceConfig_ = null; + if (multiSpeakerVoiceConfigBuilder_ != null) { + multiSpeakerVoiceConfigBuilder_.dispose(); + multiSpeakerVoiceConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder + getMultiSpeakerVoiceConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMultiSpeakerVoiceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder + getMultiSpeakerVoiceConfigOrBuilder() { + if (multiSpeakerVoiceConfigBuilder_ != null) { + return multiSpeakerVoiceConfigBuilder_.getMessageOrBuilder(); + } else { + return multiSpeakerVoiceConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.getDefaultInstance() + : multiSpeakerVoiceConfig_; + } + } + + /** + * + * + *
+     * The configuration for a multi-speaker text-to-speech request.
+     * This field is mutually exclusive with `voice_config`.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig, + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder> + getMultiSpeakerVoiceConfigFieldBuilder() { + if (multiSpeakerVoiceConfigBuilder_ == null) { + multiSpeakerVoiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig, + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder>( + getMultiSpeakerVoiceConfig(), getParentForChildren(), isClean()); + multiSpeakerVoiceConfig_ = null; + } + return multiSpeakerVoiceConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java index ada89cfc7779..01665fd492a2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SpeechConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface SpeechConfigOrBuilder * * *
-   * The configuration for the speaker to use.
+   * The configuration for the voice to use.
    * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -41,7 +41,7 @@ public interface SpeechConfigOrBuilder * * *
-   * The configuration for the speaker to use.
+   * The configuration for the voice to use.
    * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; @@ -54,10 +54,80 @@ public interface SpeechConfigOrBuilder * * *
-   * The configuration for the speaker to use.
+   * The configuration for the voice to use.
    * 
* * .google.cloud.aiplatform.v1beta1.VoiceConfig voice_config = 1; */ com.google.cloud.aiplatform.v1beta1.VoiceConfigOrBuilder getVoiceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The language code (ISO 639-1) for the speech synthesis.
+   * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The languageCode. + */ + java.lang.String getLanguageCode(); + + /** + * + * + *
+   * Optional. The language code (ISO 639-1) for the speech synthesis.
+   * 
+ * + * string language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for languageCode. + */ + com.google.protobuf.ByteString getLanguageCodeBytes(); + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return Whether the multiSpeakerVoiceConfig field is set. + */ + boolean hasMultiSpeakerVoiceConfig(); + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + * + * @return The multiSpeakerVoiceConfig. + */ + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig getMultiSpeakerVoiceConfig(); + + /** + * + * + *
+   * The configuration for a multi-speaker text-to-speech request.
+   * This field is mutually exclusive with `voice_config`.
+   * 
+ * + * .google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.MultiSpeakerVoiceConfigOrBuilder + getMultiSpeakerVoiceConfigOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java index b89f09794912..207a8fc67ce8 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfig.java @@ -78,7 +78,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
* * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Override @@ -99,7 +99,7 @@ public boolean hasRagFileChunkingConfig() { *
* * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665 * @return The ragFileChunkingConfig. */ @java.lang.Override @@ -821,7 +821,7 @@ public Builder mergeFrom( *
* * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Deprecated @@ -841,7 +841,7 @@ public boolean hasRagFileChunkingConfig() { *
* * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665 * @return The ragFileChunkingConfig. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java index 2091b8b4a020..76ee27c33a41 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UploadRagFileConfigOrBuilder.java @@ -36,7 +36,7 @@ public interface UploadRagFileConfigOrBuilder *
* * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665 * @return Whether the ragFileChunkingConfig field is set. */ @java.lang.Deprecated @@ -54,7 +54,7 @@ public interface UploadRagFileConfigOrBuilder *
* * @deprecated google.cloud.aiplatform.v1beta1.UploadRagFileConfig.rag_file_chunking_config is - * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=644 + * deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_data.proto;l=665 * @return The ragFileChunkingConfig. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java index f441f2e04e01..d20f754fb729 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VertexRagDataProto.java @@ -80,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_VertexVectorSearch_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_VertexVectorSearch_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_FileStatus_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -226,7 +230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "RagEmbeddingModelConfig.SparseEmbeddingConfigB\003\340A\001\022\211\001\n" + ")dense_embedding_model_prediction_endpoint\030\002 \001(\0132Q.google.cloud.ai" + "platform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpointB\003\340A\002B\016\n" - + "\014model_config\"\345\010\n" + + "\014model_config\"\240\n\n" + "\021RagVectorDbConfig\022Y\n" + "\016rag_managed_db\030\001 \001(\0132?.google.cloud.aiplatform.v" + "1beta1.RagVectorDbConfig.RagManagedDbH\000\022O\n" @@ -237,15 +241,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024vertex_feature_store\030\004 \001(\0132E.google" + ".cloud.aiplatform.v1beta1.RagVectorDbConfig.VertexFeatureStoreH\000\022e\n" + "\024vertex_vector_search\030\006 \001(\0132E.google.cloud.aiplatform" - + ".v1beta1.RagVectorDbConfig.VertexVectorSearchH\000\022:\n" + + ".v1beta1.RagVectorDbConfig.VertexVectorSearchH\000\022{\n" + + " rag_managed_vertex_vector_search\030\010 \001(\0132O.google.cloud.aiplatform.v1be" + + "ta1.RagVectorDbConfig.RagManagedVertexVectorSearchH\000\022:\n" + "\010api_auth\030\005 \001(\0132(.google.cloud.aiplatform.v1beta1.ApiAuth\022d\n" - + "\032rag_embedding_model_config\030\007 \001(\01328.google.cloud.a" - + "iplatform.v1beta1.RagEmbeddingModelConfigB\006\340A\001\340A\005\032\202\002\n" + + "\032rag_embedding_model_config\030\007 \001(\01328.google.cl" + + "oud.aiplatform.v1beta1.RagEmbeddingModelConfigB\006\340A\001\340A\005\032\202\002\n" + "\014RagManagedDb\022R\n" - + "\003knn\030\001 \001(\0132" - + "C.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNH\000\022R\n" - + "\003ann\030\002 " - + "\001(\0132C.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.ANNH\000\032\005\n" + + "\003knn\030\001" + + " \001(\0132C.google.cloud.aiplatform.v1beta1.RagVectorDbConfig.RagManagedDb.KNNH\000\022R\n" + + "\003ann\030\002 \001(\0132C.google.cloud.aiplatform.v1bet" + + "a1.RagVectorDbConfig.RagManagedDb.ANNH\000\032\005\n" + "\003KNN\032-\n" + "\003ANN\022\022\n\n" + "tree_depth\030\001 \001(\005\022\022\n\n" @@ -260,11 +266,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032feature_view_resource_name\030\001 \001(\t\032;\n" + "\022VertexVectorSearch\022\026\n" + "\016index_endpoint\030\001 \001(\t\022\r\n" - + "\005index\030\002 \001(\tB\013\n" + + "\005index\030\002 \001(\t\032<\n" + + "\034RagManagedVertexVectorSearch\022\034\n" + + "\017collection_name\030\001 \001(\tB\003\340A\003B\013\n" + "\tvector_db\"\245\001\n\n" + "FileStatus\022E\n" - + "\005state\030\001" - + " \001(\01621.google.cloud.aiplatform.v1beta1.FileStatus.StateB\003\340A\003\022\031\n" + + "\005state\030\001 \001(\01621.google" + + ".cloud.aiplatform.v1beta1.FileStatus.StateB\003\340A\003\022\031\n" + "\014error_status\030\002 \001(\tB\003\340A\003\"5\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" @@ -273,62 +281,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024VertexAiSearchConfig\022\026\n" + "\016serving_config\030\001 \001(\t\"\260\001\n" + "\014CorpusStatus\022G\n" - + "\005state\030\001 \001(\01623.google.cloud.ai" - + "platform.v1beta1.CorpusStatus.StateB\003\340A\003\022\031\n" + + "\005state\030\001" + + " \001(\01623.google.cloud.aiplatform.v1beta1.CorpusStatus.StateB\003\340A\003\022\031\n" + "\014error_status\030\002 \001(\tB\003\340A\003\"<\n" + "\005State\022\013\n" + "\007UNKNOWN\020\000\022\017\n" + "\013INITIALIZED\020\001\022\n\n" + "\006ACTIVE\020\002\022\t\n" - + "\005ERROR\020\003\"\341\n\n" + + "\005ERROR\020\003\"\231\013\n" + "\tRagCorpus\022V\n" - + "\020vector_db_config\030\t" - + " \001(\01322.google.cloud.aiplatform.v1beta1.RagVectorDbConfigB\006\340A\001\340A\005H\000\022`\n" + + "\020vector_db_config\030\t \001(\01322.g" + + "oogle.cloud.aiplatform.v1beta1.RagVectorDbConfigB\006\340A\001\340A\005H\000\022`\n" + "\027vertex_ai_search_config\030\n" - + " \001(\01325.google.cloud." - + "aiplatform.v1beta1.VertexAiSearchConfigB\006\340A\001\340A\005H\000\022\021\n" + + " \001(\01325.google.cloud.aiplatform.v1beta1.VertexAiSearchConfigB\006\340A\001\340A\005H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022f\n" - + "\032rag_embedding_model_config\030\006 \001(\01328." - + "google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfigB\010\030\001\340A\001\340A\005\022Z\n" - + "\024rag_vector_db_config\030\007" - + " \001(\01322.google.cloud.aiplatform.v1beta1.RagVectorDbConfigB\010\030\001\340A\001\340A\005\0224\n" + + "\032rag_embedding_model_config\030\006 \001(\01328.google.cloud." + + "aiplatform.v1beta1.RagEmbeddingModelConfigB\010\030\001\340A\001\340A\005\022Z\n" + + "\024rag_vector_db_config\030\007 \001" + + "(\01322.google.cloud.aiplatform.v1beta1.RagVectorDbConfigB\010\030\001\340A\001\340A\005\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\r" - + "corpus_status\030\010" - + " \001(\0132-.google.cloud.aiplatform.v1beta1.CorpusStatusB\003\340A\003\022\034\n" + + "corpus_status\030\010 \001(\0132-.go" + + "ogle.cloud.aiplatform.v1beta1.CorpusStatusB\003\340A\003\022\034\n" + "\017rag_files_count\030\013 \001(\005B\003\340A\003\022P\n" - + "\017encryption_spec\030\014 \001(\0132/.go" - + "ogle.cloud.aiplatform.v1beta1.EncryptionSpecB\006\340A\005\340A\001\022\\\n" + + "\017encryption_spec\030\014 \001(\0132/.google.cloud.ai" + + "platform.v1beta1.EncryptionSpecB\006\340A\005\340A\001\022\\\n" + "\022corpus_type_config\030\r" - + " \001(\013" - + "2;.google.cloud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfigB\003\340A\001\032\363\002\n" + + " \001(\0132;.google.clo" + + "ud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfigB\003\340A\001\022\032\n\r" + + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\032\n\r" + + "satisfies_pzi\030\024 \001(\010B\003\340A\003\032\363\002\n" + "\020CorpusTypeConfig\022j\n" - + "\017document_corpus\030\001 \001(\0132J.googl" - + "e.cloud.aiplatform.v1beta1.RagCorpus.CorpusTypeConfig.DocumentCorpusB\003\340A\001H\000\022f\n\r" - + "memory_corpus\030\002 \001(\0132H.google.cloud.aiplat" - + "form.v1beta1.RagCorpus.CorpusTypeConfig.MemoryCorpusB\003\340A\001H\000\032\020\n" + + "\017document_corpus\030\001 \001(\0132J.google.cloud.aiplatform.v1beta1.RagCorpus." + + "CorpusTypeConfig.DocumentCorpusB\003\340A\001H\000\022f\n\r" + + "memory_corpus\030\002 \001(\0132H.google.cloud.aip" + + "latform.v1beta1.RagCorpus.CorpusTypeConfig.MemoryCorpusB\003\340A\001H\000\032\020\n" + "\016DocumentCorpus\032c\n" + "\014MemoryCorpus\022S\n\n" - + "llm_parser\030\001 \001(\0132?.goog" - + "le.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserB\024\n" + + "llm_parser\030\001 \001(\0132?.g" + + "oogle.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserB\024\n" + "\022corpus_type_config:\200\001\352A}\n" - + "#aiplatform.googleapis.com/RagCor" - + "pus\022?projects/{project}/locations/{location}/ragCorpora/{rag_corpus}*\n" + + "#aiplatform.googleapis.com/Rag" + + "Corpus\022?projects/{project}/locations/{location}/ragCorpora/{rag_corpus}*\n" + "ragCorpora2\tragCorpusB\020\n" + "\016backend_config\"\342\010\n" + "\007RagFile\022E\n\n" + "gcs_source\030\010" + " \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceB\003\340A\003H\000\022V\n" - + "\023google_drive_source\030\t \001(\01322.google.cloud.aip" - + "latform.v1beta1.GoogleDriveSourceB\003\340A\003H\000\022X\n" + + "\023google_drive_source\030\t \001(\01322.google.cloud." + + "aiplatform.v1beta1.GoogleDriveSourceB\003\340A\003H\000\022X\n" + "\024direct_upload_source\030\n" - + " \001(\01323.google." - + "cloud.aiplatform.v1beta1.DirectUploadSourceB\003\340A\003H\000\022D\n" - + "\014slack_source\030\013 \001(\0132,.googl" - + "e.cloud.aiplatform.v1beta1.SlackSourceH\000\022B\n" + + " \001(\01323.goog" + + "le.cloud.aiplatform.v1beta1.DirectUploadSourceB\003\340A\003H\000\022D\n" + + "\014slack_source\030\013 \001(\0132,.go" + + "ogle.cloud.aiplatform.v1beta1.SlackSourceH\000\022B\n" + "\013jira_source\030\014" + " \001(\0132+.google.cloud.aiplatform.v1beta1.JiraSourceH\000\022Q\n" + "\023share_point_sources\030\016" @@ -337,8 +346,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022\027\n\n" + "size_bytes\030\004 \001(\003B\003\340A\003\022P\n\r" - + "rag_file_type\030\005 \001(\01624.google" - + ".cloud.aiplatform.v1beta1.RagFile.RagFileTypeB\003\340A\003\0224\n" + + "rag_file_type\030\005 \001(\01624.goo" + + "gle.cloud.aiplatform.v1beta1.RagFile.RagFileTypeB\003\340A\003\0224\n" + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022E\n" + "\013file_status\030\r" @@ -348,20 +357,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031RAG_FILE_TYPE_UNSPECIFIED\020\000\022\025\n" + "\021RAG_FILE_TYPE_TXT\020\001\022\025\n" + "\021RAG_FILE_TYPE_PDF\020\002:\217\001\352A\213\001\n" - + "!aiplatform.googleapis.com/RagFile\022Sprojects/{project}/locations/{location}/ragCorp" - + "ora/{rag_corpus}/ragFiles/{rag_file}*\010ragFiles2\007ragFileB\021\n" + + "!aiplatform.googleapis.com/RagFile\022Sprojects/{project}/locations/{location}/ragC" + + "orpora/{rag_corpus}/ragFiles/{rag_file}*\010ragFiles2\007ragFileB\021\n" + "\017rag_file_source\"\245\001\n" + "\010RagChunk\022\014\n" + "\004text\030\001 \001(\t\022J\n" - + "\tpage_span\030\002 \001(\013" - + "22.google.cloud.aiplatform.v1beta1.RagChunk.PageSpanH\000\210\001\001\0321\n" + + "\tpage_span\030\002 " + + "\001(\01322.google.cloud.aiplatform.v1beta1.RagChunk.PageSpanH\000\210\001\001\0321\n" + "\010PageSpan\022\022\n\n" + "first_page\030\001 \001(\005\022\021\n" + "\tlast_page\030\002 \001(\005B\014\n\n" + "_page_span\"\214\002\n" + "\025RagFileChunkingConfig\022k\n" - + "\025fixed_length_chunking\030\003 \001(\0132J.google.cloud.aipla" - + "tform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingH\000\022\026\n\n" + + "\025fixed_length_chunking\030\003 \001(\0132J.google.cloud.ai" + + "platform.v1beta1.RagFileChunkingConfig.FixedLengthChunkingH\000\022\026\n\n" + "chunk_size\030\001 \001(\005B\002\030\001\022\031\n\r" + "chunk_overlap\030\002 \001(\005B\002\030\001\032@\n" + "\023FixedLengthChunking\022\022\n\n" @@ -369,15 +378,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "chunk_overlap\030\002 \001(\005B\021\n" + "\017chunking_config\"w\n" + "\033RagFileTransformationConfig\022X\n" - + "\030rag_file_chunking_config\030\001" - + " \001(\01326.google.cloud.aiplatform.v1beta1.RagFileChunkingConfig\"\236\005\n" + + "\030rag_file_chunking_config\030\001 \001(\01326.google.cloud.aip" + + "latform.v1beta1.RagFileChunkingConfig\"\236\005\n" + "\024RagFileParsingConfig\022_\n" - + "\017advanced_parser\030\003" - + " \001(\0132D.google.cloud.aiplatform.v1beta1.RagFileParsingConfig.AdvancedParserH\000\022[\n\r" - + "layout_parser\030\004 \001(\0132B.google.cloud.aipla" - + "tform.v1beta1.RagFileParsingConfig.LayoutParserH\000\022U\n\n" - + "llm_parser\030\005 \001(\0132?.google.c" - + "loud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserH\000\022$\n" + + "\017advanced_parser\030\003 \001(\0132D.google.cloud.aiplatform.v1beta" + + "1.RagFileParsingConfig.AdvancedParserH\000\022[\n\r" + + "layout_parser\030\004 \001(\0132B.google.cloud.ai" + + "platform.v1beta1.RagFileParsingConfig.LayoutParserH\000\022U\n\n" + + "llm_parser\030\005 \001(\0132?.googl" + + "e.cloud.aiplatform.v1beta1.RagFileParsingConfig.LlmParserH\000\022$\n" + "\030use_advanced_pdf_parsing\030\002 \001(\010B\002\030\001\0322\n" + "\016AdvancedParser\022 \n" + "\030use_advanced_pdf_parsing\030\001 \001(\010\032y\n" @@ -399,44 +408,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035inline_metadata_schema_source\030\003 \001(\tH\000\022I\n" + "\023gcs_metadata_source\030\004" + " \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\001\022Z\n" - + "\034google_drive_metadata_source\030\005 \001(\01322.google.cl" - + "oud.aiplatform.v1beta1.GoogleDriveSourceH\001\022 \n" + + "\034google_drive_metadata_source\030\005 \001(\01322.google" + + ".cloud.aiplatform.v1beta1.GoogleDriveSourceH\001\022 \n" + "\026inline_metadata_source\030\006 \001(\tH\001B\030\n" + "\026metadata_schema_sourceB\021\n" + "\017metadata_source\"\220\003\n" + "\023UploadRagFileConfig\022\\\n" - + "\030rag_file_chunking_config\030\001 \001(\01326.google.cloud.aipla" - + "tform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n" - + "\036rag_file_transformation_config\030\003 \001(\0132" - + "<.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig\022X\n" + + "\030rag_file_chunking_config\030\001 \001(\01326.google.cloud.ai" + + "platform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n" + + "\036rag_file_transformation_config\030\003 \001" + + "(\0132<.google.cloud.aiplatform.v1beta1.RagFileTransformationConfig\022X\n" + "\030rag_file_metadata_config\030\004" + " \001(\01326.google.cloud.aiplatform.v1beta1.RagFileMetadataConfig\022[\n" - + "\027rag_file_parsing_config\030\005 \001(\01325.google.cloud." - + "aiplatform.v1beta1.RagFileParsingConfigB\003\340A\001\"\252\n\n" + + "\027rag_file_parsing_config\030\005 \001(\01325.google.clo" + + "ud.aiplatform.v1beta1.RagFileParsingConfigB\003\340A\001\"\252\n\n" + "\024ImportRagFilesConfig\022@\n\n" + "gcs_source\030\002 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022Q\n" + "\023google_drive_source\030\003" + " \001(\01322.google.cloud.aiplatform.v1beta1.GoogleDriveSourceH\000\022D\n" - + "\014slack_source\030\006 \001(\013" - + "2,.google.cloud.aiplatform.v1beta1.SlackSourceH\000\022B\n" - + "\013jira_source\030\007" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.JiraSourceH\000\022Q\n" + + "\014slack_source\030\006 " + + "\001(\0132,.google.cloud.aiplatform.v1beta1.SlackSourceH\000\022B\n" + + "\013jira_source\030\007 \001(\0132+.googl" + + "e.cloud.aiplatform.v1beta1.JiraSourceH\000\022Q\n" + "\023share_point_sources\030\r" + " \001(\01322.google.cloud.aiplatform.v1beta1.SharePointSourcesH\000\022W\n" - + "\030partial_failure_gcs_sink\030\013 \001(\0132/.goog" - + "le.cloud.aiplatform.v1beta1.GcsDestinationB\002\030\001H\001\022a\n" + + "\030partial_failure_gcs_sink\030\013 \001(\0132/.g" + + "oogle.cloud.aiplatform.v1beta1.GcsDestinationB\002\030\001H\001\022a\n" + "\035partial_failure_bigquery_sink\030\014" + " \001(\01324.google.cloud.aiplatform.v1beta1.BigQueryDestinationB\002\030\001H\001\022Q\n" + "\026import_result_gcs_sink\030\016" + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\002\022[\n" - + "\033import_result_bigquery_sink\030\017 \001(\01324.google.clo" - + "ud.aiplatform.v1beta1.BigQueryDestinationH\002\022\\\n" - + "\030rag_file_chunking_config\030\004 \001(\01326." - + "google.cloud.aiplatform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n" - + "\036rag_file_transformation_config\030\020 \001(\0132<.google.cloud.aiplatf" - + "orm.v1beta1.RagFileTransformationConfig\022[\n" - + "\027rag_file_parsing_config\030\010 \001(\01325.googl" - + "e.cloud.aiplatform.v1beta1.RagFileParsingConfigB\003\340A\001\022X\n" + + "\033import_result_bigquery_sink\030\017 \001(\01324.google." + + "cloud.aiplatform.v1beta1.BigQueryDestinationH\002\022\\\n" + + "\030rag_file_chunking_config\030\004 \001(\013" + + "26.google.cloud.aiplatform.v1beta1.RagFileChunkingConfigB\002\030\001\022d\n" + + "\036rag_file_transformation_config\030\020 \001(\0132<.google.cloud.aipl" + + "atform.v1beta1.RagFileTransformationConfig\022[\n" + + "\027rag_file_parsing_config\030\010 \001(\01325.go" + + "ogle.cloud.aiplatform.v1beta1.RagFileParsingConfigB\003\340A\001\022X\n" + "\030rag_file_metadata_config\030\021" + " \001(\01326.google.cloud.aiplatform.v1beta1.RagFileMetadataConfig\022+\n" + "\036max_embedding_requests_per_min\030\005 \001(\005B\003\340A\001\0222\n" @@ -446,14 +455,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024partial_failure_sinkB\024\n" + "\022import_result_sink\"\242\003\n" + "\022RagManagedDbConfig\022X\n\n" - + "enterprise\030\001 \001(\0132>.google.cloud.aiplatform.v" - + "1beta1.RagManagedDbConfig.EnterpriseB\002\030\001H\000\022L\n" - + "\006scaled\030\004 \001(\0132:.google.cloud.aiplat" - + "form.v1beta1.RagManagedDbConfig.ScaledH\000\022J\n" - + "\005basic\030\002" - + " \001(\01329.google.cloud.aiplatform.v1beta1.RagManagedDbConfig.BasicH\000\022Z\n\r" - + "unprovisioned\030\003 \001(\0132A.google.cloud.aipla" - + "tform.v1beta1.RagManagedDbConfig.UnprovisionedH\000\032\020\n\n" + + "enterprise\030\001 \001(\0132>.google.cloud.aiplatfor" + + "m.v1beta1.RagManagedDbConfig.EnterpriseB\002\030\001H\000\022L\n" + + "\006scaled\030\004 \001(\0132:.google.cloud.aip" + + "latform.v1beta1.RagManagedDbConfig.ScaledH\000\022J\n" + + "\005basic\030\002 \001(\01329.google.cloud.aiplat" + + "form.v1beta1.RagManagedDbConfig.BasicH\000\022Z\n\r" + + "unprovisioned\030\003 \001(\0132A.google.cloud.ai" + + "platform.v1beta1.RagManagedDbConfig.UnprovisionedH\000\032\020\n\n" + "Enterprise:\002\030\001\032\010\n" + "\006Scaled\032\007\n" + "\005Basic\032\017\n\r" @@ -461,15 +470,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tier\"\206\002\n" + "\017RagEngineConfig\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022R\n" - + "\025rag_managed_db_config\030\002 \001(\01323.google.cloud.aipl" - + "atform.v1beta1.RagManagedDbConfig:\213\001\352A\207\001\n" - + ")aiplatform.googleapis.com/RagEngineConfig\0227projects/{project}/locations/{locat" - + "ion}/ragEngineConfig*\020ragEngineConfigs2\017ragEngineConfigB\351\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\022VertexRagDataProtoP\001ZCc" - + "loud.google.com/go/aiplatform/apiv1beta1" - + "/aiplatformpb;aiplatformpb\252\002\037Google.Clou" - + "d.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPl" - + "atform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "\025rag_managed_db_config\030\002 \001(\01323.google.cloud.a" + + "iplatform.v1beta1.RagManagedDbConfig:\213\001\352A\207\001\n" + + ")aiplatform.googleapis.com/RagEngineConfig\0227projects/{project}/locations/{lo" + + "cation}/ragEngineConfig*\020ragEngineConfigs2\017ragEngineConfigB\351\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\022VertexRagDataProtoP\001" + + "ZCcloud.google.com/go/aiplatform/apiv1be" + + "ta1/aiplatformpb;aiplatformpb\252\002\037Google.C" + + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" + + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -541,6 +550,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Pinecone", "VertexFeatureStore", "VertexVectorSearch", + "RagManagedVertexVectorSearch", "ApiAuth", "RagEmbeddingModelConfig", "VectorDb", @@ -613,6 +623,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "IndexEndpoint", "Index", }); + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_descriptor + .getNestedTypes() + .get(5); + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RagVectorDbConfig_RagManagedVertexVectorSearch_descriptor, + new java.lang.String[] { + "CollectionName", + }); internal_static_google_cloud_aiplatform_v1beta1_FileStatus_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_aiplatform_v1beta1_FileStatus_fieldAccessorTable = @@ -656,6 +676,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RagFilesCount", "EncryptionSpec", "CorpusTypeConfig", + "SatisfiesPzs", + "SatisfiesPzi", "BackendConfig", }); internal_static_google_cloud_aiplatform_v1beta1_RagCorpus_CorpusTypeConfig_descriptor = diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java index fbdfd60b1774..1fd64ac8365d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfig.java @@ -23,7 +23,7 @@ * * *
- * The configuration for the voice to use.
+ * Configuration for a voice.
  * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.VoiceConfig} @@ -72,6 +72,7 @@ public enum VoiceConfigCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PREBUILT_VOICE_CONFIG(1), + REPLICATED_VOICE_CONFIG(3), VOICECONFIG_NOT_SET(0); private final int value; @@ -93,6 +94,8 @@ public static VoiceConfigCase forNumber(int value) { switch (value) { case 1: return PREBUILT_VOICE_CONFIG; + case 3: + return REPLICATED_VOICE_CONFIG; case 0: return VOICECONFIG_NOT_SET; default: @@ -115,7 +118,7 @@ public VoiceConfigCase getVoiceConfigCase() { * * *
-   * The configuration for the prebuilt voice to use.
+   * The configuration for a prebuilt voice.
    * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -131,7 +134,7 @@ public boolean hasPrebuiltVoiceConfig() { * * *
-   * The configuration for the prebuilt voice to use.
+   * The configuration for a prebuilt voice.
    * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -150,7 +153,7 @@ public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getPrebuiltVoiceC * * *
-   * The configuration for the prebuilt voice to use.
+   * The configuration for a prebuilt voice.
    * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -164,6 +167,70 @@ public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getPrebuiltVoiceC return com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig.getDefaultInstance(); } + public static final int REPLICATED_VOICE_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the replicatedVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasReplicatedVoiceConfig() { + return voiceConfigCase_ == 3; + } + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The replicatedVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getReplicatedVoiceConfig() { + if (voiceConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder + getReplicatedVoiceConfigOrBuilder() { + if (voiceConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -182,6 +249,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 1, (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_); } + if (voiceConfigCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_); + } getUnknownFields().writeTo(output); } @@ -196,6 +267,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig) voiceConfig_); } + if (voiceConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -217,6 +293,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getPrebuiltVoiceConfig().equals(other.getPrebuiltVoiceConfig())) return false; break; + case 3: + if (!getReplicatedVoiceConfig().equals(other.getReplicatedVoiceConfig())) return false; + break; case 0: default: } @@ -236,6 +315,10 @@ public int hashCode() { hash = (37 * hash) + PREBUILT_VOICE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getPrebuiltVoiceConfig().hashCode(); break; + case 3: + hash = (37 * hash) + REPLICATED_VOICE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getReplicatedVoiceConfig().hashCode(); + break; case 0: default: } @@ -344,7 +427,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The configuration for the voice to use.
+   * Configuration for a voice.
    * 
* * Protobuf type {@code google.cloud.aiplatform.v1beta1.VoiceConfig} @@ -382,6 +465,9 @@ public Builder clear() { if (prebuiltVoiceConfigBuilder_ != null) { prebuiltVoiceConfigBuilder_.clear(); } + if (replicatedVoiceConfigBuilder_ != null) { + replicatedVoiceConfigBuilder_.clear(); + } voiceConfigCase_ = 0; voiceConfig_ = null; return this; @@ -429,6 +515,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.VoiceConfig if (voiceConfigCase_ == 1 && prebuiltVoiceConfigBuilder_ != null) { result.voiceConfig_ = prebuiltVoiceConfigBuilder_.build(); } + if (voiceConfigCase_ == 3 && replicatedVoiceConfigBuilder_ != null) { + result.voiceConfig_ = replicatedVoiceConfigBuilder_.build(); + } } @java.lang.Override @@ -483,6 +572,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.VoiceConfig other) mergePrebuiltVoiceConfig(other.getPrebuiltVoiceConfig()); break; } + case REPLICATED_VOICE_CONFIG: + { + mergeReplicatedVoiceConfig(other.getReplicatedVoiceConfig()); + break; + } case VOICECONFIG_NOT_SET: { break; @@ -521,6 +615,13 @@ public Builder mergeFrom( voiceConfigCase_ = 1; break; } // case 10 + case 26: + { + input.readMessage( + getReplicatedVoiceConfigFieldBuilder().getBuilder(), extensionRegistry); + voiceConfigCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -564,7 +665,7 @@ public Builder clearVoiceConfig() { * * *
-     * The configuration for the prebuilt voice to use.
+     * The configuration for a prebuilt voice.
      * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -580,7 +681,7 @@ public boolean hasPrebuiltVoiceConfig() { * * *
-     * The configuration for the prebuilt voice to use.
+     * The configuration for a prebuilt voice.
      * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -606,7 +707,7 @@ public com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig getPrebuiltVoiceC * * *
-     * The configuration for the prebuilt voice to use.
+     * The configuration for a prebuilt voice.
      * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -630,7 +731,7 @@ public Builder setPrebuiltVoiceConfig( * * *
-     * The configuration for the prebuilt voice to use.
+     * The configuration for a prebuilt voice.
      * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -651,7 +752,7 @@ public Builder setPrebuiltVoiceConfig( * * *
-     * The configuration for the prebuilt voice to use.
+     * The configuration for a prebuilt voice.
      * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -686,7 +787,7 @@ public Builder mergePrebuiltVoiceConfig( * * *
-     * The configuration for the prebuilt voice to use.
+     * The configuration for a prebuilt voice.
      * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -712,7 +813,7 @@ public Builder clearPrebuiltVoiceConfig() { * * *
-     * The configuration for the prebuilt voice to use.
+     * The configuration for a prebuilt voice.
      * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -726,7 +827,7 @@ public Builder clearPrebuiltVoiceConfig() { * * *
-     * The configuration for the prebuilt voice to use.
+     * The configuration for a prebuilt voice.
      * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -748,7 +849,7 @@ public Builder clearPrebuiltVoiceConfig() { * * *
-     * The configuration for the prebuilt voice to use.
+     * The configuration for a prebuilt voice.
      * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -778,6 +879,257 @@ public Builder clearPrebuiltVoiceConfig() { return prebuiltVoiceConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig, + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder> + replicatedVoiceConfigBuilder_; + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the replicatedVoiceConfig field is set. + */ + @java.lang.Override + public boolean hasReplicatedVoiceConfig() { + return voiceConfigCase_ == 3; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The replicatedVoiceConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getReplicatedVoiceConfig() { + if (replicatedVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance(); + } else { + if (voiceConfigCase_ == 3) { + return replicatedVoiceConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReplicatedVoiceConfig( + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig value) { + if (replicatedVoiceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + voiceConfig_ = value; + onChanged(); + } else { + replicatedVoiceConfigBuilder_.setMessage(value); + } + voiceConfigCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReplicatedVoiceConfig( + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder builderForValue) { + if (replicatedVoiceConfigBuilder_ == null) { + voiceConfig_ = builderForValue.build(); + onChanged(); + } else { + replicatedVoiceConfigBuilder_.setMessage(builderForValue.build()); + } + voiceConfigCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeReplicatedVoiceConfig( + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig value) { + if (replicatedVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 3 + && voiceConfig_ + != com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance()) { + voiceConfig_ = + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.newBuilder( + (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + voiceConfig_ = value; + } + onChanged(); + } else { + if (voiceConfigCase_ == 3) { + replicatedVoiceConfigBuilder_.mergeFrom(value); + } else { + replicatedVoiceConfigBuilder_.setMessage(value); + } + } + voiceConfigCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReplicatedVoiceConfig() { + if (replicatedVoiceConfigBuilder_ == null) { + if (voiceConfigCase_ == 3) { + voiceConfigCase_ = 0; + voiceConfig_ = null; + onChanged(); + } + } else { + if (voiceConfigCase_ == 3) { + voiceConfigCase_ = 0; + voiceConfig_ = null; + } + replicatedVoiceConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder + getReplicatedVoiceConfigBuilder() { + return getReplicatedVoiceConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder + getReplicatedVoiceConfigOrBuilder() { + if ((voiceConfigCase_ == 3) && (replicatedVoiceConfigBuilder_ != null)) { + return replicatedVoiceConfigBuilder_.getMessageOrBuilder(); + } else { + if (voiceConfigCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_; + } + return com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The configuration for a replicated voice. This enables users to
+     * replicate a voice from an audio sample.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig, + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder> + getReplicatedVoiceConfigFieldBuilder() { + if (replicatedVoiceConfigBuilder_ == null) { + if (!(voiceConfigCase_ == 3)) { + voiceConfig_ = + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.getDefaultInstance(); + } + replicatedVoiceConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig, + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig.Builder, + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig) voiceConfig_, + getParentForChildren(), + isClean()); + voiceConfig_ = null; + } + voiceConfigCase_ = 3; + onChanged(); + return replicatedVoiceConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java index bccab5f42282..9a1fd49363c2 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VoiceConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface VoiceConfigOrBuilder * * *
-   * The configuration for the prebuilt voice to use.
+   * The configuration for a prebuilt voice.
    * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -41,7 +41,7 @@ public interface VoiceConfigOrBuilder * * *
-   * The configuration for the prebuilt voice to use.
+   * The configuration for a prebuilt voice.
    * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -54,7 +54,7 @@ public interface VoiceConfigOrBuilder * * *
-   * The configuration for the prebuilt voice to use.
+   * The configuration for a prebuilt voice.
    * 
* * .google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfig prebuilt_voice_config = 1; @@ -62,5 +62,52 @@ public interface VoiceConfigOrBuilder com.google.cloud.aiplatform.v1beta1.PrebuiltVoiceConfigOrBuilder getPrebuiltVoiceConfigOrBuilder(); + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the replicatedVoiceConfig field is set. + */ + boolean hasReplicatedVoiceConfig(); + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The replicatedVoiceConfig. + */ + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig getReplicatedVoiceConfig(); + + /** + * + * + *
+   * Optional. The configuration for a replicated voice. This enables users to
+   * replicate a voice from an audio sample.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfig replicated_voice_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ReplicatedVoiceConfigOrBuilder + getReplicatedVoiceConfigOrBuilder(); + com.google.cloud.aiplatform.v1beta1.VoiceConfig.VoiceConfigCase getVoiceConfigCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto index afca4d1ad7d8..a7cfac932f90 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/content.proto @@ -190,19 +190,62 @@ message PrebuiltVoiceConfig { optional string voice_name = 1; } -// The configuration for the voice to use. +// The configuration for the replicated voice to use. +message ReplicatedVoiceConfig { + // Optional. The mimetype of the voice sample. The only currently supported + // value is `audio/wav`. This represents 16-bit signed little-endian wav data, + // with a 24kHz sampling rate. `mime_type` will default to `audio/wav` if not + // set. + string mime_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The sample of the custom voice. + bytes voice_sample_audio = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Configuration for a voice. message VoiceConfig { // The configuration for the speaker to use. oneof voice_config { - // The configuration for the prebuilt voice to use. + // The configuration for a prebuilt voice. PrebuiltVoiceConfig prebuilt_voice_config = 1; + + // Optional. The configuration for a replicated voice. This enables users to + // replicate a voice from an audio sample. + ReplicatedVoiceConfig replicated_voice_config = 3 + [(google.api.field_behavior) = OPTIONAL]; } } -// The speech generation config. +// Configuration for a single speaker in a multi-speaker setup. +message SpeakerVoiceConfig { + // Required. The name of the speaker. This should be the same as the speaker + // name used in the prompt. + string speaker = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The configuration for the voice of this speaker. + VoiceConfig voice_config = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Configuration for a multi-speaker text-to-speech request. +message MultiSpeakerVoiceConfig { + // Required. A list of configurations for the voices of the speakers. Exactly + // two speaker voice configurations must be provided. + repeated SpeakerVoiceConfig speaker_voice_configs = 2 + [(google.api.field_behavior) = REQUIRED]; +} + + +// Configuration for speech generation. message SpeechConfig { - // The configuration for the speaker to use. + // The configuration for the voice to use. VoiceConfig voice_config = 1; + + // Optional. The language code (ISO 639-1) for the speech synthesis. + string language_code = 2 [(google.api.field_behavior) = OPTIONAL]; + + // The configuration for a multi-speaker text-to-speech request. + // This field is mutually exclusive with `voice_config`. + MultiSpeakerVoiceConfig multi_speaker_voice_config = 3; } // Config for image generation features. diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index 4ed88fd31d98..42fbeae165ea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -225,6 +225,10 @@ message DeployedModel { string shared_resources = 17 [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/DeploymentResourcePool" }]; + + // Optional. Resources for a full fine tuned model. + FullFineTunedResources full_fine_tuned_resources = 36 + [(google.api.field_behavior) = OPTIONAL]; } // Immutable. The ID of the DeployedModel. If not provided upon deployment, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto index 3b37af423ccd..b422d8ba914b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/feature_online_store.proto @@ -81,6 +81,11 @@ message FeatureOnlineStore { // Metadata of the Bigtable instance. Output only. BigtableMetadata bigtable_metadata = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The zone where the underlying Bigtable cluster for the primary + // Bigtable instance will be provisioned. Only the zone must be provided. + // For example, only "us-central1-a" should be provided. + string zone = 5 [(google.api.field_behavior) = OPTIONAL]; } // Optimized storage type diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto index 3b3774b6daf6..afcb059e53e0 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/machine_resources.proto @@ -91,6 +91,14 @@ message MachineSpec { (google.api.field_behavior) = IMMUTABLE, (google.api.field_behavior) = OPTIONAL ]; + + // Optional. Immutable. The minimum GPU driver version that this machine + // requires. For example, "535.104.06". If not specified, the default GPU + // driver version will be used by the underlying infrastructure. + string min_gpu_driver_version = 9 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; } // A description of resources that are dedicated to a DeployedModel or @@ -262,6 +270,42 @@ message BatchDedicatedResources { bool spot = 5 [(google.api.field_behavior) = OPTIONAL]; } +// Resources for an fft model. +message FullFineTunedResources { + // The type of deployment. + enum DeploymentType { + // Unspecified deployment type. + DEPLOYMENT_TYPE_UNSPECIFIED = 0; + + // Eval deployment type. + DEPLOYMENT_TYPE_EVAL = 1; + + // Prod deployment type. + DEPLOYMENT_TYPE_PROD = 2; + } + + // Required. The kind of deployment. + DeploymentType deployment_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The number of model inference units to use for this deployment. + // This can only be specified for DEPLOYMENT_TYPE_PROD. + // The following table lists the number of model inference units for different + // model types: + // * Gemini 2.5 Flash + // * Foundation FMIU: 25 + // * Expansion FMIU: 4 + // * Gemini 2.5 Pro + // * Foundation FMIU: 32 + // * Expansion FMIU: 16 + // * Veo 3.0 (undistilled) + // * Foundation FMIU: 63 + // * Expansion FMIU: 7 + // * Veo 3.0 (distilled) + // * Foundation FMIU: 30 + // * Expansion FMIU: 10 + int32 model_inference_unit_count = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // Statistics information about resource consumption. message ResourcesConsumed { // Output only. The number of replica hours used. Note that many replicas may diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto index 6e14c18facd0..85b43672ca7c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine.proto @@ -32,6 +32,10 @@ option java_outer_classname = "ReasoningEngineProto"; option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; +option (google.api.resource_definition) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}" +}; // ReasoningEngine configurations message ReasoningEngineSpec { @@ -48,8 +52,9 @@ message ReasoningEngineSpec { // Optional. The Cloud Storage URI of the `requirements.txt` file string requirements_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The Python version. Currently support 3.8, 3.9, 3.10, 3.11. - // If not specified, default value is 3.10. + // Optional. The Python version. Supported values + // are 3.9, 3.10, 3.11, 3.12, 3.13. If not specified, the default value + // is 3.10. string python_version = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -113,6 +118,38 @@ message ReasoningEngineSpec { ]; } + // Specifies the configuration for fetching source code from a Git + // repository that is managed by Developer Connect. This includes the + // repository, revision, and directory to use. + message DeveloperConnectConfig { + // Required. The Developer Connect Git repository link, formatted as + // `projects/*/locations/*/connections/*/gitRepositoryLink/*`. + string git_repository_link = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + + // Required. Directory, relative to the source root, in which to run the + // build. + string dir = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The revision to fetch from the Git repository such as a + // branch, a tag, a commit SHA, or any Git ref. + string revision = 3 [(google.api.field_behavior) = REQUIRED]; + } + + // Specifies source code to be fetched from a Git repository managed through + // the Developer Connect service. + message DeveloperConnectSource { + // Required. The Developer Connect configuration that defines the + // specific repository, revision, and directory to use as the source code + // root. + DeveloperConnectConfig config = 1 + [(google.api.field_behavior) = REQUIRED]; + } + // Specification for running a Python application from source. message PythonSpec { // Optional. The version of Python to use. Support version @@ -142,6 +179,9 @@ message ReasoningEngineSpec { oneof source { // Source code is provided directly in the request. InlineSource inline_source = 1; + + // Source code is in a Git repository managed by Developer Connect. + DeveloperConnectSource developer_connect_source = 3; } // Specifies the language-specific configuration for building and running diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto index 5c5fd3766d7a..d434a57e5823 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/vertex_rag_data.proto @@ -201,6 +201,15 @@ message RagVectorDbConfig { string index = 2; } + // The config for the RAG-managed Vertex Vector Search 2.0. + message RagManagedVertexVectorSearch { + // Output only. The resource name of the Vector Search 2.0 Collection that + // RAG Created for the corpus. Only populated after the corpus is + // successfully created. Format: + // `projects/{project}/locations/{location}/collections/{collection_id}` + string collection_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // The config for the Vector DB. oneof vector_db { // The config for the RAG-managed Vector DB. @@ -217,6 +226,9 @@ message RagVectorDbConfig { // The config for the Vertex Vector Search. VertexVectorSearch vertex_vector_search = 6; + + // The config for the RAG-managed Vertex Vector Search 2.0. + RagManagedVertexVectorSearch rag_managed_vertex_vector_search = 8; } // Authentication config for the chosen Vector DB. @@ -371,6 +383,9 @@ message RagCorpus { CorpusStatus corpus_status = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Number of RagFiles in the RagCorpus. + // + // NOTE: This field is not populated in the response of + // [VertexRagDataService.ListRagCorpora][google.cloud.aiplatform.v1beta1.VertexRagDataService.ListRagCorpora]. int32 rag_files_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Immutable. The CMEK key name used to encrypt at-rest data related @@ -385,6 +400,12 @@ message RagCorpus { // Optional. The corpus type config of the RagCorpus. CorpusTypeConfig corpus_type_config = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Reserved for future use. + bool satisfies_pzs = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Reserved for future use. + bool satisfies_pzi = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A RagFile contains user data for chunking, embedding and indexing. @@ -463,7 +484,7 @@ message RagFile { // Output only. State of the RagFile. FileStatus file_status = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The metadata for metadata search. The contents will be + // Output only. The metadata for metadata search. The user_metadata Needs to // be in JSON format. string user_metadata = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -604,13 +625,13 @@ message RagFileMetadataConfig { // well as entire Google Cloud Storage directories. Sample formats: // - `gs://bucket_name/my_directory/object_name/metadata_schema.json` // - `gs://bucket_name/my_directory` - // If providing a directory, the metadata schema will be read from + // If the user provides a directory, the metadata schema will be read from // the files that ends with "metadata_schema.json" in the directory. GcsSource gcs_metadata_schema_source = 1; // Google Drive location. Supports importing individual files as // well as Google Drive folders. - // If providing a folder, the metadata schema will be read from + // If the user provides a folder, the metadata schema will be read from // the files that ends with "metadata_schema.json" in the directory. GoogleDriveSource google_drive_metadata_schema_source = 2; @@ -624,13 +645,13 @@ message RagFileMetadataConfig { // well as entire Google Cloud Storage directories. Sample formats: // - `gs://bucket_name/my_directory/object_name/metadata.json` // - `gs://bucket_name/my_directory` - // If providing a directory, the metadata will be read from + // If the user provides a directory, the metadata will be read from // the files that ends with "metadata.json" in the directory. GcsSource gcs_metadata_source = 4; // Google Drive location. Supports importing individual files as // well as Google Drive folders. - // If providing a directory, the metadata will be read from + // If the user provides a directory, the metadata will be read from // the files that ends with "metadata.json" in the directory. GoogleDriveSource google_drive_metadata_source = 5; @@ -758,7 +779,6 @@ message ImportRagFilesConfig { // Configuration message for RagManagedDb used by RagEngine. message RagManagedDbConfig { - // Deprecated: Please use `Scaled` tier instead. // Enterprise tier offers production grade performance along with // autoscaling functionality. It is suitable for customers with large // amounts of data or performance sensitive workloads. @@ -791,12 +811,11 @@ message RagManagedDbConfig { // The tier of the RagManagedDb. oneof tier { - // Deprecated: Please use `Scaled` tier instead. - // Sets the RagManagedDb to the Enterprise tier. This is the default tier - // if not explicitly chosen. + // Sets the RagManagedDb to the Enterprise tier. Enterprise enterprise = 1 [deprecated = true]; - // Sets the RagManagedDb to the Scaled tier. + // Sets the RagManagedDb to the Scaled tier. This is the default tier + // if not explicitly chosen. Scaled scaled = 4; // Sets the RagManagedDb to the Basic tier. diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index 6ce24f28158b..1233947b86b3 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.56.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.56.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.58.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.58.0 [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 diff --git a/java-alloydb/README.md b/java-alloydb/README.md index a989795b8e78..62081a6baa45 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.67.0 + 0.69.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.67.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.69.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.69.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.69.0 [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 diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 09099ac25c9e..45831e5c49cb 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.88.0 + 0.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.88.0' +implementation 'com.google.analytics:google-analytics-admin:0.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.88.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.90.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.90.0 [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 diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index e0c0ad4f73dc..e889ba4df7e3 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.89.0 + 0.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.89.0' +implementation 'com.google.analytics:google-analytics-data:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.89.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.91.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.91.0 [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 diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index 1969433ddd67..f59b67b6498b 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.75.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.75.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.77.0 [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 diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index 706af3f75a38..030f7adac0c1 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.78.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.80.0 [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 diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index 7c98cc5dfcce..a2b7c90129b3 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.78.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.80.0 [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 diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index 19998999e7c7..624e46924766 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-registry - 0.78.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-registry:0.78.0' +implementation 'com.google.cloud:google-cloud-apigee-registry:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-registry" % "0.80.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-apigee-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-registry/0.80.0 [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 diff --git a/java-apihub/README.md b/java-apihub/README.md index b140e53d8088..dfd5f982d851 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.31.0 + 0.33.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.31.0' +implementation 'com.google.cloud:google-cloud-apihub:0.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.33.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.31.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.33.0 [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 diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 65e7d98ebca7..588502191f68 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.76.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.76.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.78.0 [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 diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index 6b60a959e928..f9cc85174b66 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.78.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.80.0 [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 diff --git a/java-apphub/README.md b/java-apphub/README.md index fd1687b2e261..424d4376ec02 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.42.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.42.0' +implementation 'com.google.cloud:google-cloud-apphub:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.44.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.44.0 [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 diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index 633fc753f297..a8e728c07662 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.82.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.82.0' +implementation 'com.google.area120:google-area120-tables:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.82.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.84.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.area120/google-area120-tables.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.84.0 [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 diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index 8538d3a0c1ef..b4138a223506 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.77.0 + 1.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.77.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.79.0 [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 diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java index 9e0f440385f9..8e89e8c211df 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClient.java @@ -1004,6 +1004,21 @@ * * * + *

ExportArtifact + *

Exports an artifact. + * + *

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

+ *
    + *
  • exportArtifactAsync(ExportArtifactRequest request) + *

+ *

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

+ *
    + *
  • exportArtifactOperationCallable() + *

  • exportArtifactCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -6983,6 +6998,96 @@ public final UnaryCallable deleteAttachmentC return stub.deleteAttachmentCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports an artifact. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ExportArtifactRequest request =
+   *       ExportArtifactRequest.newBuilder()
+   *           .setRepository(
+   *               RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .build();
+   *   ExportArtifactResponse response = artifactRegistryClient.exportArtifactAsync(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 exportArtifactAsync( + ExportArtifactRequest request) { + return exportArtifactOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports an artifact. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ExportArtifactRequest request =
+   *       ExportArtifactRequest.newBuilder()
+   *           .setRepository(
+   *               RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       artifactRegistryClient.exportArtifactOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportArtifactResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata> + exportArtifactOperationCallable() { + return stub.exportArtifactOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports an artifact. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) {
+   *   ExportArtifactRequest request =
+   *       ExportArtifactRequest.newBuilder()
+   *           .setRepository(
+   *               RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       artifactRegistryClient.exportArtifactCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable exportArtifactCallable() { + return stub.exportArtifactCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java index 8c363d34abb3..83b9f42d2e0f 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistrySettings.java @@ -466,6 +466,18 @@ public UnaryCallSettings deleteAttachmentSet return ((ArtifactRegistryStubSettings) getStubSettings()).deleteAttachmentOperationSettings(); } + /** Returns the object with the settings used for calls to exportArtifact. */ + public UnaryCallSettings exportArtifactSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).exportArtifactSettings(); + } + + /** Returns the object with the settings used for calls to exportArtifact. */ + public OperationCallSettings< + ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata> + exportArtifactOperationSettings() { + return ((ArtifactRegistryStubSettings) getStubSettings()).exportArtifactOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -930,6 +942,18 @@ public UnaryCallSettings.Builder getAttachment return getStubSettingsBuilder().deleteAttachmentOperationSettings(); } + /** Returns the builder for the settings used for calls to exportArtifact. */ + public UnaryCallSettings.Builder exportArtifactSettings() { + return getStubSettingsBuilder().exportArtifactSettings(); + } + + /** Returns the builder for the settings used for calls to exportArtifact. */ + public OperationCallSettings.Builder< + ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata> + exportArtifactOperationSettings() { + return getStubSettingsBuilder().exportArtifactOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json index 8fa82a3cfce5..c166d531bab3 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/gapic_metadata.json @@ -46,6 +46,9 @@ "DeleteVersion": { "methods": ["deleteVersionAsync", "deleteVersionAsync", "deleteVersionOperationCallable", "deleteVersionCallable"] }, + "ExportArtifact": { + "methods": ["exportArtifactAsync", "exportArtifactOperationCallable", "exportArtifactCallable"] + }, "GetAttachment": { "methods": ["getAttachment", "getAttachment", "getAttachment", "getAttachmentCallable"] }, diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java index ef5b390ecfbd..5c7616cd9e65 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStub.java @@ -51,6 +51,9 @@ import com.google.devtools.artifactregistry.v1.DeleteTagRequest; import com.google.devtools.artifactregistry.v1.DeleteVersionRequest; import com.google.devtools.artifactregistry.v1.DockerImage; +import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata; +import com.google.devtools.artifactregistry.v1.ExportArtifactRequest; +import com.google.devtools.artifactregistry.v1.ExportArtifactResponse; import com.google.devtools.artifactregistry.v1.File; import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; import com.google.devtools.artifactregistry.v1.GetDockerImageRequest; @@ -446,6 +449,15 @@ public UnaryCallable deleteAttachmentCallabl throw new UnsupportedOperationException("Not implemented: deleteAttachmentCallable()"); } + public OperationCallable + exportArtifactOperationCallable() { + throw new UnsupportedOperationException("Not implemented: exportArtifactOperationCallable()"); + } + + public UnaryCallable exportArtifactCallable() { + throw new UnsupportedOperationException("Not implemented: exportArtifactCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java index 1f4819fc006e..b8da51785cc5 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/ArtifactRegistryStubSettings.java @@ -82,6 +82,9 @@ import com.google.devtools.artifactregistry.v1.DeleteTagRequest; import com.google.devtools.artifactregistry.v1.DeleteVersionRequest; import com.google.devtools.artifactregistry.v1.DockerImage; +import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata; +import com.google.devtools.artifactregistry.v1.ExportArtifactRequest; +import com.google.devtools.artifactregistry.v1.ExportArtifactResponse; import com.google.devtools.artifactregistry.v1.File; import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; import com.google.devtools.artifactregistry.v1.GetDockerImageRequest; @@ -336,6 +339,10 @@ public class ArtifactRegistryStubSettings extends StubSettings deleteAttachmentSettings; private final OperationCallSettings deleteAttachmentOperationSettings; + private final UnaryCallSettings exportArtifactSettings; + private final OperationCallSettings< + ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata> + exportArtifactOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1312,6 +1319,18 @@ public UnaryCallSettings deleteAttachmentSet return deleteAttachmentOperationSettings; } + /** Returns the object with the settings used for calls to exportArtifact. */ + public UnaryCallSettings exportArtifactSettings() { + return exportArtifactSettings; + } + + /** Returns the object with the settings used for calls to exportArtifact. */ + public OperationCallSettings< + ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata> + exportArtifactOperationSettings() { + return exportArtifactOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1496,6 +1515,8 @@ protected ArtifactRegistryStubSettings(Builder settingsBuilder) throws IOExcepti createAttachmentOperationSettings = settingsBuilder.createAttachmentOperationSettings().build(); deleteAttachmentSettings = settingsBuilder.deleteAttachmentSettings().build(); deleteAttachmentOperationSettings = settingsBuilder.deleteAttachmentOperationSettings().build(); + exportArtifactSettings = settingsBuilder.exportArtifactSettings().build(); + exportArtifactOperationSettings = settingsBuilder.exportArtifactOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -1615,6 +1636,11 @@ public static class Builder extends StubSettings.Builder deleteAttachmentOperationSettings; + private final UnaryCallSettings.Builder + exportArtifactSettings; + private final OperationCallSettings.Builder< + ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata> + exportArtifactOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1712,6 +1738,8 @@ protected Builder(ClientContext clientContext) { createAttachmentOperationSettings = OperationCallSettings.newBuilder(); deleteAttachmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteAttachmentOperationSettings = OperationCallSettings.newBuilder(); + exportArtifactSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportArtifactOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1766,6 +1794,7 @@ protected Builder(ClientContext clientContext) { getAttachmentSettings, createAttachmentSettings, deleteAttachmentSettings, + exportArtifactSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1836,6 +1865,8 @@ protected Builder(ArtifactRegistryStubSettings settings) { createAttachmentOperationSettings = settings.createAttachmentOperationSettings.toBuilder(); deleteAttachmentSettings = settings.deleteAttachmentSettings.toBuilder(); deleteAttachmentOperationSettings = settings.deleteAttachmentOperationSettings.toBuilder(); + exportArtifactSettings = settings.exportArtifactSettings.toBuilder(); + exportArtifactOperationSettings = settings.exportArtifactOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1890,6 +1921,7 @@ protected Builder(ArtifactRegistryStubSettings settings) { getAttachmentSettings, createAttachmentSettings, deleteAttachmentSettings, + exportArtifactSettings, listLocationsSettings, getLocationSettings); } @@ -2164,6 +2196,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder + .exportArtifactSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -2418,6 +2455,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .exportArtifactOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ExportArtifactResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(ExportArtifactMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -2777,6 +2838,18 @@ public UnaryCallSettings.Builder getAttachment return deleteAttachmentOperationSettings; } + /** Returns the builder for the settings used for calls to exportArtifact. */ + public UnaryCallSettings.Builder exportArtifactSettings() { + return exportArtifactSettings; + } + + /** Returns the builder for the settings used for calls to exportArtifact. */ + public OperationCallSettings.Builder< + ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata> + exportArtifactOperationSettings() { + return exportArtifactOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java index 80cddd9b2269..0876fdd7bf41 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/GrpcArtifactRegistryStub.java @@ -56,6 +56,9 @@ import com.google.devtools.artifactregistry.v1.DeleteTagRequest; import com.google.devtools.artifactregistry.v1.DeleteVersionRequest; import com.google.devtools.artifactregistry.v1.DockerImage; +import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata; +import com.google.devtools.artifactregistry.v1.ExportArtifactRequest; +import com.google.devtools.artifactregistry.v1.ExportArtifactResponse; import com.google.devtools.artifactregistry.v1.File; import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; import com.google.devtools.artifactregistry.v1.GetDockerImageRequest; @@ -683,6 +686,18 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + exportArtifactMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/ExportArtifact") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportArtifactRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -803,6 +818,10 @@ public class GrpcArtifactRegistryStub extends ArtifactRegistryStub { private final UnaryCallable deleteAttachmentCallable; private final OperationCallable deleteAttachmentOperationCallable; + private final UnaryCallable exportArtifactCallable; + private final OperationCallable< + ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata> + exportArtifactOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1354,6 +1373,16 @@ protected GrpcArtifactRegistryStub( return builder.build(); }) .build(); + GrpcCallSettings exportArtifactTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportArtifactMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("repository", String.valueOf(request.getRepository())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -1637,6 +1666,15 @@ protected GrpcArtifactRegistryStub( settings.deleteAttachmentOperationSettings(), clientContext, operationsStub); + this.exportArtifactCallable = + callableFactory.createUnaryCallable( + exportArtifactTransportSettings, settings.exportArtifactSettings(), clientContext); + this.exportArtifactOperationCallable = + callableFactory.createOperationCallable( + exportArtifactTransportSettings, + settings.exportArtifactOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2029,6 +2067,17 @@ public UnaryCallable deleteAttachmentCallabl return deleteAttachmentOperationCallable; } + @Override + public UnaryCallable exportArtifactCallable() { + return exportArtifactCallable; + } + + @Override + public OperationCallable + exportArtifactOperationCallable() { + return exportArtifactOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java index 0677da759fb8..553fff1a7d1a 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/HttpJsonArtifactRegistryStub.java @@ -65,6 +65,9 @@ import com.google.devtools.artifactregistry.v1.DeleteTagRequest; import com.google.devtools.artifactregistry.v1.DeleteVersionRequest; import com.google.devtools.artifactregistry.v1.DockerImage; +import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata; +import com.google.devtools.artifactregistry.v1.ExportArtifactRequest; +import com.google.devtools.artifactregistry.v1.ExportArtifactResponse; import com.google.devtools.artifactregistry.v1.File; import com.google.devtools.artifactregistry.v1.GetAttachmentRequest; import com.google.devtools.artifactregistry.v1.GetDockerImageRequest; @@ -154,12 +157,14 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { TypeRegistry.newBuilder() .add(BatchDeleteVersionsMetadata.getDescriptor()) .add(Attachment.getDescriptor()) + .add(ExportArtifactResponse.getDescriptor()) .add(Empty.getDescriptor()) .add(ImportYumArtifactsResponse.getDescriptor()) .add(ImportAptArtifactsResponse.getDescriptor()) .add(ImportYumArtifactsMetadata.getDescriptor()) .add(ImportAptArtifactsMetadata.getDescriptor()) .add(Repository.getDescriptor()) + .add(ExportArtifactMetadata.getDescriptor()) .add(OperationMetadata.getDescriptor()) .build(); @@ -1982,6 +1987,47 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + exportArtifactMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.devtools.artifactregistry.v1.ArtifactRegistry/ExportArtifact") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{repository=projects/*/locations/*/repositories/*}:exportArtifact", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "repository", request.getRepository()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearRepository().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportArtifactRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2149,6 +2195,10 @@ public class HttpJsonArtifactRegistryStub extends ArtifactRegistryStub { private final UnaryCallable deleteAttachmentCallable; private final OperationCallable deleteAttachmentOperationCallable; + private final UnaryCallable exportArtifactCallable; + private final OperationCallable< + ExportArtifactRequest, ExportArtifactResponse, ExportArtifactMetadata> + exportArtifactOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -2761,6 +2811,17 @@ protected HttpJsonArtifactRegistryStub( return builder.build(); }) .build(); + HttpJsonCallSettings exportArtifactTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportArtifactMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("repository", String.valueOf(request.getRepository())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -3047,6 +3108,15 @@ protected HttpJsonArtifactRegistryStub( settings.deleteAttachmentOperationSettings(), clientContext, httpJsonOperationsStub); + this.exportArtifactCallable = + callableFactory.createUnaryCallable( + exportArtifactTransportSettings, settings.exportArtifactSettings(), clientContext); + this.exportArtifactOperationCallable = + callableFactory.createOperationCallable( + exportArtifactTransportSettings, + settings.exportArtifactOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -3113,6 +3183,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getAttachmentMethodDescriptor); methodDescriptors.add(createAttachmentMethodDescriptor); methodDescriptors.add(deleteAttachmentMethodDescriptor); + methodDescriptors.add(exportArtifactMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -3496,6 +3567,17 @@ public UnaryCallable deleteAttachmentCallabl return deleteAttachmentOperationCallable; } + @Override + public UnaryCallable exportArtifactCallable() { + return exportArtifactCallable; + } + + @Override + public OperationCallable + exportArtifactOperationCallable() { + return exportArtifactOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json b/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json index b454f9ed8499..cc4a674fa6d2 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/resources/META-INF/native-image/com.google.devtools.artifactregistry.v1/reflect-config.json @@ -854,6 +854,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.ExportArtifactMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ExportArtifactMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ExportArtifactMetadata$ExportedFile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ExportArtifactMetadata$ExportedFile$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ExportArtifactRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ExportArtifactRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ExportArtifactResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ExportArtifactResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.File", "queryAllDeclaredConstructors": true, @@ -1169,6 +1241,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.devtools.artifactregistry.v1.ImageManifest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.devtools.artifactregistry.v1.ImageManifest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.devtools.artifactregistry.v1.ImportAptArtifactsErrorInfo", "queryAllDeclaredConstructors": true, diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java index b4ffd55bc3e2..fa3f18e4bb3b 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientHttpJsonTest.java @@ -173,6 +173,8 @@ public void getDockerImageTest() throws Exception { .setMediaType("mediaType2140463422") .setBuildTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setArtifactType("artifactType-672214996") + .addAllImageManifests(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -228,6 +230,8 @@ public void getDockerImageTest2() throws Exception { .setMediaType("mediaType2140463422") .setBuildTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setArtifactType("artifactType-672214996") + .addAllImageManifests(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -2583,7 +2587,12 @@ public void listTagsExceptionTest() throws Exception { @Test public void getTagTest() throws Exception { Tag expectedResponse = - Tag.newBuilder().setName("name3373707").setVersion("version351608024").build(); + Tag.newBuilder() + .setName( + TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]") + .toString()) + .setVersion("version351608024") + .build(); mockService.addResponse(expectedResponse); String name = @@ -2627,7 +2636,12 @@ public void getTagExceptionTest() throws Exception { @Test public void createTagTest() throws Exception { Tag expectedResponse = - Tag.newBuilder().setName("name3373707").setVersion("version351608024").build(); + Tag.newBuilder() + .setName( + TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]") + .toString()) + .setVersion("version351608024") + .build(); mockService.addResponse(expectedResponse); String parent = @@ -2675,13 +2689,19 @@ public void createTagExceptionTest() throws Exception { @Test public void updateTagTest() throws Exception { Tag expectedResponse = - Tag.newBuilder().setName("name3373707").setVersion("version351608024").build(); + Tag.newBuilder() + .setName( + TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]") + .toString()) + .setVersion("version351608024") + .build(); mockService.addResponse(expectedResponse); Tag tag = Tag.newBuilder() .setName( - "projects/project-5748/locations/location-5748/repositories/repositorie-5748/packages/package-5748/tags/tag-5748") + TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]") + .toString()) .setVersion("version351608024") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2715,7 +2735,8 @@ public void updateTagExceptionTest() throws Exception { Tag tag = Tag.newBuilder() .setName( - "projects/project-5748/locations/location-5748/repositories/repositorie-5748/packages/package-5748/tags/tag-5748") + TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]") + .toString()) .setVersion("version351608024") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4150,6 +4171,62 @@ public void deleteAttachmentExceptionTest2() throws Exception { } } + @Test + public void exportArtifactTest() throws Exception { + ExportArtifactResponse expectedResponse = + ExportArtifactResponse.newBuilder() + .setExportedVersion(Version.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportArtifactTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ExportArtifactRequest request = + ExportArtifactRequest.newBuilder() + .setRepository(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + + ExportArtifactResponse actualResponse = client.exportArtifactAsync(request).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 exportArtifactExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ExportArtifactRequest request = + ExportArtifactRequest.newBuilder() + .setRepository( + RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + client.exportArtifactAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java index 96f80af4081e..80a2c83ad2f1 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryClientTest.java @@ -174,6 +174,8 @@ public void getDockerImageTest() throws Exception { .setMediaType("mediaType2140463422") .setBuildTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setArtifactType("artifactType-672214996") + .addAllImageManifests(new ArrayList()) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -223,6 +225,8 @@ public void getDockerImageTest2() throws Exception { .setMediaType("mediaType2140463422") .setBuildTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setArtifactType("artifactType-672214996") + .addAllImageManifests(new ArrayList()) .build(); mockArtifactRegistry.addResponse(expectedResponse); @@ -2249,7 +2253,12 @@ public void listTagsExceptionTest() throws Exception { @Test public void getTagTest() throws Exception { Tag expectedResponse = - Tag.newBuilder().setName("name3373707").setVersion("version351608024").build(); + Tag.newBuilder() + .setName( + TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]") + .toString()) + .setVersion("version351608024") + .build(); mockArtifactRegistry.addResponse(expectedResponse); String name = "name3373707"; @@ -2285,7 +2294,12 @@ public void getTagExceptionTest() throws Exception { @Test public void createTagTest() throws Exception { Tag expectedResponse = - Tag.newBuilder().setName("name3373707").setVersion("version351608024").build(); + Tag.newBuilder() + .setName( + TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]") + .toString()) + .setVersion("version351608024") + .build(); mockArtifactRegistry.addResponse(expectedResponse); String parent = "parent-995424086"; @@ -2327,7 +2341,12 @@ public void createTagExceptionTest() throws Exception { @Test public void updateTagTest() throws Exception { Tag expectedResponse = - Tag.newBuilder().setName("name3373707").setVersion("version351608024").build(); + Tag.newBuilder() + .setName( + TagName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[PACKAGE]", "[TAG]") + .toString()) + .setVersion("version351608024") + .build(); mockArtifactRegistry.addResponse(expectedResponse); Tag tag = Tag.newBuilder().build(); @@ -3598,6 +3617,62 @@ public void deleteAttachmentExceptionTest2() throws Exception { } } + @Test + public void exportArtifactTest() throws Exception { + ExportArtifactResponse expectedResponse = + ExportArtifactResponse.newBuilder() + .setExportedVersion(Version.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportArtifactTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockArtifactRegistry.addResponse(resultOperation); + + ExportArtifactRequest request = + ExportArtifactRequest.newBuilder() + .setRepository(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + + ExportArtifactResponse actualResponse = client.exportArtifactAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockArtifactRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportArtifactRequest actualRequest = ((ExportArtifactRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getSourceVersion(), actualRequest.getSourceVersion()); + Assert.assertEquals(request.getSourceTag(), actualRequest.getSourceTag()); + Assert.assertEquals(request.getGcsPath(), actualRequest.getGcsPath()); + Assert.assertEquals(request.getRepository(), actualRequest.getRepository()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportArtifactExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockArtifactRegistry.addException(exception); + + try { + ExportArtifactRequest request = + ExportArtifactRequest.newBuilder() + .setRepository( + RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + client.exportArtifactAsync(request).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 listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java index 66306ccd48f6..76cd7a1905e4 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/test/java/com/google/devtools/artifactregistry/v1/MockArtifactRegistryImpl.java @@ -1081,4 +1081,25 @@ public void deleteAttachment( Exception.class.getName()))); } } + + @Override + public void exportArtifact( + ExportArtifactRequest 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 ExportArtifact, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java index cc2e67b68404..8602a9185fe0 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactRegistryGrpc.java @@ -2304,6 +2304,52 @@ private ArtifactRegistryGrpc() {} return getDeleteAttachmentMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.ExportArtifactRequest, + com.google.longrunning.Operation> + getExportArtifactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportArtifact", + requestType = com.google.devtools.artifactregistry.v1.ExportArtifactRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.ExportArtifactRequest, + com.google.longrunning.Operation> + getExportArtifactMethod() { + io.grpc.MethodDescriptor< + com.google.devtools.artifactregistry.v1.ExportArtifactRequest, + com.google.longrunning.Operation> + getExportArtifactMethod; + if ((getExportArtifactMethod = ArtifactRegistryGrpc.getExportArtifactMethod) == null) { + synchronized (ArtifactRegistryGrpc.class) { + if ((getExportArtifactMethod = ArtifactRegistryGrpc.getExportArtifactMethod) == null) { + ArtifactRegistryGrpc.getExportArtifactMethod = + getExportArtifactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportArtifact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.devtools.artifactregistry.v1.ExportArtifactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ArtifactRegistryMethodDescriptorSupplier("ExportArtifact")) + .build(); + } + } + } + return getExportArtifactMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ArtifactRegistryStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -3098,6 +3144,20 @@ default void deleteAttachment( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeleteAttachmentMethod(), responseObserver); } + + /** + * + * + *
+     * Exports an artifact.
+     * 
+ */ + default void exportArtifact( + com.google.devtools.artifactregistry.v1.ExportArtifactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportArtifactMethod(), responseObserver); + } } /** @@ -3956,6 +4016,22 @@ public void deleteAttachment( request, responseObserver); } + + /** + * + * + *
+     * Exports an artifact.
+     * 
+ */ + public void exportArtifact( + com.google.devtools.artifactregistry.v1.ExportArtifactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportArtifactMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -4686,6 +4762,20 @@ public com.google.longrunning.Operation deleteAttachment( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getDeleteAttachmentMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Exports an artifact.
+     * 
+ */ + public com.google.longrunning.Operation exportArtifact( + com.google.devtools.artifactregistry.v1.ExportArtifactRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExportArtifactMethod(), getCallOptions(), request); + } } /** @@ -5367,6 +5457,19 @@ public com.google.longrunning.Operation deleteAttachment( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAttachmentMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Exports an artifact.
+     * 
+ */ + public com.google.longrunning.Operation exportArtifact( + com.google.devtools.artifactregistry.v1.ExportArtifactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportArtifactMethod(), getCallOptions(), request); + } } /** @@ -6093,6 +6196,19 @@ public com.google.common.util.concurrent.ListenableFuture + * Exports an artifact. + *
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportArtifact(com.google.devtools.artifactregistry.v1.ExportArtifactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportArtifactMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_DOCKER_IMAGES = 0; @@ -6144,6 +6260,7 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -6453,6 +6570,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXPORT_ARTIFACT: + serviceImpl.exportArtifact( + (com.google.devtools.artifactregistry.v1.ExportArtifactRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -6790,6 +6912,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.devtools.artifactregistry.v1.DeleteAttachmentRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_ATTACHMENT))) + .addMethod( + getExportArtifactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.devtools.artifactregistry.v1.ExportArtifactRequest, + com.google.longrunning.Operation>(service, METHODID_EXPORT_ARTIFACT))) .build(); } @@ -6890,6 +7018,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetAttachmentMethod()) .addMethod(getCreateAttachmentMethod()) .addMethod(getDeleteAttachmentMethod()) + .addMethod(getExportArtifactMethod()) .build(); } } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactProto.java index 716e601d6a89..aff030fc7d82 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ArtifactProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_artifactregistry_v1_DockerImage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_artifactregistry_v1_DockerImage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_ImageManifest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -104,7 +108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "2google/devtools/artifactregistry/v1/artifact.proto\022#google.devtools.artifactre" + "gistry.v1\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\230\003\n" + + "to\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\201\004\n" + "\013DockerImage\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\020\n" + "\003uri\030\002 \001(\tB\003\340A\002\022\014\n" @@ -114,22 +118,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "media_type\030\006 \001(\t\022.\n\n" + "build_time\030\007 \001(\0132\032.google.protobuf.Timestamp\0224\n" + "\013update_time\030\010" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\220\001\352A\214\001\n" - + "+artifactregistry.googleapis.com/DockerImage\022]projects/{project}/l" - + "ocations/{location}/repositories/{repository}/dockerImages/{docker_image}\"g\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r" + + "artifact_type\030\t \001(\t\022P\n" + + "\017image_manifests\030\013" + + " \003(\01322.google.devtools.artifactregistry.v1.ImageManifestB\003\340A\001:\220\001\352A\214\001\n" + + "+artifactregistry.googleapis.com/DockerImage\022]projects/{project}/locations/{locat" + + "ion}/repositories/{repository}/dockerImages/{docker_image}\"\262\001\n\r" + + "ImageManifest\022\031\n" + + "\014architecture\030\001 \001(\tB\003\340A\001\022\017\n" + + "\002os\030\002 \001(\tB\003\340A\001\022\023\n" + + "\006digest\030\003 \001(\tB\003\340A\001\022\027\n\n" + + "media_type\030\004 \001(\tB\003\340A\001\022\027\n\n" + + "os_version\030\005 \001(\tB\003\340A\001\022\030\n" + + "\013os_features\030\006 \003(\tB\003\340A\001\022\024\n" + + "\007variant\030\007 \001(\tB\003\340A\001\"g\n" + "\027ListDockerImagesRequest\022\023\n" + "\006parent\030\001 \001(\tB\003\340A\002\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022\020\n" + "\010order_by\030\004 \001(\t\"|\n" + "\030ListDockerImagesResponse\022G\n\r" - + "docker_images\030\001 \003(\01320.google.d" - + "evtools.artifactregistry.v1.DockerImage\022\027\n" + + "docker_images\030\001 \003(\01320.go" + + "ogle.devtools.artifactregistry.v1.DockerImage\022\027\n" + "\017next_page_token\030\002 \001(\t\"Z\n" + "\025GetDockerImageRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+artifactregistry.googleapis.com/DockerImage\"\365\002\n" - + "\r" + + "+artifactregistry.googleapis.com/DockerImage\"\365\002\n\r" + "MavenArtifact\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\024\n" + "\007pom_uri\030\002 \001(\tB\003\340A\002\022\020\n" @@ -139,12 +153,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\007" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\226\001\352A\222\001\n" - + "-artifactregistry.googleapis.com/MavenArtifact\022aproje" - + "cts/{project}/locations/{location}/repos" - + "itories/{repository}/mavenArtifacts/{maven_artifact}\"\211\001\n" + + "-artifactregistry.googleapis.com/MavenArtifact\022" + + "aprojects/{project}/locations/{location}" + + "/repositories/{repository}/mavenArtifacts/{maven_artifact}\"\211\001\n" + "\031ListMavenArtifactsRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-artifactregistry.googleapis.com/MavenArtifact\022\021\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-artifa" + + "ctregistry.googleapis.com/MavenArtifact\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\202\001\n" + "\032ListMavenArtifactsResponse\022K\n" @@ -162,17 +176,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\007" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\215\001\352A\211\001\n" - + "*artifactregistry.googleapis.com/NpmPackage\022[projects/{p" - + "roject}/locations/{location}/repositorie" - + "s/{repository}/npmPackages/{npm_package}\"\203\001\n" + + "*artifactregistry.googleapis.com/NpmPackage\022[proje" + + "cts/{project}/locations/{location}/repos" + + "itories/{repository}/npmPackages/{npm_package}\"\203\001\n" + "\026ListNpmPackagesRequest\022B\n" + "\006parent\030\001 \001(" + "\tB2\340A\002\372A,\022*artifactregistry.googleapis.com/NpmPackage\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"y\n" + "\027ListNpmPackagesResponse\022E\n" - + "\014npm_packages\030\001" - + " \003(\0132/.google.devtools.artifactregistry.v1.NpmPackage\022\027\n" + + "\014npm_packages\030\001 \003(\0132/.google.d" + + "evtools.artifactregistry.v1.NpmPackage\022\027\n" + "\017next_page_token\030\002 \001(\t\"X\n" + "\024GetNpmPackageRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" @@ -183,13 +197,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014package_name\030\003 \001(\t\022\017\n" + "\007version\030\004 \001(\t\0224\n" + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\226\001\352A\222\001\n" - + "-artifactregistry.googleapis.com/PythonPackage\022aprojects/{project}/locations/{locat" - + "ion}/repositories/{repository}/pythonPackages/{python_package}\"\211\001\n" + + "\013update_time\030\007 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003:\226\001\352A\222\001\n" + + "-artifactregistry.googleapis.com/PythonPackage\022aprojects/{project}/locations/" + + "{location}/repositories/{repository}/pythonPackages/{python_package}\"\211\001\n" + "\031ListPythonPackagesRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-ar" - + "tifactregistry.googleapis.com/PythonPackage\022\021\n" + + "\006parent\030\001 \001(\tB5\340A\002\372" + + "A/\022-artifactregistry.googleapis.com/PythonPackage\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\202\001\n" + "\032ListPythonPackagesResponse\022K\n" @@ -200,10 +214,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-artifactregistry.googleapis.com/PythonPackageB\370\001\n" + "\'com.google.devtools.artifactregistry.v1B\r" - + "ArtifactProtoP\001ZPcloud.google.com/go/artifa" - + "ctregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002" - + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactRegistr" - + "y\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3" + + "ArtifactProtoP\001ZPcloud.google.com/go/" + + "artifactregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002" + + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactR" + + "egistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -227,9 +241,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MediaType", "BuildTime", "UpdateTime", + "ArtifactType", + "ImageManifests", }); - internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_descriptor = + internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor = getDescriptor().getMessageTypes().get(1); + internal_static_google_devtools_artifactregistry_v1_ImageManifest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor, + new java.lang.String[] { + "Architecture", "Os", "Digest", "MediaType", "OsVersion", "OsFeatures", "Variant", + }); + internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListDockerImagesRequest_descriptor, @@ -237,7 +261,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", }); internal_static_google_devtools_artifactregistry_v1_ListDockerImagesResponse_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(3); internal_static_google_devtools_artifactregistry_v1_ListDockerImagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListDockerImagesResponse_descriptor, @@ -245,7 +269,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DockerImages", "NextPageToken", }); internal_static_google_devtools_artifactregistry_v1_GetDockerImageRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(4); internal_static_google_devtools_artifactregistry_v1_GetDockerImageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_GetDockerImageRequest_descriptor, @@ -253,7 +277,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_devtools_artifactregistry_v1_MavenArtifact_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(5); internal_static_google_devtools_artifactregistry_v1_MavenArtifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_MavenArtifact_descriptor, @@ -261,7 +285,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PomUri", "GroupId", "ArtifactId", "Version", "CreateTime", "UpdateTime", }); internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsRequest_descriptor, @@ -269,7 +293,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListMavenArtifactsResponse_descriptor, @@ -277,7 +301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MavenArtifacts", "NextPageToken", }); internal_static_google_devtools_artifactregistry_v1_GetMavenArtifactRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_devtools_artifactregistry_v1_GetMavenArtifactRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_GetMavenArtifactRequest_descriptor, @@ -285,7 +309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_devtools_artifactregistry_v1_NpmPackage_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_devtools_artifactregistry_v1_NpmPackage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_NpmPackage_descriptor, @@ -293,7 +317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PackageName", "Version", "Tags", "CreateTime", "UpdateTime", }); internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesRequest_descriptor, @@ -301,7 +325,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListNpmPackagesResponse_descriptor, @@ -309,7 +333,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NpmPackages", "NextPageToken", }); internal_static_google_devtools_artifactregistry_v1_GetNpmPackageRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_devtools_artifactregistry_v1_GetNpmPackageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_GetNpmPackageRequest_descriptor, @@ -317,7 +341,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_devtools_artifactregistry_v1_PythonPackage_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_devtools_artifactregistry_v1_PythonPackage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_PythonPackage_descriptor, @@ -325,7 +349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Uri", "PackageName", "Version", "CreateTime", "UpdateTime", }); internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesRequest_descriptor, @@ -333,7 +357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_ListPythonPackagesResponse_descriptor, @@ -341,7 +365,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PythonPackages", "NextPageToken", }); internal_static_google_devtools_artifactregistry_v1_GetPythonPackageRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_devtools_artifactregistry_v1_GetPythonPackageRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_artifactregistry_v1_GetPythonPackageRequest_descriptor, diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImage.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImage.java index 2393e100d56b..8421e05251d8 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImage.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImage.java @@ -49,6 +49,8 @@ private DockerImage() { uri_ = ""; tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); mediaType_ = ""; + artifactType_ = ""; + imageManifests_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -84,7 +86,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. registry_location, project_id, repository_name and image id forms
    * a unique image
-   * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+   * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
    * For example,
    * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
    * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -117,7 +119,7 @@ public java.lang.String getName() {
    * 
    * Required. registry_location, project_id, repository_name and image id forms
    * a unique image
-   * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+   * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
    * For example,
    * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
    * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -511,6 +513,158 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
   }
 
+  public static final int ARTIFACT_TYPE_FIELD_NUMBER = 9;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object artifactType_ = "";
+
+  /**
+   *
+   *
+   * 
+   * ArtifactType of this image, e.g. "application/vnd.example+type".
+   * If the `subject_digest` is set and no `artifact_type` is given, the
+   * `media_type` will be considered as the `artifact_type`. This field is
+   * returned as the `metadata.artifactType` field in the Version resource.
+   * 
+ * + * string artifact_type = 9; + * + * @return The artifactType. + */ + @java.lang.Override + public java.lang.String getArtifactType() { + java.lang.Object ref = artifactType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactType_ = s; + return s; + } + } + + /** + * + * + *
+   * ArtifactType of this image, e.g. "application/vnd.example+type".
+   * If the `subject_digest` is set and no `artifact_type` is given, the
+   * `media_type` will be considered as the `artifact_type`. This field is
+   * returned as the `metadata.artifactType` field in the Version resource.
+   * 
+ * + * string artifact_type = 9; + * + * @return The bytes for artifactType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactTypeBytes() { + java.lang.Object ref = artifactType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_MANIFESTS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List imageManifests_; + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getImageManifestsList() { + return imageManifests_; + } + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getImageManifestsOrBuilderList() { + return imageManifests_; + } + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getImageManifestsCount() { + return imageManifests_.size(); + } + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ImageManifest getImageManifests(int index) { + return imageManifests_.get(index); + } + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder getImageManifestsOrBuilder( + int index) { + return imageManifests_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -549,6 +703,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getUpdateTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, artifactType_); + } + for (int i = 0; i < imageManifests_.size(); i++) { + output.writeMessage(11, imageManifests_.get(i)); + } getUnknownFields().writeTo(output); } @@ -587,6 +747,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, artifactType_); + } + for (int i = 0; i < imageManifests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, imageManifests_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -620,6 +786,8 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (!getArtifactType().equals(other.getArtifactType())) return false; + if (!getImageManifestsList().equals(other.getImageManifestsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -655,6 +823,12 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + ARTIFACT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getArtifactType().hashCode(); + if (getImageManifestsCount() > 0) { + hash = (37 * hash) + IMAGE_MANIFESTS_FIELD_NUMBER; + hash = (53 * hash) + getImageManifestsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -804,6 +978,7 @@ private void maybeForceBuilderInitialization() { getUploadTimeFieldBuilder(); getBuildTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getImageManifestsFieldBuilder(); } } @@ -831,6 +1006,14 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + artifactType_ = ""; + if (imageManifestsBuilder_ == null) { + imageManifests_ = java.util.Collections.emptyList(); + } else { + imageManifests_ = null; + imageManifestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); return this; } @@ -858,6 +1041,7 @@ public com.google.devtools.artifactregistry.v1.DockerImage build() { public com.google.devtools.artifactregistry.v1.DockerImage buildPartial() { com.google.devtools.artifactregistry.v1.DockerImage result = new com.google.devtools.artifactregistry.v1.DockerImage(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -865,6 +1049,19 @@ public com.google.devtools.artifactregistry.v1.DockerImage buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.devtools.artifactregistry.v1.DockerImage result) { + if (imageManifestsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + imageManifests_ = java.util.Collections.unmodifiableList(imageManifests_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.imageManifests_ = imageManifests_; + } else { + result.imageManifests_ = imageManifestsBuilder_.build(); + } + } + private void buildPartial0(com.google.devtools.artifactregistry.v1.DockerImage result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -896,6 +1093,9 @@ private void buildPartial0(com.google.devtools.artifactregistry.v1.DockerImage r result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.artifactType_ = artifactType_; + } result.bitField0_ |= to_bitField0_; } @@ -982,6 +1182,38 @@ public Builder mergeFrom(com.google.devtools.artifactregistry.v1.DockerImage oth if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (!other.getArtifactType().isEmpty()) { + artifactType_ = other.artifactType_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (imageManifestsBuilder_ == null) { + if (!other.imageManifests_.isEmpty()) { + if (imageManifests_.isEmpty()) { + imageManifests_ = other.imageManifests_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureImageManifestsIsMutable(); + imageManifests_.addAll(other.imageManifests_); + } + onChanged(); + } + } else { + if (!other.imageManifests_.isEmpty()) { + if (imageManifestsBuilder_.isEmpty()) { + imageManifestsBuilder_.dispose(); + imageManifestsBuilder_ = null; + imageManifests_ = other.imageManifests_; + bitField0_ = (bitField0_ & ~0x00000200); + imageManifestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getImageManifestsFieldBuilder() + : null; + } else { + imageManifestsBuilder_.addAllMessages(other.imageManifests_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1057,6 +1289,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: + { + artifactType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 90: + { + com.google.devtools.artifactregistry.v1.ImageManifest m = + input.readMessage( + com.google.devtools.artifactregistry.v1.ImageManifest.parser(), + extensionRegistry); + if (imageManifestsBuilder_ == null) { + ensureImageManifestsIsMutable(); + imageManifests_.add(m); + } else { + imageManifestsBuilder_.addMessage(m); + } + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1084,7 +1336,7 @@ public Builder mergeFrom( *
      * Required. registry_location, project_id, repository_name and image id forms
      * a unique image
-     * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+     * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
      * For example,
      * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
      * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -1116,7 +1368,7 @@ public java.lang.String getName() {
      * 
      * Required. registry_location, project_id, repository_name and image id forms
      * a unique image
-     * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+     * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
      * For example,
      * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
      * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -1148,7 +1400,7 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
      * Required. registry_location, project_id, repository_name and image id forms
      * a unique image
-     * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+     * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
      * For example,
      * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
      * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -1179,7 +1431,7 @@ public Builder setName(java.lang.String value) {
      * 
      * Required. registry_location, project_id, repository_name and image id forms
      * a unique image
-     * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+     * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
      * For example,
      * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
      * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -1206,7 +1458,7 @@ public Builder clearName() {
      * 
      * Required. registry_location, project_id, repository_name and image id forms
      * a unique image
-     * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+     * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
      * For example,
      * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
      * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -2356,6 +2608,567 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
       return updateTimeBuilder_;
     }
 
+    private java.lang.Object artifactType_ = "";
+
+    /**
+     *
+     *
+     * 
+     * ArtifactType of this image, e.g. "application/vnd.example+type".
+     * If the `subject_digest` is set and no `artifact_type` is given, the
+     * `media_type` will be considered as the `artifact_type`. This field is
+     * returned as the `metadata.artifactType` field in the Version resource.
+     * 
+ * + * string artifact_type = 9; + * + * @return The artifactType. + */ + public java.lang.String getArtifactType() { + java.lang.Object ref = artifactType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * ArtifactType of this image, e.g. "application/vnd.example+type".
+     * If the `subject_digest` is set and no `artifact_type` is given, the
+     * `media_type` will be considered as the `artifact_type`. This field is
+     * returned as the `metadata.artifactType` field in the Version resource.
+     * 
+ * + * string artifact_type = 9; + * + * @return The bytes for artifactType. + */ + public com.google.protobuf.ByteString getArtifactTypeBytes() { + java.lang.Object ref = artifactType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * ArtifactType of this image, e.g. "application/vnd.example+type".
+     * If the `subject_digest` is set and no `artifact_type` is given, the
+     * `media_type` will be considered as the `artifact_type`. This field is
+     * returned as the `metadata.artifactType` field in the Version resource.
+     * 
+ * + * string artifact_type = 9; + * + * @param value The artifactType to set. + * @return This builder for chaining. + */ + public Builder setArtifactType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * ArtifactType of this image, e.g. "application/vnd.example+type".
+     * If the `subject_digest` is set and no `artifact_type` is given, the
+     * `media_type` will be considered as the `artifact_type`. This field is
+     * returned as the `metadata.artifactType` field in the Version resource.
+     * 
+ * + * string artifact_type = 9; + * + * @return This builder for chaining. + */ + public Builder clearArtifactType() { + artifactType_ = getDefaultInstance().getArtifactType(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * ArtifactType of this image, e.g. "application/vnd.example+type".
+     * If the `subject_digest` is set and no `artifact_type` is given, the
+     * `media_type` will be considered as the `artifact_type`. This field is
+     * returned as the `metadata.artifactType` field in the Version resource.
+     * 
+ * + * string artifact_type = 9; + * + * @param value The bytes for artifactType to set. + * @return This builder for chaining. + */ + public Builder setArtifactTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List imageManifests_ = + java.util.Collections.emptyList(); + + private void ensureImageManifestsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + imageManifests_ = + new java.util.ArrayList( + imageManifests_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.ImageManifest, + com.google.devtools.artifactregistry.v1.ImageManifest.Builder, + com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder> + imageManifestsBuilder_; + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getImageManifestsList() { + if (imageManifestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(imageManifests_); + } else { + return imageManifestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getImageManifestsCount() { + if (imageManifestsBuilder_ == null) { + return imageManifests_.size(); + } else { + return imageManifestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devtools.artifactregistry.v1.ImageManifest getImageManifests(int index) { + if (imageManifestsBuilder_ == null) { + return imageManifests_.get(index); + } else { + return imageManifestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImageManifests( + int index, com.google.devtools.artifactregistry.v1.ImageManifest value) { + if (imageManifestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImageManifestsIsMutable(); + imageManifests_.set(index, value); + onChanged(); + } else { + imageManifestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImageManifests( + int index, com.google.devtools.artifactregistry.v1.ImageManifest.Builder builderForValue) { + if (imageManifestsBuilder_ == null) { + ensureImageManifestsIsMutable(); + imageManifests_.set(index, builderForValue.build()); + onChanged(); + } else { + imageManifestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addImageManifests(com.google.devtools.artifactregistry.v1.ImageManifest value) { + if (imageManifestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImageManifestsIsMutable(); + imageManifests_.add(value); + onChanged(); + } else { + imageManifestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addImageManifests( + int index, com.google.devtools.artifactregistry.v1.ImageManifest value) { + if (imageManifestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImageManifestsIsMutable(); + imageManifests_.add(index, value); + onChanged(); + } else { + imageManifestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addImageManifests( + com.google.devtools.artifactregistry.v1.ImageManifest.Builder builderForValue) { + if (imageManifestsBuilder_ == null) { + ensureImageManifestsIsMutable(); + imageManifests_.add(builderForValue.build()); + onChanged(); + } else { + imageManifestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addImageManifests( + int index, com.google.devtools.artifactregistry.v1.ImageManifest.Builder builderForValue) { + if (imageManifestsBuilder_ == null) { + ensureImageManifestsIsMutable(); + imageManifests_.add(index, builderForValue.build()); + onChanged(); + } else { + imageManifestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllImageManifests( + java.lang.Iterable + values) { + if (imageManifestsBuilder_ == null) { + ensureImageManifestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, imageManifests_); + onChanged(); + } else { + imageManifestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearImageManifests() { + if (imageManifestsBuilder_ == null) { + imageManifests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + imageManifestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeImageManifests(int index) { + if (imageManifestsBuilder_ == null) { + ensureImageManifestsIsMutable(); + imageManifests_.remove(index); + onChanged(); + } else { + imageManifestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devtools.artifactregistry.v1.ImageManifest.Builder getImageManifestsBuilder( + int index) { + return getImageManifestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder + getImageManifestsOrBuilder(int index) { + if (imageManifestsBuilder_ == null) { + return imageManifests_.get(index); + } else { + return imageManifestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getImageManifestsOrBuilderList() { + if (imageManifestsBuilder_ != null) { + return imageManifestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(imageManifests_); + } + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devtools.artifactregistry.v1.ImageManifest.Builder + addImageManifestsBuilder() { + return getImageManifestsFieldBuilder() + .addBuilder(com.google.devtools.artifactregistry.v1.ImageManifest.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.devtools.artifactregistry.v1.ImageManifest.Builder addImageManifestsBuilder( + int index) { + return getImageManifestsFieldBuilder() + .addBuilder( + index, com.google.devtools.artifactregistry.v1.ImageManifest.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. For multi-arch images (manifest lists), this field contains the
+     * list of image manifests.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getImageManifestsBuilderList() { + return getImageManifestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.ImageManifest, + com.google.devtools.artifactregistry.v1.ImageManifest.Builder, + com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder> + getImageManifestsFieldBuilder() { + if (imageManifestsBuilder_ == null) { + imageManifestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.ImageManifest, + com.google.devtools.artifactregistry.v1.ImageManifest.Builder, + com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder>( + imageManifests_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + imageManifests_ = null; + } + return imageManifestsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageOrBuilder.java index 7b3bdfafbd8b..181e87ad88e7 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/DockerImageOrBuilder.java @@ -30,7 +30,7 @@ public interface DockerImageOrBuilder *
    * Required. registry_location, project_id, repository_name and image id forms
    * a unique image
-   * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+   * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
    * For example,
    * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
    * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -52,7 +52,7 @@ public interface DockerImageOrBuilder
    * 
    * Required. registry_location, project_id, repository_name and image id forms
    * a unique image
-   * name:`projects/<project_id>/locations/<location>/repository/<repository_name>/dockerImages/<docker_image>`.
+   * name:`projects/<project_id>/locations/<location>/repositories/<repository_name>/dockerImages/<docker_image>`.
    * For example,
    * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/
    * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf",
@@ -324,4 +324,108 @@ public interface DockerImageOrBuilder
    * 
    */
   com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder();
+
+  /**
+   *
+   *
+   * 
+   * ArtifactType of this image, e.g. "application/vnd.example+type".
+   * If the `subject_digest` is set and no `artifact_type` is given, the
+   * `media_type` will be considered as the `artifact_type`. This field is
+   * returned as the `metadata.artifactType` field in the Version resource.
+   * 
+ * + * string artifact_type = 9; + * + * @return The artifactType. + */ + java.lang.String getArtifactType(); + + /** + * + * + *
+   * ArtifactType of this image, e.g. "application/vnd.example+type".
+   * If the `subject_digest` is set and no `artifact_type` is given, the
+   * `media_type` will be considered as the `artifact_type`. This field is
+   * returned as the `metadata.artifactType` field in the Version resource.
+   * 
+ * + * string artifact_type = 9; + * + * @return The bytes for artifactType. + */ + com.google.protobuf.ByteString getArtifactTypeBytes(); + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getImageManifestsList(); + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.devtools.artifactregistry.v1.ImageManifest getImageManifests(int index); + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getImageManifestsCount(); + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getImageManifestsOrBuilderList(); + + /** + * + * + *
+   * Optional. For multi-arch images (manifest lists), this field contains the
+   * list of image manifests.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ImageManifest image_manifests = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder getImageManifestsOrBuilder( + int index); } diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadata.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadata.java new file mode 100644 index 000000000000..cbe5aa9c999c --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadata.java @@ -0,0 +1,2696 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/artifactregistry/v1/export.proto + +// Protobuf Java Version: 3.25.8 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The LRO metadata for exporting an artifact.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactMetadata} + */ +public final class ExportArtifactMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ExportArtifactMetadata) + ExportArtifactMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportArtifactMetadata.newBuilder() to construct. + private ExportArtifactMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportArtifactMetadata() { + exportedFiles_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportArtifactMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.class, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.Builder.class); + } + + public interface ExportedFileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Cloud Storage Object path of the exported file. Examples:
+     * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+     * 
+ * + * string gcs_object_path = 2; + * + * @return Whether the gcsObjectPath field is set. + */ + boolean hasGcsObjectPath(); + + /** + * + * + *
+     * Cloud Storage Object path of the exported file. Examples:
+     * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+     * 
+ * + * string gcs_object_path = 2; + * + * @return The gcsObjectPath. + */ + java.lang.String getGcsObjectPath(); + + /** + * + * + *
+     * Cloud Storage Object path of the exported file. Examples:
+     * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+     * 
+ * + * string gcs_object_path = 2; + * + * @return The bytes for gcsObjectPath. + */ + com.google.protobuf.ByteString getGcsObjectPathBytes(); + + /** + * + * + *
+     * Name of the exported artifact file.
+     * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * Name of the exported artifact file.
+     * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + java.util.List getHashesList(); + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + com.google.devtools.artifactregistry.v1.Hash getHashes(int index); + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + int getHashesCount(); + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + java.util.List + getHashesOrBuilderList(); + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + com.google.devtools.artifactregistry.v1.HashOrBuilder getHashesOrBuilder(int index); + + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.DestinationCase + getDestinationCase(); + } + + /** + * + * + *
+   * The exported artifact file.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile} + */ + public static final class ExportedFile extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) + ExportedFileOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportedFile.newBuilder() to construct. + private ExportedFile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportedFile() { + name_ = ""; + hashes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportedFile(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.class, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder + .class); + } + + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_OBJECT_PATH(2), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 2: + return GCS_OBJECT_PATH; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int GCS_OBJECT_PATH_FIELD_NUMBER = 2; + + /** + * + * + *
+     * Cloud Storage Object path of the exported file. Examples:
+     * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+     * 
+ * + * string gcs_object_path = 2; + * + * @return Whether the gcsObjectPath field is set. + */ + public boolean hasGcsObjectPath() { + return destinationCase_ == 2; + } + + /** + * + * + *
+     * Cloud Storage Object path of the exported file. Examples:
+     * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+     * 
+ * + * string gcs_object_path = 2; + * + * @return The gcsObjectPath. + */ + public java.lang.String getGcsObjectPath() { + java.lang.Object ref = ""; + if (destinationCase_ == 2) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 2) { + destination_ = s; + } + return s; + } + } + + /** + * + * + *
+     * Cloud Storage Object path of the exported file. Examples:
+     * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+     * 
+ * + * string gcs_object_path = 2; + * + * @return The bytes for gcsObjectPath. + */ + public com.google.protobuf.ByteString getGcsObjectPathBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 2) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 2) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * Name of the exported artifact file.
+     * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+     * 
+ * + * string name = 1 [(.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; + } + } + + /** + * + * + *
+     * Name of the exported artifact file.
+     * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+     * 
+ * + * string name = 1 [(.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 HASHES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List hashes_; + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + @java.lang.Override + public java.util.List getHashesList() { + return hashes_; + } + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + @java.lang.Override + public java.util.List + getHashesOrBuilderList() { + return hashes_; + } + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + @java.lang.Override + public int getHashesCount() { + return hashes_.size(); + } + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Hash getHashes(int index) { + return hashes_.get(index); + } + + /** + * + * + *
+     * The hashes of the file content.
+     * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.HashOrBuilder getHashesOrBuilder(int index) { + return hashes_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (destinationCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destination_); + } + for (int i = 0; i < hashes_.size(); i++) { + output.writeMessage(3, hashes_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (destinationCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destination_); + } + for (int i = 0; i < hashes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, hashes_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile other = + (com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) obj; + + if (!getName().equals(other.getName())) return false; + if (!getHashesList().equals(other.getHashesList())) return false; + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 2: + if (!getGcsObjectPath().equals(other.getGcsObjectPath())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getHashesCount() > 0) { + hash = (37 * hash) + HASHES_FIELD_NUMBER; + hash = (53 * hash) + getHashesList().hashCode(); + } + switch (destinationCase_) { + case 2: + hash = (37 * hash) + GCS_OBJECT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getGcsObjectPath().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + 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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + 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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + 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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The exported artifact file.
+     * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.class, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder + .class); + } + + // Construct using + // com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (hashesBuilder_ == null) { + hashes_ = java.util.Collections.emptyList(); + } else { + hashes_ = null; + hashesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile build() { + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + buildPartial() { + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result = + new com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result) { + if (hashesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + hashes_ = java.util.Collections.unmodifiableList(hashes_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.hashes_ = hashes_; + } else { + result.hashes_ = hashesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + } + + private void buildPartialOneofs( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + + @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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) { + return mergeFrom( + (com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile other) { + if (other + == com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (hashesBuilder_ == null) { + if (!other.hashes_.isEmpty()) { + if (hashes_.isEmpty()) { + hashes_ = other.hashes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureHashesIsMutable(); + hashes_.addAll(other.hashes_); + } + onChanged(); + } + } else { + if (!other.hashes_.isEmpty()) { + if (hashesBuilder_.isEmpty()) { + hashesBuilder_.dispose(); + hashesBuilder_ = null; + hashes_ = other.hashes_; + bitField0_ = (bitField0_ & ~0x00000004); + hashesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHashesFieldBuilder() + : null; + } else { + hashesBuilder_.addAllMessages(other.hashes_); + } + } + } + switch (other.getDestinationCase()) { + case GCS_OBJECT_PATH: + { + destinationCase_ = 2; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 2; + destination_ = s; + break; + } // case 18 + case 26: + { + com.google.devtools.artifactregistry.v1.Hash m = + input.readMessage( + com.google.devtools.artifactregistry.v1.Hash.parser(), extensionRegistry); + if (hashesBuilder_ == null) { + ensureHashesIsMutable(); + hashes_.add(m); + } else { + hashesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Cloud Storage Object path of the exported file. Examples:
+       * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+       * 
+ * + * string gcs_object_path = 2; + * + * @return Whether the gcsObjectPath field is set. + */ + @java.lang.Override + public boolean hasGcsObjectPath() { + return destinationCase_ == 2; + } + + /** + * + * + *
+       * Cloud Storage Object path of the exported file. Examples:
+       * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+       * 
+ * + * string gcs_object_path = 2; + * + * @return The gcsObjectPath. + */ + @java.lang.Override + public java.lang.String getGcsObjectPath() { + java.lang.Object ref = ""; + if (destinationCase_ == 2) { + ref = destination_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 2) { + destination_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Cloud Storage Object path of the exported file. Examples:
+       * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+       * 
+ * + * string gcs_object_path = 2; + * + * @return The bytes for gcsObjectPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsObjectPathBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 2) { + ref = destination_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 2) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Cloud Storage Object path of the exported file. Examples:
+       * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+       * 
+ * + * string gcs_object_path = 2; + * + * @param value The gcsObjectPath to set. + * @return This builder for chaining. + */ + public Builder setGcsObjectPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationCase_ = 2; + destination_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+       * Cloud Storage Object path of the exported file. Examples:
+       * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+       * 
+ * + * string gcs_object_path = 2; + * + * @return This builder for chaining. + */ + public Builder clearGcsObjectPath() { + if (destinationCase_ == 2) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Cloud Storage Object path of the exported file. Examples:
+       * `dst_bucket/file1`, `dst_bucket/sub_dir/file1`
+       * 
+ * + * string gcs_object_path = 2; + * + * @param value The bytes for gcsObjectPath to set. + * @return This builder for chaining. + */ + public Builder setGcsObjectPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationCase_ = 2; + destination_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
+       * Name of the exported artifact file.
+       * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+       * 
+ * + * string name = 1 [(.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; + } + } + + /** + * + * + *
+       * Name of the exported artifact file.
+       * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+       * 
+ * + * string name = 1 [(.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; + } + } + + /** + * + * + *
+       * Name of the exported artifact file.
+       * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+       * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Name of the exported artifact file.
+       * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+       * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Name of the exported artifact file.
+       * Format: `projects/p1/locations/us/repositories/repo1/files/file1`
+       * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List hashes_ = + java.util.Collections.emptyList(); + + private void ensureHashesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + hashes_ = new java.util.ArrayList(hashes_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Hash, + com.google.devtools.artifactregistry.v1.Hash.Builder, + com.google.devtools.artifactregistry.v1.HashOrBuilder> + hashesBuilder_; + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public java.util.List getHashesList() { + if (hashesBuilder_ == null) { + return java.util.Collections.unmodifiableList(hashes_); + } else { + return hashesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public int getHashesCount() { + if (hashesBuilder_ == null) { + return hashes_.size(); + } else { + return hashesBuilder_.getCount(); + } + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public com.google.devtools.artifactregistry.v1.Hash getHashes(int index) { + if (hashesBuilder_ == null) { + return hashes_.get(index); + } else { + return hashesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public Builder setHashes(int index, com.google.devtools.artifactregistry.v1.Hash value) { + if (hashesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.set(index, value); + onChanged(); + } else { + hashesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public Builder setHashes( + int index, com.google.devtools.artifactregistry.v1.Hash.Builder builderForValue) { + if (hashesBuilder_ == null) { + ensureHashesIsMutable(); + hashes_.set(index, builderForValue.build()); + onChanged(); + } else { + hashesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public Builder addHashes(com.google.devtools.artifactregistry.v1.Hash value) { + if (hashesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.add(value); + onChanged(); + } else { + hashesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public Builder addHashes(int index, com.google.devtools.artifactregistry.v1.Hash value) { + if (hashesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureHashesIsMutable(); + hashes_.add(index, value); + onChanged(); + } else { + hashesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public Builder addHashes( + com.google.devtools.artifactregistry.v1.Hash.Builder builderForValue) { + if (hashesBuilder_ == null) { + ensureHashesIsMutable(); + hashes_.add(builderForValue.build()); + onChanged(); + } else { + hashesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public Builder addHashes( + int index, com.google.devtools.artifactregistry.v1.Hash.Builder builderForValue) { + if (hashesBuilder_ == null) { + ensureHashesIsMutable(); + hashes_.add(index, builderForValue.build()); + onChanged(); + } else { + hashesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public Builder addAllHashes( + java.lang.Iterable values) { + if (hashesBuilder_ == null) { + ensureHashesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, hashes_); + onChanged(); + } else { + hashesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public Builder clearHashes() { + if (hashesBuilder_ == null) { + hashes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + hashesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public Builder removeHashes(int index) { + if (hashesBuilder_ == null) { + ensureHashesIsMutable(); + hashes_.remove(index); + onChanged(); + } else { + hashesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public com.google.devtools.artifactregistry.v1.Hash.Builder getHashesBuilder(int index) { + return getHashesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public com.google.devtools.artifactregistry.v1.HashOrBuilder getHashesOrBuilder(int index) { + if (hashesBuilder_ == null) { + return hashes_.get(index); + } else { + return hashesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public java.util.List + getHashesOrBuilderList() { + if (hashesBuilder_ != null) { + return hashesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(hashes_); + } + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public com.google.devtools.artifactregistry.v1.Hash.Builder addHashesBuilder() { + return getHashesFieldBuilder() + .addBuilder(com.google.devtools.artifactregistry.v1.Hash.getDefaultInstance()); + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public com.google.devtools.artifactregistry.v1.Hash.Builder addHashesBuilder(int index) { + return getHashesFieldBuilder() + .addBuilder(index, com.google.devtools.artifactregistry.v1.Hash.getDefaultInstance()); + } + + /** + * + * + *
+       * The hashes of the file content.
+       * 
+ * + * repeated .google.devtools.artifactregistry.v1.Hash hashes = 3; + */ + public java.util.List + getHashesBuilderList() { + return getHashesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Hash, + com.google.devtools.artifactregistry.v1.Hash.Builder, + com.google.devtools.artifactregistry.v1.HashOrBuilder> + getHashesFieldBuilder() { + if (hashesBuilder_ == null) { + hashesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Hash, + com.google.devtools.artifactregistry.v1.Hash.Builder, + com.google.devtools.artifactregistry.v1.HashOrBuilder>( + hashes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + hashes_ = null; + } + return hashesBuilder_; + } + + @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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile) + private static final com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile(); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportedFile 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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int EXPORTED_FILES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile> + exportedFiles_; + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + @java.lang.Override + public java.util.List + getExportedFilesList() { + return exportedFiles_; + } + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder> + getExportedFilesOrBuilderList() { + return exportedFiles_; + } + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + @java.lang.Override + public int getExportedFilesCount() { + return exportedFiles_.size(); + } + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + getExportedFiles(int index) { + return exportedFiles_.get(index); + } + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder + getExportedFilesOrBuilder(int index) { + return exportedFiles_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < exportedFiles_.size(); i++) { + output.writeMessage(1, exportedFiles_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < exportedFiles_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, exportedFiles_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.devtools.artifactregistry.v1.ExportArtifactMetadata)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata other = + (com.google.devtools.artifactregistry.v1.ExportArtifactMetadata) obj; + + if (!getExportedFilesList().equals(other.getExportedFilesList())) 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 (getExportedFilesCount() > 0) { + hash = (37 * hash) + EXPORTED_FILES_FIELD_NUMBER; + hash = (53 * hash) + getExportedFilesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata 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.devtools.artifactregistry.v1.ExportArtifactMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata 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.devtools.artifactregistry.v1.ExportArtifactMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata 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.devtools.artifactregistry.v1.ExportArtifactMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The LRO metadata for exporting an artifact.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ExportArtifactMetadata) + com.google.devtools.artifactregistry.v1.ExportArtifactMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.class, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (exportedFilesBuilder_ == null) { + exportedFiles_ = java.util.Collections.emptyList(); + } else { + exportedFiles_ = null; + exportedFilesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata build() { + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata buildPartial() { + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata result = + new com.google.devtools.artifactregistry.v1.ExportArtifactMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata result) { + if (exportedFilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + exportedFiles_ = java.util.Collections.unmodifiableList(exportedFiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.exportedFiles_ = exportedFiles_; + } else { + result.exportedFiles_ = exportedFilesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.ExportArtifactMetadata) { + return mergeFrom((com.google.devtools.artifactregistry.v1.ExportArtifactMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ExportArtifactMetadata other) { + if (other + == com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.getDefaultInstance()) + return this; + if (exportedFilesBuilder_ == null) { + if (!other.exportedFiles_.isEmpty()) { + if (exportedFiles_.isEmpty()) { + exportedFiles_ = other.exportedFiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExportedFilesIsMutable(); + exportedFiles_.addAll(other.exportedFiles_); + } + onChanged(); + } + } else { + if (!other.exportedFiles_.isEmpty()) { + if (exportedFilesBuilder_.isEmpty()) { + exportedFilesBuilder_.dispose(); + exportedFilesBuilder_ = null; + exportedFiles_ = other.exportedFiles_; + bitField0_ = (bitField0_ & ~0x00000001); + exportedFilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExportedFilesFieldBuilder() + : null; + } else { + exportedFilesBuilder_.addAllMessages(other.exportedFiles_); + } + } + } + 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.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile m = + input.readMessage( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + .parser(), + extensionRegistry); + if (exportedFilesBuilder_ == null) { + ensureExportedFilesIsMutable(); + exportedFiles_.add(m); + } else { + exportedFilesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile> + exportedFiles_ = java.util.Collections.emptyList(); + + private void ensureExportedFilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + exportedFiles_ = + new java.util.ArrayList< + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile>( + exportedFiles_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder> + exportedFilesBuilder_; + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public java.util.List< + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile> + getExportedFilesList() { + if (exportedFilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(exportedFiles_); + } else { + return exportedFilesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public int getExportedFilesCount() { + if (exportedFilesBuilder_ == null) { + return exportedFiles_.size(); + } else { + return exportedFilesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + getExportedFiles(int index) { + if (exportedFilesBuilder_ == null) { + return exportedFiles_.get(index); + } else { + return exportedFilesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public Builder setExportedFiles( + int index, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile value) { + if (exportedFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportedFilesIsMutable(); + exportedFiles_.set(index, value); + onChanged(); + } else { + exportedFilesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public Builder setExportedFiles( + int index, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder + builderForValue) { + if (exportedFilesBuilder_ == null) { + ensureExportedFilesIsMutable(); + exportedFiles_.set(index, builderForValue.build()); + onChanged(); + } else { + exportedFilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public Builder addExportedFiles( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile value) { + if (exportedFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportedFilesIsMutable(); + exportedFiles_.add(value); + onChanged(); + } else { + exportedFilesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public Builder addExportedFiles( + int index, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile value) { + if (exportedFilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportedFilesIsMutable(); + exportedFiles_.add(index, value); + onChanged(); + } else { + exportedFilesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public Builder addExportedFiles( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder + builderForValue) { + if (exportedFilesBuilder_ == null) { + ensureExportedFilesIsMutable(); + exportedFiles_.add(builderForValue.build()); + onChanged(); + } else { + exportedFilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public Builder addExportedFiles( + int index, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder + builderForValue) { + if (exportedFilesBuilder_ == null) { + ensureExportedFilesIsMutable(); + exportedFiles_.add(index, builderForValue.build()); + onChanged(); + } else { + exportedFilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public Builder addAllExportedFiles( + java.lang.Iterable< + ? extends + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile> + values) { + if (exportedFilesBuilder_ == null) { + ensureExportedFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exportedFiles_); + onChanged(); + } else { + exportedFilesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public Builder clearExportedFiles() { + if (exportedFilesBuilder_ == null) { + exportedFiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + exportedFilesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public Builder removeExportedFiles(int index) { + if (exportedFilesBuilder_ == null) { + ensureExportedFilesIsMutable(); + exportedFiles_.remove(index); + onChanged(); + } else { + exportedFilesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder + getExportedFilesBuilder(int index) { + return getExportedFilesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder + getExportedFilesOrBuilder(int index) { + if (exportedFilesBuilder_ == null) { + return exportedFiles_.get(index); + } else { + return exportedFilesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public java.util.List< + ? extends + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata + .ExportedFileOrBuilder> + getExportedFilesOrBuilderList() { + if (exportedFilesBuilder_ != null) { + return exportedFilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(exportedFiles_); + } + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder + addExportedFilesBuilder() { + return getExportedFilesFieldBuilder() + .addBuilder( + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + .getDefaultInstance()); + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder + addExportedFilesBuilder(int index) { + return getExportedFilesFieldBuilder() + .addBuilder( + index, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile + .getDefaultInstance()); + } + + /** + * + * + *
+     * The exported artifact files.
+     * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + public java.util.List< + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder> + getExportedFilesBuilderList() { + return getExportedFilesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder> + getExportedFilesFieldBuilder() { + if (exportedFilesBuilder_ == null) { + exportedFilesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile.Builder, + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata + .ExportedFileOrBuilder>( + exportedFiles_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + exportedFiles_ = null; + } + return exportedFilesBuilder_; + } + + @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.devtools.artifactregistry.v1.ExportArtifactMetadata) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ExportArtifactMetadata) + private static final com.google.devtools.artifactregistry.v1.ExportArtifactMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ExportArtifactMetadata(); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportArtifactMetadata 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.devtools.artifactregistry.v1.ExportArtifactMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadataOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadataOrBuilder.java new file mode 100644 index 000000000000..18f7a555ee14 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactMetadataOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/artifactregistry/v1/export.proto + +// Protobuf Java Version: 3.25.8 +package com.google.devtools.artifactregistry.v1; + +public interface ExportArtifactMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ExportArtifactMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + java.util.List + getExportedFilesList(); + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile getExportedFiles( + int index); + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + int getExportedFilesCount(); + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + java.util.List< + ? extends + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder> + getExportedFilesOrBuilderList(); + + /** + * + * + *
+   * The exported artifact files.
+   * 
+ * + * + * repeated .google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFile exported_files = 1; + * + */ + com.google.devtools.artifactregistry.v1.ExportArtifactMetadata.ExportedFileOrBuilder + getExportedFilesOrBuilder(int index); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequest.java new file mode 100644 index 000000000000..b8e773194134 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequest.java @@ -0,0 +1,1599 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/artifactregistry/v1/export.proto + +// Protobuf Java Version: 3.25.8 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The request for exporting an artifact to a destination.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactRequest} + */ +public final class ExportArtifactRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ExportArtifactRequest) + ExportArtifactRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportArtifactRequest.newBuilder() to construct. + private ExportArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportArtifactRequest() { + repository_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportArtifactRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ExportArtifactRequest.class, + com.google.devtools.artifactregistry.v1.ExportArtifactRequest.Builder.class); + } + + private int sourceArtifactCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceArtifact_; + + public enum SourceArtifactCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SOURCE_VERSION(2), + SOURCE_TAG(4), + SOURCEARTIFACT_NOT_SET(0); + private final int value; + + private SourceArtifactCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceArtifactCase valueOf(int value) { + return forNumber(value); + } + + public static SourceArtifactCase forNumber(int value) { + switch (value) { + case 2: + return SOURCE_VERSION; + case 4: + return SOURCE_TAG; + case 0: + return SOURCEARTIFACT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceArtifactCase getSourceArtifactCase() { + return SourceArtifactCase.forNumber(sourceArtifactCase_); + } + + private int destinationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object destination_; + + public enum DestinationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_PATH(3), + DESTINATION_NOT_SET(0); + private final int value; + + private DestinationCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationCase forNumber(int value) { + switch (value) { + case 3: + return GCS_PATH; + case 0: + return DESTINATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public static final int SOURCE_VERSION_FIELD_NUMBER = 2; + + /** + * + * + *
+   * The artifact version to export.
+   * Format:
+   * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+   * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the sourceVersion field is set. + */ + public boolean hasSourceVersion() { + return sourceArtifactCase_ == 2; + } + + /** + * + * + *
+   * The artifact version to export.
+   * Format:
+   * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+   * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The sourceVersion. + */ + public java.lang.String getSourceVersion() { + java.lang.Object ref = ""; + if (sourceArtifactCase_ == 2) { + ref = sourceArtifact_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceArtifactCase_ == 2) { + sourceArtifact_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The artifact version to export.
+   * Format:
+   * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+   * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for sourceVersion. + */ + public com.google.protobuf.ByteString getSourceVersionBytes() { + java.lang.Object ref = ""; + if (sourceArtifactCase_ == 2) { + ref = sourceArtifact_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceArtifactCase_ == 2) { + sourceArtifact_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_TAG_FIELD_NUMBER = 4; + + /** + * + * + *
+   * The artifact tag to export.
+   * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+   * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return Whether the sourceTag field is set. + */ + public boolean hasSourceTag() { + return sourceArtifactCase_ == 4; + } + + /** + * + * + *
+   * The artifact tag to export.
+   * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+   * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return The sourceTag. + */ + public java.lang.String getSourceTag() { + java.lang.Object ref = ""; + if (sourceArtifactCase_ == 4) { + ref = sourceArtifact_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceArtifactCase_ == 4) { + sourceArtifact_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The artifact tag to export.
+   * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+   * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for sourceTag. + */ + public com.google.protobuf.ByteString getSourceTagBytes() { + java.lang.Object ref = ""; + if (sourceArtifactCase_ == 4) { + ref = sourceArtifact_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceArtifactCase_ == 4) { + sourceArtifact_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_PATH_FIELD_NUMBER = 3; + + /** + * + * + *
+   * The Cloud Storage path to export the artifact to. Should start with the
+   * bucket name, and optionally have a directory path. Examples:
+   * `dst_bucket`, `dst_bucket/sub_dir`.
+   * Existing objects with the same path will be overwritten.
+   * 
+ * + * string gcs_path = 3; + * + * @return Whether the gcsPath field is set. + */ + public boolean hasGcsPath() { + return destinationCase_ == 3; + } + + /** + * + * + *
+   * The Cloud Storage path to export the artifact to. Should start with the
+   * bucket name, and optionally have a directory path. Examples:
+   * `dst_bucket`, `dst_bucket/sub_dir`.
+   * Existing objects with the same path will be overwritten.
+   * 
+ * + * string gcs_path = 3; + * + * @return The gcsPath. + */ + public java.lang.String getGcsPath() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 3) { + destination_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The Cloud Storage path to export the artifact to. Should start with the
+   * bucket name, and optionally have a directory path. Examples:
+   * `dst_bucket`, `dst_bucket/sub_dir`.
+   * Existing objects with the same path will be overwritten.
+   * 
+ * + * string gcs_path = 3; + * + * @return The bytes for gcsPath. + */ + public com.google.protobuf.ByteString getGcsPathBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 3) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPOSITORY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object repository_ = ""; + + /** + * + * + *
+   * Required. The repository of the artifact to export.
+   * Format: projects/{project}/locations/{location}/repositories/{repository}
+   * 
+ * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The repository. + */ + @java.lang.Override + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The repository of the artifact to export.
+   * Format: projects/{project}/locations/{location}/repositories/{repository}
+   * 
+ * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for repository. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = 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(repository_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); + } + if (sourceArtifactCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceArtifact_); + } + if (destinationCase_ == 3) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, destination_); + } + if (sourceArtifactCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceArtifact_); + } + 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(repository_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_); + } + if (sourceArtifactCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceArtifact_); + } + if (destinationCase_ == 3) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, destination_); + } + if (sourceArtifactCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceArtifact_); + } + 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.devtools.artifactregistry.v1.ExportArtifactRequest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.ExportArtifactRequest other = + (com.google.devtools.artifactregistry.v1.ExportArtifactRequest) obj; + + if (!getRepository().equals(other.getRepository())) return false; + if (!getSourceArtifactCase().equals(other.getSourceArtifactCase())) return false; + switch (sourceArtifactCase_) { + case 2: + if (!getSourceVersion().equals(other.getSourceVersion())) return false; + break; + case 4: + if (!getSourceTag().equals(other.getSourceTag())) return false; + break; + case 0: + default: + } + if (!getDestinationCase().equals(other.getDestinationCase())) return false; + switch (destinationCase_) { + case 3: + if (!getGcsPath().equals(other.getGcsPath())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + switch (sourceArtifactCase_) { + case 2: + hash = (37 * hash) + SOURCE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSourceVersion().hashCode(); + break; + case 4: + hash = (37 * hash) + SOURCE_TAG_FIELD_NUMBER; + hash = (53 * hash) + getSourceTag().hashCode(); + break; + case 0: + default: + } + switch (destinationCase_) { + case 3: + hash = (37 * hash) + GCS_PATH_FIELD_NUMBER; + hash = (53 * hash) + getGcsPath().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest 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.devtools.artifactregistry.v1.ExportArtifactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest 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.devtools.artifactregistry.v1.ExportArtifactRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest 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.devtools.artifactregistry.v1.ExportArtifactRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request for exporting an artifact to a destination.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ExportArtifactRequest) + com.google.devtools.artifactregistry.v1.ExportArtifactRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ExportArtifactRequest.class, + com.google.devtools.artifactregistry.v1.ExportArtifactRequest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.ExportArtifactRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + repository_ = ""; + sourceArtifactCase_ = 0; + sourceArtifact_ = null; + destinationCase_ = 0; + destination_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactRequest + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.ExportArtifactRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactRequest build() { + com.google.devtools.artifactregistry.v1.ExportArtifactRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactRequest buildPartial() { + com.google.devtools.artifactregistry.v1.ExportArtifactRequest result = + new com.google.devtools.artifactregistry.v1.ExportArtifactRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.ExportArtifactRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.repository_ = repository_; + } + } + + private void buildPartialOneofs( + com.google.devtools.artifactregistry.v1.ExportArtifactRequest result) { + result.sourceArtifactCase_ = sourceArtifactCase_; + result.sourceArtifact_ = this.sourceArtifact_; + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + + @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.devtools.artifactregistry.v1.ExportArtifactRequest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.ExportArtifactRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ExportArtifactRequest other) { + if (other + == com.google.devtools.artifactregistry.v1.ExportArtifactRequest.getDefaultInstance()) + return this; + if (!other.getRepository().isEmpty()) { + repository_ = other.repository_; + bitField0_ |= 0x00000008; + onChanged(); + } + switch (other.getSourceArtifactCase()) { + case SOURCE_VERSION: + { + sourceArtifactCase_ = 2; + sourceArtifact_ = other.sourceArtifact_; + onChanged(); + break; + } + case SOURCE_TAG: + { + sourceArtifactCase_ = 4; + sourceArtifact_ = other.sourceArtifact_; + onChanged(); + break; + } + case SOURCEARTIFACT_NOT_SET: + { + break; + } + } + switch (other.getDestinationCase()) { + case GCS_PATH: + { + destinationCase_ = 3; + destination_ = other.destination_; + onChanged(); + break; + } + case DESTINATION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + repository_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceArtifactCase_ = 2; + sourceArtifact_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + destinationCase_ = 3; + destination_ = s; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceArtifactCase_ = 4; + sourceArtifact_ = s; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceArtifactCase_ = 0; + private java.lang.Object sourceArtifact_; + + public SourceArtifactCase getSourceArtifactCase() { + return SourceArtifactCase.forNumber(sourceArtifactCase_); + } + + public Builder clearSourceArtifact() { + sourceArtifactCase_ = 0; + sourceArtifact_ = null; + onChanged(); + return this; + } + + private int destinationCase_ = 0; + private java.lang.Object destination_; + + public DestinationCase getDestinationCase() { + return DestinationCase.forNumber(destinationCase_); + } + + public Builder clearDestination() { + destinationCase_ = 0; + destination_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * The artifact version to export.
+     * Format:
+     * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+     * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the sourceVersion field is set. + */ + @java.lang.Override + public boolean hasSourceVersion() { + return sourceArtifactCase_ == 2; + } + + /** + * + * + *
+     * The artifact version to export.
+     * Format:
+     * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+     * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The sourceVersion. + */ + @java.lang.Override + public java.lang.String getSourceVersion() { + java.lang.Object ref = ""; + if (sourceArtifactCase_ == 2) { + ref = sourceArtifact_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceArtifactCase_ == 2) { + sourceArtifact_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The artifact version to export.
+     * Format:
+     * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+     * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for sourceVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceVersionBytes() { + java.lang.Object ref = ""; + if (sourceArtifactCase_ == 2) { + ref = sourceArtifact_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceArtifactCase_ == 2) { + sourceArtifact_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The artifact version to export.
+     * Format:
+     * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+     * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The sourceVersion to set. + * @return This builder for chaining. + */ + public Builder setSourceVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceArtifactCase_ = 2; + sourceArtifact_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The artifact version to export.
+     * Format:
+     * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+     * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearSourceVersion() { + if (sourceArtifactCase_ == 2) { + sourceArtifactCase_ = 0; + sourceArtifact_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The artifact version to export.
+     * Format:
+     * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+     * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for sourceVersion to set. + * @return This builder for chaining. + */ + public Builder setSourceVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceArtifactCase_ = 2; + sourceArtifact_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The artifact tag to export.
+     * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+     * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return Whether the sourceTag field is set. + */ + @java.lang.Override + public boolean hasSourceTag() { + return sourceArtifactCase_ == 4; + } + + /** + * + * + *
+     * The artifact tag to export.
+     * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+     * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return The sourceTag. + */ + @java.lang.Override + public java.lang.String getSourceTag() { + java.lang.Object ref = ""; + if (sourceArtifactCase_ == 4) { + ref = sourceArtifact_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceArtifactCase_ == 4) { + sourceArtifact_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The artifact tag to export.
+     * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+     * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for sourceTag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceTagBytes() { + java.lang.Object ref = ""; + if (sourceArtifactCase_ == 4) { + ref = sourceArtifact_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceArtifactCase_ == 4) { + sourceArtifact_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The artifact tag to export.
+     * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+     * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @param value The sourceTag to set. + * @return This builder for chaining. + */ + public Builder setSourceTag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceArtifactCase_ = 4; + sourceArtifact_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The artifact tag to export.
+     * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+     * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearSourceTag() { + if (sourceArtifactCase_ == 4) { + sourceArtifactCase_ = 0; + sourceArtifact_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The artifact tag to export.
+     * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+     * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for sourceTag to set. + * @return This builder for chaining. + */ + public Builder setSourceTagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceArtifactCase_ = 4; + sourceArtifact_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Cloud Storage path to export the artifact to. Should start with the
+     * bucket name, and optionally have a directory path. Examples:
+     * `dst_bucket`, `dst_bucket/sub_dir`.
+     * Existing objects with the same path will be overwritten.
+     * 
+ * + * string gcs_path = 3; + * + * @return Whether the gcsPath field is set. + */ + @java.lang.Override + public boolean hasGcsPath() { + return destinationCase_ == 3; + } + + /** + * + * + *
+     * The Cloud Storage path to export the artifact to. Should start with the
+     * bucket name, and optionally have a directory path. Examples:
+     * `dst_bucket`, `dst_bucket/sub_dir`.
+     * Existing objects with the same path will be overwritten.
+     * 
+ * + * string gcs_path = 3; + * + * @return The gcsPath. + */ + @java.lang.Override + public java.lang.String getGcsPath() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (destinationCase_ == 3) { + destination_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Cloud Storage path to export the artifact to. Should start with the
+     * bucket name, and optionally have a directory path. Examples:
+     * `dst_bucket`, `dst_bucket/sub_dir`.
+     * Existing objects with the same path will be overwritten.
+     * 
+ * + * string gcs_path = 3; + * + * @return The bytes for gcsPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsPathBytes() { + java.lang.Object ref = ""; + if (destinationCase_ == 3) { + ref = destination_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (destinationCase_ == 3) { + destination_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Cloud Storage path to export the artifact to. Should start with the
+     * bucket name, and optionally have a directory path. Examples:
+     * `dst_bucket`, `dst_bucket/sub_dir`.
+     * Existing objects with the same path will be overwritten.
+     * 
+ * + * string gcs_path = 3; + * + * @param value The gcsPath to set. + * @return This builder for chaining. + */ + public Builder setGcsPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationCase_ = 3; + destination_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Cloud Storage path to export the artifact to. Should start with the
+     * bucket name, and optionally have a directory path. Examples:
+     * `dst_bucket`, `dst_bucket/sub_dir`.
+     * Existing objects with the same path will be overwritten.
+     * 
+ * + * string gcs_path = 3; + * + * @return This builder for chaining. + */ + public Builder clearGcsPath() { + if (destinationCase_ == 3) { + destinationCase_ = 0; + destination_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Cloud Storage path to export the artifact to. Should start with the
+     * bucket name, and optionally have a directory path. Examples:
+     * `dst_bucket`, `dst_bucket/sub_dir`.
+     * Existing objects with the same path will be overwritten.
+     * 
+ * + * string gcs_path = 3; + * + * @param value The bytes for gcsPath to set. + * @return This builder for chaining. + */ + public Builder setGcsPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationCase_ = 3; + destination_ = value; + onChanged(); + return this; + } + + private java.lang.Object repository_ = ""; + + /** + * + * + *
+     * Required. The repository of the artifact to export.
+     * Format: projects/{project}/locations/{location}/repositories/{repository}
+     * 
+ * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The repository. + */ + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The repository of the artifact to export.
+     * Format: projects/{project}/locations/{location}/repositories/{repository}
+     * 
+ * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for repository. + */ + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The repository of the artifact to export.
+     * Format: projects/{project}/locations/{location}/repositories/{repository}
+     * 
+ * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The repository to set. + * @return This builder for chaining. + */ + public Builder setRepository(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The repository of the artifact to export.
+     * Format: projects/{project}/locations/{location}/repositories/{repository}
+     * 
+ * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRepository() { + repository_ = getDefaultInstance().getRepository(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The repository of the artifact to export.
+     * Format: projects/{project}/locations/{location}/repositories/{repository}
+     * 
+ * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for repository to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repository_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.artifactregistry.v1.ExportArtifactRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ExportArtifactRequest) + private static final com.google.devtools.artifactregistry.v1.ExportArtifactRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ExportArtifactRequest(); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportArtifactRequest 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.devtools.artifactregistry.v1.ExportArtifactRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequestOrBuilder.java new file mode 100644 index 000000000000..f3c1e0f8777e --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactRequestOrBuilder.java @@ -0,0 +1,199 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/artifactregistry/v1/export.proto + +// Protobuf Java Version: 3.25.8 +package com.google.devtools.artifactregistry.v1; + +public interface ExportArtifactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ExportArtifactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The artifact version to export.
+   * Format:
+   * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+   * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return Whether the sourceVersion field is set. + */ + boolean hasSourceVersion(); + + /** + * + * + *
+   * The artifact version to export.
+   * Format:
+   * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+   * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The sourceVersion. + */ + java.lang.String getSourceVersion(); + + /** + * + * + *
+   * The artifact version to export.
+   * Format:
+   * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
+   * 
+ * + * string source_version = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for sourceVersion. + */ + com.google.protobuf.ByteString getSourceVersionBytes(); + + /** + * + * + *
+   * The artifact tag to export.
+   * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+   * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return Whether the sourceTag field is set. + */ + boolean hasSourceTag(); + + /** + * + * + *
+   * The artifact tag to export.
+   * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+   * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return The sourceTag. + */ + java.lang.String getSourceTag(); + + /** + * + * + *
+   * The artifact tag to export.
+   * Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
+   * 
+ * + * string source_tag = 4 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for sourceTag. + */ + com.google.protobuf.ByteString getSourceTagBytes(); + + /** + * + * + *
+   * The Cloud Storage path to export the artifact to. Should start with the
+   * bucket name, and optionally have a directory path. Examples:
+   * `dst_bucket`, `dst_bucket/sub_dir`.
+   * Existing objects with the same path will be overwritten.
+   * 
+ * + * string gcs_path = 3; + * + * @return Whether the gcsPath field is set. + */ + boolean hasGcsPath(); + + /** + * + * + *
+   * The Cloud Storage path to export the artifact to. Should start with the
+   * bucket name, and optionally have a directory path. Examples:
+   * `dst_bucket`, `dst_bucket/sub_dir`.
+   * Existing objects with the same path will be overwritten.
+   * 
+ * + * string gcs_path = 3; + * + * @return The gcsPath. + */ + java.lang.String getGcsPath(); + + /** + * + * + *
+   * The Cloud Storage path to export the artifact to. Should start with the
+   * bucket name, and optionally have a directory path. Examples:
+   * `dst_bucket`, `dst_bucket/sub_dir`.
+   * Existing objects with the same path will be overwritten.
+   * 
+ * + * string gcs_path = 3; + * + * @return The bytes for gcsPath. + */ + com.google.protobuf.ByteString getGcsPathBytes(); + + /** + * + * + *
+   * Required. The repository of the artifact to export.
+   * Format: projects/{project}/locations/{location}/repositories/{repository}
+   * 
+ * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The repository. + */ + java.lang.String getRepository(); + + /** + * + * + *
+   * Required. The repository of the artifact to export.
+   * Format: projects/{project}/locations/{location}/repositories/{repository}
+   * 
+ * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for repository. + */ + com.google.protobuf.ByteString getRepositoryBytes(); + + com.google.devtools.artifactregistry.v1.ExportArtifactRequest.SourceArtifactCase + getSourceArtifactCase(); + + com.google.devtools.artifactregistry.v1.ExportArtifactRequest.DestinationCase + getDestinationCase(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponse.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponse.java new file mode 100644 index 000000000000..e2af5e1c8e4e --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponse.java @@ -0,0 +1,757 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/artifactregistry/v1/export.proto + +// Protobuf Java Version: 3.25.8 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * The response for exporting an artifact to a destination.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactResponse} + */ +public final class ExportArtifactResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ExportArtifactResponse) + ExportArtifactResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExportArtifactResponse.newBuilder() to construct. + private ExportArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExportArtifactResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExportArtifactResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ExportArtifactResponse.class, + com.google.devtools.artifactregistry.v1.ExportArtifactResponse.Builder.class); + } + + private int bitField0_; + public static final int EXPORTED_VERSION_FIELD_NUMBER = 1; + private com.google.devtools.artifactregistry.v1.Version exportedVersion_; + + /** + * + * + *
+   * The exported version. Should be the same as the request version with
+   * fingerprint resource name.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + * + * @return Whether the exportedVersion field is set. + */ + @java.lang.Override + public boolean hasExportedVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The exported version. Should be the same as the request version with
+   * fingerprint resource name.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + * + * @return The exportedVersion. + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.Version getExportedVersion() { + return exportedVersion_ == null + ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance() + : exportedVersion_; + } + + /** + * + * + *
+   * The exported version. Should be the same as the request version with
+   * fingerprint resource name.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + */ + @java.lang.Override + public com.google.devtools.artifactregistry.v1.VersionOrBuilder getExportedVersionOrBuilder() { + return exportedVersion_ == null + ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance() + : exportedVersion_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExportedVersion()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExportedVersion()); + } + 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.devtools.artifactregistry.v1.ExportArtifactResponse)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.ExportArtifactResponse other = + (com.google.devtools.artifactregistry.v1.ExportArtifactResponse) obj; + + if (hasExportedVersion() != other.hasExportedVersion()) return false; + if (hasExportedVersion()) { + if (!getExportedVersion().equals(other.getExportedVersion())) 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 (hasExportedVersion()) { + hash = (37 * hash) + EXPORTED_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getExportedVersion().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse 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.devtools.artifactregistry.v1.ExportArtifactResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse 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.devtools.artifactregistry.v1.ExportArtifactResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse 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.devtools.artifactregistry.v1.ExportArtifactResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The response for exporting an artifact to a destination.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ExportArtifactResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ExportArtifactResponse) + com.google.devtools.artifactregistry.v1.ExportArtifactResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ExportArtifactResponse.class, + com.google.devtools.artifactregistry.v1.ExportArtifactResponse.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.ExportArtifactResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExportedVersionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + exportedVersion_ = null; + if (exportedVersionBuilder_ != null) { + exportedVersionBuilder_.dispose(); + exportedVersionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.ExportProto + .internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactResponse + getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.ExportArtifactResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactResponse build() { + com.google.devtools.artifactregistry.v1.ExportArtifactResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ExportArtifactResponse buildPartial() { + com.google.devtools.artifactregistry.v1.ExportArtifactResponse result = + new com.google.devtools.artifactregistry.v1.ExportArtifactResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.devtools.artifactregistry.v1.ExportArtifactResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.exportedVersion_ = + exportedVersionBuilder_ == null ? exportedVersion_ : exportedVersionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.devtools.artifactregistry.v1.ExportArtifactResponse) { + return mergeFrom((com.google.devtools.artifactregistry.v1.ExportArtifactResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ExportArtifactResponse other) { + if (other + == com.google.devtools.artifactregistry.v1.ExportArtifactResponse.getDefaultInstance()) + return this; + if (other.hasExportedVersion()) { + mergeExportedVersion(other.getExportedVersion()); + } + 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(getExportedVersionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.devtools.artifactregistry.v1.Version exportedVersion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Version, + com.google.devtools.artifactregistry.v1.Version.Builder, + com.google.devtools.artifactregistry.v1.VersionOrBuilder> + exportedVersionBuilder_; + + /** + * + * + *
+     * The exported version. Should be the same as the request version with
+     * fingerprint resource name.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + * + * @return Whether the exportedVersion field is set. + */ + public boolean hasExportedVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The exported version. Should be the same as the request version with
+     * fingerprint resource name.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + * + * @return The exportedVersion. + */ + public com.google.devtools.artifactregistry.v1.Version getExportedVersion() { + if (exportedVersionBuilder_ == null) { + return exportedVersion_ == null + ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance() + : exportedVersion_; + } else { + return exportedVersionBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The exported version. Should be the same as the request version with
+     * fingerprint resource name.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + */ + public Builder setExportedVersion(com.google.devtools.artifactregistry.v1.Version value) { + if (exportedVersionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportedVersion_ = value; + } else { + exportedVersionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The exported version. Should be the same as the request version with
+     * fingerprint resource name.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + */ + public Builder setExportedVersion( + com.google.devtools.artifactregistry.v1.Version.Builder builderForValue) { + if (exportedVersionBuilder_ == null) { + exportedVersion_ = builderForValue.build(); + } else { + exportedVersionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The exported version. Should be the same as the request version with
+     * fingerprint resource name.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + */ + public Builder mergeExportedVersion(com.google.devtools.artifactregistry.v1.Version value) { + if (exportedVersionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && exportedVersion_ != null + && exportedVersion_ + != com.google.devtools.artifactregistry.v1.Version.getDefaultInstance()) { + getExportedVersionBuilder().mergeFrom(value); + } else { + exportedVersion_ = value; + } + } else { + exportedVersionBuilder_.mergeFrom(value); + } + if (exportedVersion_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The exported version. Should be the same as the request version with
+     * fingerprint resource name.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + */ + public Builder clearExportedVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + exportedVersion_ = null; + if (exportedVersionBuilder_ != null) { + exportedVersionBuilder_.dispose(); + exportedVersionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The exported version. Should be the same as the request version with
+     * fingerprint resource name.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + */ + public com.google.devtools.artifactregistry.v1.Version.Builder getExportedVersionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExportedVersionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The exported version. Should be the same as the request version with
+     * fingerprint resource name.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + */ + public com.google.devtools.artifactregistry.v1.VersionOrBuilder getExportedVersionOrBuilder() { + if (exportedVersionBuilder_ != null) { + return exportedVersionBuilder_.getMessageOrBuilder(); + } else { + return exportedVersion_ == null + ? com.google.devtools.artifactregistry.v1.Version.getDefaultInstance() + : exportedVersion_; + } + } + + /** + * + * + *
+     * The exported version. Should be the same as the request version with
+     * fingerprint resource name.
+     * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Version, + com.google.devtools.artifactregistry.v1.Version.Builder, + com.google.devtools.artifactregistry.v1.VersionOrBuilder> + getExportedVersionFieldBuilder() { + if (exportedVersionBuilder_ == null) { + exportedVersionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.devtools.artifactregistry.v1.Version, + com.google.devtools.artifactregistry.v1.Version.Builder, + com.google.devtools.artifactregistry.v1.VersionOrBuilder>( + getExportedVersion(), getParentForChildren(), isClean()); + exportedVersion_ = null; + } + return exportedVersionBuilder_; + } + + @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.devtools.artifactregistry.v1.ExportArtifactResponse) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ExportArtifactResponse) + private static final com.google.devtools.artifactregistry.v1.ExportArtifactResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ExportArtifactResponse(); + } + + public static com.google.devtools.artifactregistry.v1.ExportArtifactResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportArtifactResponse 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.devtools.artifactregistry.v1.ExportArtifactResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponseOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponseOrBuilder.java new file mode 100644 index 000000000000..cd48c5785646 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportArtifactResponseOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/artifactregistry/v1/export.proto + +// Protobuf Java Version: 3.25.8 +package com.google.devtools.artifactregistry.v1; + +public interface ExportArtifactResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ExportArtifactResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The exported version. Should be the same as the request version with
+   * fingerprint resource name.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + * + * @return Whether the exportedVersion field is set. + */ + boolean hasExportedVersion(); + + /** + * + * + *
+   * The exported version. Should be the same as the request version with
+   * fingerprint resource name.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + * + * @return The exportedVersion. + */ + com.google.devtools.artifactregistry.v1.Version getExportedVersion(); + + /** + * + * + *
+   * The exported version. Should be the same as the request version with
+   * fingerprint resource name.
+   * 
+ * + * .google.devtools.artifactregistry.v1.Version exported_version = 1; + */ + com.google.devtools.artifactregistry.v1.VersionOrBuilder getExportedVersionOrBuilder(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportProto.java new file mode 100644 index 000000000000..17b69e99c35e --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ExportProto.java @@ -0,0 +1,148 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/artifactregistry/v1/export.proto + +// Protobuf Java Version: 3.25.8 +package com.google.devtools.artifactregistry.v1; + +public final class ExportProto { + private ExportProto() {} + + 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_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/devtools/artifactregistry/v1/ex" + + "port.proto\022#google.devtools.artifactregi" + + "stry.v1\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032.google/devt" + + "ools/artifactregistry/v1/file.proto\0321goo" + + "gle/devtools/artifactregistry/v1/version" + + ".proto\"\235\002\n\025ExportArtifactRequest\022F\n\016sour" + + "ce_version\030\002 \001(\tB,\372A)\n\'artifactregistry." + + "googleapis.com/VersionH\000\022>\n\nsource_tag\030\004" + + " \001(\tB(\372A%\n#artifactregistry.googleapis.c" + + "om/TagH\000\022\022\n\010gcs_path\030\003 \001(\tH\001\022F\n\nreposito" + + "ry\030\001 \001(\tB2\340A\002\372A,\n*artifactregistry.googl" + + "eapis.com/RepositoryB\021\n\017source_artifactB" + + "\r\n\013destination\"`\n\026ExportArtifactResponse" + + "\022F\n\020exported_version\030\001 \001(\0132,.google.devt" + + "ools.artifactregistry.v1.Version\"\251\002\n\026Exp" + + "ortArtifactMetadata\022`\n\016exported_files\030\001 " + + "\003(\0132H.google.devtools.artifactregistry.v" + + "1.ExportArtifactMetadata.ExportedFile\032\254\001" + + "\n\014ExportedFile\022\031\n\017gcs_object_path\030\002 \001(\tH" + + "\000\0227\n\004name\030\001 \001(\tB)\372A&\n$artifactregistry.g" + + "oogleapis.com/File\0229\n\006hashes\030\003 \003(\0132).goo" + + "gle.devtools.artifactregistry.v1.HashB\r\n" + + "\013destinationB\366\001\n\'com.google.devtools.art" + + "ifactregistry.v1B\013ExportProtoP\001ZPcloud.g" + + "oogle.com/go/artifactregistry/apiv1/arti" + + "factregistrypb;artifactregistrypb\252\002 Goog" + + "le.Cloud.ArtifactRegistry.V1\312\002 Google\\Cl" + + "oud\\ArtifactRegistry\\V1\352\002#Google::Cloud:" + + ":ArtifactRegistry::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.devtools.artifactregistry.v1.FileProto.getDescriptor(), + com.google.devtools.artifactregistry.v1.VersionProto.getDescriptor(), + }); + internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_ExportArtifactRequest_descriptor, + new java.lang.String[] { + "SourceVersion", + "SourceTag", + "GcsPath", + "Repository", + "SourceArtifact", + "Destination", + }); + internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_ExportArtifactResponse_descriptor, + new java.lang.String[] { + "ExportedVersion", + }); + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor, + new java.lang.String[] { + "ExportedFiles", + }); + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor = + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_descriptor + .getNestedTypes() + .get(0); + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_artifactregistry_v1_ExportArtifactMetadata_ExportedFile_descriptor, + new java.lang.String[] { + "GcsObjectPath", "Name", "Hashes", "Destination", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.devtools.artifactregistry.v1.FileProto.getDescriptor(); + com.google.devtools.artifactregistry.v1.VersionProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifest.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifest.java new file mode 100644 index 000000000000..7ca5ff1425b1 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifest.java @@ -0,0 +1,1939 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/artifactregistry/v1/artifact.proto + +// Protobuf Java Version: 3.25.8 +package com.google.devtools.artifactregistry.v1; + +/** + * + * + *
+ * Details of a single image manifest within a multi-arch image.
+ * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ImageManifest} + */ +public final class ImageManifest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.artifactregistry.v1.ImageManifest) + ImageManifestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ImageManifest.newBuilder() to construct. + private ImageManifest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ImageManifest() { + architecture_ = ""; + os_ = ""; + digest_ = ""; + mediaType_ = ""; + osVersion_ = ""; + osFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); + variant_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ImageManifest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ArtifactProto + .internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ArtifactProto + .internal_static_google_devtools_artifactregistry_v1_ImageManifest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ImageManifest.class, + com.google.devtools.artifactregistry.v1.ImageManifest.Builder.class); + } + + public static final int ARCHITECTURE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object architecture_ = ""; + + /** + * + * + *
+   * Optional. The CPU architecture of the image.
+   * Values are provided by the Docker client and are not validated by Artifact
+   * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+   * "riscv64", "mips64le", etc.
+   * 
+ * + * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The architecture. + */ + @java.lang.Override + public java.lang.String getArchitecture() { + java.lang.Object ref = architecture_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + architecture_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The CPU architecture of the image.
+   * Values are provided by the Docker client and are not validated by Artifact
+   * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+   * "riscv64", "mips64le", etc.
+   * 
+ * + * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for architecture. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArchitectureBytes() { + java.lang.Object ref = architecture_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + architecture_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object os_ = ""; + + /** + * + * + *
+   * Optional. The operating system of the image.
+   * Values are provided by the Docker client and are not validated by Artifact
+   * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+   * 
+ * + * string os = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The os. + */ + @java.lang.Override + public java.lang.String getOs() { + java.lang.Object ref = os_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + os_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The operating system of the image.
+   * Values are provided by the Docker client and are not validated by Artifact
+   * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+   * 
+ * + * string os = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for os. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOsBytes() { + java.lang.Object ref = os_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + os_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIGEST_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object digest_ = ""; + + /** + * + * + *
+   * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+   * 
+ * + * string digest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The digest. + */ + @java.lang.Override + public java.lang.String getDigest() { + java.lang.Object ref = digest_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + digest_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+   * 
+ * + * string digest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for digest. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDigestBytes() { + java.lang.Object ref = digest_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + digest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEDIA_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object mediaType_ = ""; + + /** + * + * + *
+   * Optional. The media type of the manifest, e.g.,
+   * "application/vnd.docker.distribution.manifest.v2+json"
+   * 
+ * + * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mediaType. + */ + @java.lang.Override + public java.lang.String getMediaType() { + java.lang.Object ref = mediaType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mediaType_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The media type of the manifest, e.g.,
+   * "application/vnd.docker.distribution.manifest.v2+json"
+   * 
+ * + * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mediaType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMediaTypeBytes() { + java.lang.Object ref = mediaType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mediaType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OS_VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object osVersion_ = ""; + + /** + * + * + *
+   * Optional. The OS version of the image, for example on Windows
+   * `10.0.14393.1066`.
+   * 
+ * + * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The osVersion. + */ + @java.lang.Override + public java.lang.String getOsVersion() { + java.lang.Object ref = osVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + osVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The OS version of the image, for example on Windows
+   * `10.0.14393.1066`.
+   * 
+ * + * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for osVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOsVersionBytes() { + java.lang.Object ref = osVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + osVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OS_FEATURES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList osFeatures_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The required OS features for the image, for example on Windows
+   * `win32k`.
+   * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the osFeatures. + */ + public com.google.protobuf.ProtocolStringList getOsFeaturesList() { + return osFeatures_; + } + + /** + * + * + *
+   * Optional. The required OS features for the image, for example on Windows
+   * `win32k`.
+   * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of osFeatures. + */ + public int getOsFeaturesCount() { + return osFeatures_.size(); + } + + /** + * + * + *
+   * Optional. The required OS features for the image, for example on Windows
+   * `win32k`.
+   * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The osFeatures at the given index. + */ + public java.lang.String getOsFeatures(int index) { + return osFeatures_.get(index); + } + + /** + * + * + *
+   * Optional. The required OS features for the image, for example on Windows
+   * `win32k`.
+   * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the osFeatures at the given index. + */ + public com.google.protobuf.ByteString getOsFeaturesBytes(int index) { + return osFeatures_.getByteString(index); + } + + public static final int VARIANT_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object variant_ = ""; + + /** + * + * + *
+   * Optional. The variant of the CPU in the image, for example `v7` to specify
+   * ARMv7 when architecture is `arm`.
+   * 
+ * + * string variant = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variant. + */ + @java.lang.Override + public java.lang.String getVariant() { + java.lang.Object ref = variant_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variant_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The variant of the CPU in the image, for example `v7` to specify
+   * ARMv7 when architecture is `arm`.
+   * 
+ * + * string variant = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for variant. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVariantBytes() { + java.lang.Object ref = variant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variant_ = 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(architecture_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, architecture_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(os_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, os_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, digest_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mediaType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, mediaType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, osVersion_); + } + for (int i = 0; i < osFeatures_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, osFeatures_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variant_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, variant_); + } + 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(architecture_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, architecture_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(os_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, os_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(digest_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, digest_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mediaType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, mediaType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, osVersion_); + } + { + int dataSize = 0; + for (int i = 0; i < osFeatures_.size(); i++) { + dataSize += computeStringSizeNoTag(osFeatures_.getRaw(i)); + } + size += dataSize; + size += 1 * getOsFeaturesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variant_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, variant_); + } + 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.devtools.artifactregistry.v1.ImageManifest)) { + return super.equals(obj); + } + com.google.devtools.artifactregistry.v1.ImageManifest other = + (com.google.devtools.artifactregistry.v1.ImageManifest) obj; + + if (!getArchitecture().equals(other.getArchitecture())) return false; + if (!getOs().equals(other.getOs())) return false; + if (!getDigest().equals(other.getDigest())) return false; + if (!getMediaType().equals(other.getMediaType())) return false; + if (!getOsVersion().equals(other.getOsVersion())) return false; + if (!getOsFeaturesList().equals(other.getOsFeaturesList())) return false; + if (!getVariant().equals(other.getVariant())) 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) + ARCHITECTURE_FIELD_NUMBER; + hash = (53 * hash) + getArchitecture().hashCode(); + hash = (37 * hash) + OS_FIELD_NUMBER; + hash = (53 * hash) + getOs().hashCode(); + hash = (37 * hash) + DIGEST_FIELD_NUMBER; + hash = (53 * hash) + getDigest().hashCode(); + hash = (37 * hash) + MEDIA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMediaType().hashCode(); + hash = (37 * hash) + OS_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getOsVersion().hashCode(); + if (getOsFeaturesCount() > 0) { + hash = (37 * hash) + OS_FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getOsFeaturesList().hashCode(); + } + hash = (37 * hash) + VARIANT_FIELD_NUMBER; + hash = (53 * hash) + getVariant().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest 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.devtools.artifactregistry.v1.ImageManifest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest 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.devtools.artifactregistry.v1.ImageManifest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest 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.devtools.artifactregistry.v1.ImageManifest 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 of a single image manifest within a multi-arch image.
+   * 
+ * + * Protobuf type {@code google.devtools.artifactregistry.v1.ImageManifest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.artifactregistry.v1.ImageManifest) + com.google.devtools.artifactregistry.v1.ImageManifestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.devtools.artifactregistry.v1.ArtifactProto + .internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.devtools.artifactregistry.v1.ArtifactProto + .internal_static_google_devtools_artifactregistry_v1_ImageManifest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.devtools.artifactregistry.v1.ImageManifest.class, + com.google.devtools.artifactregistry.v1.ImageManifest.Builder.class); + } + + // Construct using com.google.devtools.artifactregistry.v1.ImageManifest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + architecture_ = ""; + os_ = ""; + digest_ = ""; + mediaType_ = ""; + osVersion_ = ""; + osFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); + variant_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.devtools.artifactregistry.v1.ArtifactProto + .internal_static_google_devtools_artifactregistry_v1_ImageManifest_descriptor; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ImageManifest getDefaultInstanceForType() { + return com.google.devtools.artifactregistry.v1.ImageManifest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ImageManifest build() { + com.google.devtools.artifactregistry.v1.ImageManifest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.devtools.artifactregistry.v1.ImageManifest buildPartial() { + com.google.devtools.artifactregistry.v1.ImageManifest result = + new com.google.devtools.artifactregistry.v1.ImageManifest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.devtools.artifactregistry.v1.ImageManifest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.architecture_ = architecture_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.os_ = os_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.digest_ = digest_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mediaType_ = mediaType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.osVersion_ = osVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + osFeatures_.makeImmutable(); + result.osFeatures_ = osFeatures_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.variant_ = variant_; + } + } + + @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.devtools.artifactregistry.v1.ImageManifest) { + return mergeFrom((com.google.devtools.artifactregistry.v1.ImageManifest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.devtools.artifactregistry.v1.ImageManifest other) { + if (other == com.google.devtools.artifactregistry.v1.ImageManifest.getDefaultInstance()) + return this; + if (!other.getArchitecture().isEmpty()) { + architecture_ = other.architecture_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOs().isEmpty()) { + os_ = other.os_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDigest().isEmpty()) { + digest_ = other.digest_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getMediaType().isEmpty()) { + mediaType_ = other.mediaType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOsVersion().isEmpty()) { + osVersion_ = other.osVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.osFeatures_.isEmpty()) { + if (osFeatures_.isEmpty()) { + osFeatures_ = other.osFeatures_; + bitField0_ |= 0x00000020; + } else { + ensureOsFeaturesIsMutable(); + osFeatures_.addAll(other.osFeatures_); + } + onChanged(); + } + if (!other.getVariant().isEmpty()) { + variant_ = other.variant_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + architecture_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + os_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + digest_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + mediaType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + osVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureOsFeaturesIsMutable(); + osFeatures_.add(s); + break; + } // case 50 + case 58: + { + variant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + 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 architecture_ = ""; + + /** + * + * + *
+     * Optional. The CPU architecture of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+     * "riscv64", "mips64le", etc.
+     * 
+ * + * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The architecture. + */ + public java.lang.String getArchitecture() { + java.lang.Object ref = architecture_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + architecture_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The CPU architecture of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+     * "riscv64", "mips64le", etc.
+     * 
+ * + * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for architecture. + */ + public com.google.protobuf.ByteString getArchitectureBytes() { + java.lang.Object ref = architecture_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + architecture_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The CPU architecture of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+     * "riscv64", "mips64le", etc.
+     * 
+ * + * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitecture(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + architecture_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The CPU architecture of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+     * "riscv64", "mips64le", etc.
+     * 
+ * + * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearArchitecture() { + architecture_ = getDefaultInstance().getArchitecture(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The CPU architecture of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+     * "riscv64", "mips64le", etc.
+     * 
+ * + * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for architecture to set. + * @return This builder for chaining. + */ + public Builder setArchitectureBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + architecture_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object os_ = ""; + + /** + * + * + *
+     * Optional. The operating system of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+     * 
+ * + * string os = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The os. + */ + public java.lang.String getOs() { + java.lang.Object ref = os_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + os_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The operating system of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+     * 
+ * + * string os = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for os. + */ + public com.google.protobuf.ByteString getOsBytes() { + java.lang.Object ref = os_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + os_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The operating system of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+     * 
+ * + * string os = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The os to set. + * @return This builder for chaining. + */ + public Builder setOs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + os_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The operating system of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+     * 
+ * + * string os = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOs() { + os_ = getDefaultInstance().getOs(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The operating system of the image.
+     * Values are provided by the Docker client and are not validated by Artifact
+     * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+     * 
+ * + * string os = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for os to set. + * @return This builder for chaining. + */ + public Builder setOsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + os_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object digest_ = ""; + + /** + * + * + *
+     * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+     * 
+ * + * string digest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The digest. + */ + public java.lang.String getDigest() { + java.lang.Object ref = digest_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + digest_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+     * 
+ * + * string digest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for digest. + */ + public com.google.protobuf.ByteString getDigestBytes() { + java.lang.Object ref = digest_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + digest_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+     * 
+ * + * string digest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The digest to set. + * @return This builder for chaining. + */ + public Builder setDigest(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + digest_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+     * 
+ * + * string digest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDigest() { + digest_ = getDefaultInstance().getDigest(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+     * 
+ * + * string digest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for digest to set. + * @return This builder for chaining. + */ + public Builder setDigestBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + digest_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object mediaType_ = ""; + + /** + * + * + *
+     * Optional. The media type of the manifest, e.g.,
+     * "application/vnd.docker.distribution.manifest.v2+json"
+     * 
+ * + * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mediaType. + */ + public java.lang.String getMediaType() { + java.lang.Object ref = mediaType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mediaType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The media type of the manifest, e.g.,
+     * "application/vnd.docker.distribution.manifest.v2+json"
+     * 
+ * + * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mediaType. + */ + public com.google.protobuf.ByteString getMediaTypeBytes() { + java.lang.Object ref = mediaType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mediaType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The media type of the manifest, e.g.,
+     * "application/vnd.docker.distribution.manifest.v2+json"
+     * 
+ * + * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mediaType to set. + * @return This builder for chaining. + */ + public Builder setMediaType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mediaType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The media type of the manifest, e.g.,
+     * "application/vnd.docker.distribution.manifest.v2+json"
+     * 
+ * + * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMediaType() { + mediaType_ = getDefaultInstance().getMediaType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The media type of the manifest, e.g.,
+     * "application/vnd.docker.distribution.manifest.v2+json"
+     * 
+ * + * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for mediaType to set. + * @return This builder for chaining. + */ + public Builder setMediaTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mediaType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object osVersion_ = ""; + + /** + * + * + *
+     * Optional. The OS version of the image, for example on Windows
+     * `10.0.14393.1066`.
+     * 
+ * + * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The osVersion. + */ + public java.lang.String getOsVersion() { + java.lang.Object ref = osVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + osVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The OS version of the image, for example on Windows
+     * `10.0.14393.1066`.
+     * 
+ * + * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for osVersion. + */ + public com.google.protobuf.ByteString getOsVersionBytes() { + java.lang.Object ref = osVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + osVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The OS version of the image, for example on Windows
+     * `10.0.14393.1066`.
+     * 
+ * + * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The osVersion to set. + * @return This builder for chaining. + */ + public Builder setOsVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + osVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The OS version of the image, for example on Windows
+     * `10.0.14393.1066`.
+     * 
+ * + * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOsVersion() { + osVersion_ = getDefaultInstance().getOsVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The OS version of the image, for example on Windows
+     * `10.0.14393.1066`.
+     * 
+ * + * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for osVersion to set. + * @return This builder for chaining. + */ + public Builder setOsVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + osVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList osFeatures_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureOsFeaturesIsMutable() { + if (!osFeatures_.isModifiable()) { + osFeatures_ = new com.google.protobuf.LazyStringArrayList(osFeatures_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. The required OS features for the image, for example on Windows
+     * `win32k`.
+     * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the osFeatures. + */ + public com.google.protobuf.ProtocolStringList getOsFeaturesList() { + osFeatures_.makeImmutable(); + return osFeatures_; + } + + /** + * + * + *
+     * Optional. The required OS features for the image, for example on Windows
+     * `win32k`.
+     * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of osFeatures. + */ + public int getOsFeaturesCount() { + return osFeatures_.size(); + } + + /** + * + * + *
+     * Optional. The required OS features for the image, for example on Windows
+     * `win32k`.
+     * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The osFeatures at the given index. + */ + public java.lang.String getOsFeatures(int index) { + return osFeatures_.get(index); + } + + /** + * + * + *
+     * Optional. The required OS features for the image, for example on Windows
+     * `win32k`.
+     * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the osFeatures at the given index. + */ + public com.google.protobuf.ByteString getOsFeaturesBytes(int index) { + return osFeatures_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The required OS features for the image, for example on Windows
+     * `win32k`.
+     * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The osFeatures to set. + * @return This builder for chaining. + */ + public Builder setOsFeatures(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOsFeaturesIsMutable(); + osFeatures_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The required OS features for the image, for example on Windows
+     * `win32k`.
+     * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The osFeatures to add. + * @return This builder for chaining. + */ + public Builder addOsFeatures(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOsFeaturesIsMutable(); + osFeatures_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The required OS features for the image, for example on Windows
+     * `win32k`.
+     * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The osFeatures to add. + * @return This builder for chaining. + */ + public Builder addAllOsFeatures(java.lang.Iterable values) { + ensureOsFeaturesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, osFeatures_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The required OS features for the image, for example on Windows
+     * `win32k`.
+     * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOsFeatures() { + osFeatures_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The required OS features for the image, for example on Windows
+     * `win32k`.
+     * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the osFeatures to add. + * @return This builder for chaining. + */ + public Builder addOsFeaturesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOsFeaturesIsMutable(); + osFeatures_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object variant_ = ""; + + /** + * + * + *
+     * Optional. The variant of the CPU in the image, for example `v7` to specify
+     * ARMv7 when architecture is `arm`.
+     * 
+ * + * string variant = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variant. + */ + public java.lang.String getVariant() { + java.lang.Object ref = variant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The variant of the CPU in the image, for example `v7` to specify
+     * ARMv7 when architecture is `arm`.
+     * 
+ * + * string variant = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for variant. + */ + public com.google.protobuf.ByteString getVariantBytes() { + java.lang.Object ref = variant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + variant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The variant of the CPU in the image, for example `v7` to specify
+     * ARMv7 when architecture is `arm`.
+     * 
+ * + * string variant = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The variant to set. + * @return This builder for chaining. + */ + public Builder setVariant(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + variant_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The variant of the CPU in the image, for example `v7` to specify
+     * ARMv7 when architecture is `arm`.
+     * 
+ * + * string variant = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVariant() { + variant_ = getDefaultInstance().getVariant(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The variant of the CPU in the image, for example `v7` to specify
+     * ARMv7 when architecture is `arm`.
+     * 
+ * + * string variant = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for variant to set. + * @return This builder for chaining. + */ + public Builder setVariantBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + variant_ = value; + bitField0_ |= 0x00000040; + 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.devtools.artifactregistry.v1.ImageManifest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.artifactregistry.v1.ImageManifest) + private static final com.google.devtools.artifactregistry.v1.ImageManifest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.devtools.artifactregistry.v1.ImageManifest(); + } + + public static com.google.devtools.artifactregistry.v1.ImageManifest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageManifest 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.devtools.artifactregistry.v1.ImageManifest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifestOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifestOrBuilder.java new file mode 100644 index 000000000000..8b14e3eca779 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ImageManifestOrBuilder.java @@ -0,0 +1,256 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/artifactregistry/v1/artifact.proto + +// Protobuf Java Version: 3.25.8 +package com.google.devtools.artifactregistry.v1; + +public interface ImageManifestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.artifactregistry.v1.ImageManifest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The CPU architecture of the image.
+   * Values are provided by the Docker client and are not validated by Artifact
+   * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+   * "riscv64", "mips64le", etc.
+   * 
+ * + * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The architecture. + */ + java.lang.String getArchitecture(); + + /** + * + * + *
+   * Optional. The CPU architecture of the image.
+   * Values are provided by the Docker client and are not validated by Artifact
+   * Registry. Example values include "amd64", "arm64", "ppc64le", "s390x",
+   * "riscv64", "mips64le", etc.
+   * 
+ * + * string architecture = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for architecture. + */ + com.google.protobuf.ByteString getArchitectureBytes(); + + /** + * + * + *
+   * Optional. The operating system of the image.
+   * Values are provided by the Docker client and are not validated by Artifact
+   * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+   * 
+ * + * string os = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The os. + */ + java.lang.String getOs(); + + /** + * + * + *
+   * Optional. The operating system of the image.
+   * Values are provided by the Docker client and are not validated by Artifact
+   * Registry. Example values include "linux", "windows", "darwin", "aix", etc.
+   * 
+ * + * string os = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for os. + */ + com.google.protobuf.ByteString getOsBytes(); + + /** + * + * + *
+   * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+   * 
+ * + * string digest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The digest. + */ + java.lang.String getDigest(); + + /** + * + * + *
+   * Optional. The manifest digest, in the format "sha256:<sha256_hex_digest>".
+   * 
+ * + * string digest = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for digest. + */ + com.google.protobuf.ByteString getDigestBytes(); + + /** + * + * + *
+   * Optional. The media type of the manifest, e.g.,
+   * "application/vnd.docker.distribution.manifest.v2+json"
+   * 
+ * + * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mediaType. + */ + java.lang.String getMediaType(); + + /** + * + * + *
+   * Optional. The media type of the manifest, e.g.,
+   * "application/vnd.docker.distribution.manifest.v2+json"
+   * 
+ * + * string media_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mediaType. + */ + com.google.protobuf.ByteString getMediaTypeBytes(); + + /** + * + * + *
+   * Optional. The OS version of the image, for example on Windows
+   * `10.0.14393.1066`.
+   * 
+ * + * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The osVersion. + */ + java.lang.String getOsVersion(); + + /** + * + * + *
+   * Optional. The OS version of the image, for example on Windows
+   * `10.0.14393.1066`.
+   * 
+ * + * string os_version = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for osVersion. + */ + com.google.protobuf.ByteString getOsVersionBytes(); + + /** + * + * + *
+   * Optional. The required OS features for the image, for example on Windows
+   * `win32k`.
+   * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the osFeatures. + */ + java.util.List getOsFeaturesList(); + + /** + * + * + *
+   * Optional. The required OS features for the image, for example on Windows
+   * `win32k`.
+   * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of osFeatures. + */ + int getOsFeaturesCount(); + + /** + * + * + *
+   * Optional. The required OS features for the image, for example on Windows
+   * `win32k`.
+   * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The osFeatures at the given index. + */ + java.lang.String getOsFeatures(int index); + + /** + * + * + *
+   * Optional. The required OS features for the image, for example on Windows
+   * `win32k`.
+   * 
+ * + * repeated string os_features = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the osFeatures at the given index. + */ + com.google.protobuf.ByteString getOsFeaturesBytes(int index); + + /** + * + * + *
+   * Optional. The variant of the CPU in the image, for example `v7` to specify
+   * ARMv7 when architecture is `arm`.
+   * 
+ * + * string variant = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variant. + */ + java.lang.String getVariant(); + + /** + * + * + *
+   * Optional. The variant of the CPU in the image, for example `v7` to specify
+   * ARMv7 when architecture is `arm`.
+   * 
+ * + * string variant = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for variant. + */ + com.google.protobuf.ByteString getVariantBytes(); +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java index 1aa845f90155..0d1900de61b2 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/Repository.java @@ -193,6 +193,16 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { * GENERIC = 11; */ GENERIC(11), + /** + * + * + *
+     * Ruby package format.
+     * 
+ * + * RUBY = 12; + */ + RUBY(12), UNRECOGNIZED(-1), ; @@ -306,6 +316,17 @@ public enum Format implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GENERIC_VALUE = 11; + /** + * + * + *
+     * Ruby package format.
+     * 
+ * + * RUBY = 12; + */ + public static final int RUBY_VALUE = 12; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -350,6 +371,8 @@ public static Format forNumber(int value) { return GO; case 11: return GENERIC; + case 12: + return RUBY; default: return null; } @@ -2350,7 +2373,8 @@ public enum EnablementConfig implements com.google.protobuf.ProtocolMessageEnum * * *
-       * Not set. This will be treated as INHERITED.
+       * Not set. This will be treated as INHERITED for Docker repositories and
+       * DISABLED for non-Docker repositories.
        * 
* * ENABLEMENT_CONFIG_UNSPECIFIED = 0; @@ -2384,7 +2408,8 @@ public enum EnablementConfig implements com.google.protobuf.ProtocolMessageEnum * * *
-       * Not set. This will be treated as INHERITED.
+       * Not set. This will be treated as INHERITED for Docker repositories and
+       * DISABLED for non-Docker repositories.
        * 
* * ENABLEMENT_CONFIG_UNSPECIFIED = 0; @@ -5032,7 +5057,7 @@ public long getSizeBytes() { * * *
-   * Output only. If set, the repository satisfies physical zone separation.
+   * Output only. Whether or not this repository satisfies PZS.
    * 
* * bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5158,7 +5183,7 @@ public boolean getDisallowUnspecifiedMode() { * * *
-   * Output only. If set, the repository satisfies physical zone isolation.
+   * Output only. Whether or not this repository satisfies PZI.
    * 
* * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -8791,7 +8816,7 @@ public Builder clearSizeBytes() { * * *
-     * Output only. If set, the repository satisfies physical zone separation.
+     * Output only. Whether or not this repository satisfies PZS.
      * 
* * bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -8807,7 +8832,7 @@ public boolean getSatisfiesPzs() { * * *
-     * Output only. If set, the repository satisfies physical zone separation.
+     * Output only. Whether or not this repository satisfies PZS.
      * 
* * bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -8827,7 +8852,7 @@ public Builder setSatisfiesPzs(boolean value) { * * *
-     * Output only. If set, the repository satisfies physical zone separation.
+     * Output only. Whether or not this repository satisfies PZS.
      * 
* * bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9200,7 +9225,7 @@ public Builder clearDisallowUnspecifiedMode() { * * *
-     * Output only. If set, the repository satisfies physical zone isolation.
+     * Output only. Whether or not this repository satisfies PZI.
      * 
* * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9216,7 +9241,7 @@ public boolean getSatisfiesPzi() { * * *
-     * Output only. If set, the repository satisfies physical zone isolation.
+     * Output only. Whether or not this repository satisfies PZI.
      * 
* * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -9236,7 +9261,7 @@ public Builder setSatisfiesPzi(boolean value) { * * *
-     * Output only. If set, the repository satisfies physical zone isolation.
+     * Output only. Whether or not this repository satisfies PZI.
      * 
* * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java index 4c164085fb44..24dd720fd021 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryOrBuilder.java @@ -624,7 +624,7 @@ com.google.devtools.artifactregistry.v1.CleanupPolicy getCleanupPoliciesOrThrow( * * *
-   * Output only. If set, the repository satisfies physical zone separation.
+   * Output only. Whether or not this repository satisfies PZS.
    * 
* * bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -713,7 +713,7 @@ com.google.devtools.artifactregistry.v1.CleanupPolicy getCleanupPoliciesOrThrow( * * *
-   * Output only. If set, the repository satisfies physical zone isolation.
+   * Output only. Whether or not this repository satisfies PZI.
    * 
* * bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java index d4e9aa5af70d..66479c072a12 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/RepositoryProto.java @@ -339,7 +339,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010upstream\032*\n" + "\026CommonRemoteRepository\022\020\n" + "\003uri\030\001 \001(\tB\003\340A\002B\017\n\r" - + "remote_source\"\264\024\n\n" + + "remote_source\"\277\024\n\n" + "Repository\022]\n" + "\014maven_config\030\t \001(\0132E.google.devtools.artifa" + "ctregistry.v1.Repository.MavenRepositoryConfigH\000\022_\n\r" @@ -406,7 +406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CleanupPoliciesEntry\022\013\n" + "\003key\030\001 \001(\t\022A\n" + "\005value\030\002 \001(" - + "\01322.google.devtools.artifactregistry.v1.CleanupPolicy:\0028\001\"|\n" + + "\01322.google.devtools.artifactregistry.v1.CleanupPolicy:\0028\001\"\206\001\n" + "\006Format\022\026\n" + "\022FORMAT_UNSPECIFIED\020\000\022\n\n" + "\006DOCKER\020\001\022\t\n" @@ -418,33 +418,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003KFP\020\t\022\006\n" + "\002GO\020\n" + "\022\013\n" - + "\007GENERIC\020\013\"d\n" + + "\007GENERIC\020\013\022\010\n" + + "\004RUBY\020\014\"d\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\027\n" + "\023STANDARD_REPOSITORY\020\001\022\026\n" + "\022VIRTUAL_REPOSITORY\020\002\022\025\n" + "\021REMOTE_REPOSITORY\020\003:r\352Ao\n" - + "*artifactregistry.googleapis.com/Repository\022Aprojects/{project}/locat" - + "ions/{location}/repositories/{repository}B\017\n\r" + + "*artifactregistry.googleapis.com/Repository\022Aprojects/{pro" + + "ject}/locations/{location}/repositories/{repository}B\017\n\r" + "format_configB\r\n" + "\013mode_config\"\260\001\n" + "\027ListRepositoriesRequest\022B\n" - + "\006parent\030\001 \001(\tB2\340" - + "A\002\372A,\022*artifactregistry.googleapis.com/Repository\022\021\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*artifactregistry.googleapis.com/Repository\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"z\n" + "\030ListRepositoriesResponse\022E\n" - + "\014repositories\030\001" - + " \003(\0132/.google.devtools.artifactregistry.v1.Repository\022\027\n" + + "\014repositories\030\001 \003(\0132/.goog" + + "le.devtools.artifactregistry.v1.Repository\022\027\n" + "\017next_page_token\030\002 \001(\t\"X\n" + "\024GetRepositoryRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*artifactregistry.googleapis.com/Repository\"\303\001\n" + "\027CreateRepositoryRequest\022B\n" - + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*" - + "artifactregistry.googleapis.com/Repository\022\032\n\r" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*artifactregistry.googleapis.com/Repository\022\032\n\r" + "repository_id\030\002 \001(\tB\003\340A\002\022H\n\n" + "repository\030\003" + " \001(\0132/.google.devtools.artifactregistry.v1.RepositoryB\003\340A\002\"\217\001\n" @@ -454,15 +455,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027DeleteRepositoryRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*artifactregistry.googleapis.com/RepositoryB\347\003\n" - + "\'com.google.devtools.artifactregistry.v1B\017RepositoryP" - + "rotoP\001ZPcloud.google.com/go/artifactregi" - + "stry/apiv1/artifactregistrypb;artifactregistrypb\252\002" - + " Google.Cloud.ArtifactRegistry.V1\312\002" - + " Google\\Cloud\\ArtifactRegistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1\352Ak\n" - + "*secretmanager.googleapis.com/SecretVers" - + "ion\022=projects/{project}/secrets/{secret}/versions/{secret_version}\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojects" - + "/{project}/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3" + + "\'com.google.devtools.artifactregistry.v1B\017" + + "RepositoryProtoP\001ZPcloud.google.com/go/a" + + "rtifactregistry/apiv1/artifactregistrypb;artifactregistrypb\252\002" + + " Google.Cloud.ArtifactRegistry.V1\312\002 Google\\Cloud\\ArtifactRe" + + "gistry\\V1\352\002#Google::Cloud::ArtifactRegistry::V1\352Ak\n" + + "*secretmanager.googleapis.com/SecretVersion\022=projects/{project}/secre" + + "ts/{secret}/versions/{secret_version}\352A|\n" + + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locations/{locatio" + + "n}/namespaces/{namespace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java index 20d6d262ef99..0dba24bd534e 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/ServiceProto.java @@ -48,310 +48,319 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/artifactregistry/v1/apt_artifact.proto\032" + "2google/devtools/artifactregistry/v1/art" + "ifact.proto\0324google/devtools/artifactreg" - + "istry/v1/attachment.proto\032.google/devtoo" - + "ls/artifactregistry/v1/file.proto\0321googl" - + "e/devtools/artifactregistry/v1/package.p" - + "roto\0324google/devtools/artifactregistry/v" - + "1/repository.proto\032.google/devtools/arti" - + "factregistry/v1/rule.proto\0322google/devto" - + "ols/artifactregistry/v1/settings.proto\032-" - + "google/devtools/artifactregistry/v1/tag." - + "proto\0321google/devtools/artifactregistry/" - + "v1/version.proto\0326google/devtools/artifa" - + "ctregistry/v1/vpcsc_config.proto\0326google" - + "/devtools/artifactregistry/v1/yum_artifa" - + "ct.proto\032\036google/iam/v1/iam_policy.proto" - + "\032\032google/iam/v1/policy.proto\032#google/lon" - + "grunning/operations.proto\032\033google/protob" - + "uf/empty.proto\"\023\n\021OperationMetadata2\352W\n\020" - + "ArtifactRegistry\022\341\001\n\020ListDockerImages\022<." + + "istry/v1/attachment.proto\0320google/devtoo" + + "ls/artifactregistry/v1/export.proto\032.goo" + + "gle/devtools/artifactregistry/v1/file.pr" + + "oto\0321google/devtools/artifactregistry/v1" + + "/package.proto\0324google/devtools/artifact" + + "registry/v1/repository.proto\032.google/dev" + + "tools/artifactregistry/v1/rule.proto\0322go" + + "ogle/devtools/artifactregistry/v1/settin" + + "gs.proto\032-google/devtools/artifactregist" + + "ry/v1/tag.proto\0321google/devtools/artifac" + + "tregistry/v1/version.proto\0326google/devto" + + "ols/artifactregistry/v1/vpcsc_config.pro" + + "to\0326google/devtools/artifactregistry/v1/" + + "yum_artifact.proto\032\036google/iam/v1/iam_po" + + "licy.proto\032\032google/iam/v1/policy.proto\032#" + + "google/longrunning/operations.proto\032\033goo" + + "gle/protobuf/empty.proto\"\023\n\021OperationMet" + + "adata2\246Z\n\020ArtifactRegistry\022\341\001\n\020ListDocke" + + "rImages\022<.google.devtools.artifactregist" + + "ry.v1.ListDockerImagesRequest\032=.google.d" + + "evtools.artifactregistry.v1.ListDockerIm" + + "agesResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1/{pare" + + "nt=projects/*/locations/*/repositories/*" + + "}/dockerImages\022\316\001\n\016GetDockerImage\022:.goog" + + "le.devtools.artifactregistry.v1.GetDocke" + + "rImageRequest\0320.google.devtools.artifact" + + "registry.v1.DockerImage\"N\332A\004name\202\323\344\223\002A\022?" + + "/v1/{name=projects/*/locations/*/reposit" + + "ories/*/dockerImages/*}\022\351\001\n\022ListMavenArt" + + "ifacts\022>.google.devtools.artifactregistr" + + "y.v1.ListMavenArtifactsRequest\032?.google." + + "devtools.artifactregistry.v1.ListMavenAr" + + "tifactsResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{p" + + "arent=projects/*/locations/*/repositorie" + + "s/*}/mavenArtifacts\022\326\001\n\020GetMavenArtifact" + + "\022<.google.devtools.artifactregistry.v1.G" + + "etMavenArtifactRequest\0322.google.devtools" + + ".artifactregistry.v1.MavenArtifact\"P\332A\004n" + + "ame\202\323\344\223\002C\022A/v1/{name=projects/*/location" + + "s/*/repositories/*/mavenArtifacts/*}\022\335\001\n" + + "\017ListNpmPackages\022;.google.devtools.artif" + + "actregistry.v1.ListNpmPackagesRequest\032<." + "google.devtools.artifactregistry.v1.List" - + "DockerImagesRequest\032=.google.devtools.ar" - + "tifactregistry.v1.ListDockerImagesRespon" - + "se\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=project" - + "s/*/locations/*/repositories/*}/dockerIm" - + "ages\022\316\001\n\016GetDockerImage\022:.google.devtool" - + "s.artifactregistry.v1.GetDockerImageRequ" - + "est\0320.google.devtools.artifactregistry.v" - + "1.DockerImage\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=" - + "projects/*/locations/*/repositories/*/do" - + "ckerImages/*}\022\351\001\n\022ListMavenArtifacts\022>.g" - + "oogle.devtools.artifactregistry.v1.ListM" - + "avenArtifactsRequest\032?.google.devtools.a" - + "rtifactregistry.v1.ListMavenArtifactsRes" - + "ponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=proj" - + "ects/*/locations/*/repositories/*}/maven" - + "Artifacts\022\326\001\n\020GetMavenArtifact\022<.google." - + "devtools.artifactregistry.v1.GetMavenArt" - + "ifactRequest\0322.google.devtools.artifactr" - + "egistry.v1.MavenArtifact\"P\332A\004name\202\323\344\223\002C\022" - + "A/v1/{name=projects/*/locations/*/reposi" - + "tories/*/mavenArtifacts/*}\022\335\001\n\017ListNpmPa" - + "ckages\022;.google.devtools.artifactregistr" - + "y.v1.ListNpmPackagesRequest\032<.google.dev" - + "tools.artifactregistry.v1.ListNpmPackage" - + "sResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=" - + "projects/*/locations/*/repositories/*}/n" - + "pmPackages\022\312\001\n\rGetNpmPackage\0229.google.de" - + "vtools.artifactregistry.v1.GetNpmPackage" - + "Request\032/.google.devtools.artifactregist" - + "ry.v1.NpmPackage\"M\332A\004name\202\323\344\223\002@\022>/v1/{na" - + "me=projects/*/locations/*/repositories/*" - + "/npmPackages/*}\022\351\001\n\022ListPythonPackages\022>" - + ".google.devtools.artifactregistry.v1.Lis" - + "tPythonPackagesRequest\032?.google.devtools" - + ".artifactregistry.v1.ListPythonPackagesR" - + "esponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=pr" - + "ojects/*/locations/*/repositories/*}/pyt" - + "honPackages\022\326\001\n\020GetPythonPackage\022<.googl" - + "e.devtools.artifactregistry.v1.GetPython" - + "PackageRequest\0322.google.devtools.artifac" - + "tregistry.v1.PythonPackage\"P\332A\004name\202\323\344\223\002" - + "C\022A/v1/{name=projects/*/locations/*/repo" - + "sitories/*/pythonPackages/*}\022\313\002\n\022ImportA" - + "ptArtifacts\022>.google.devtools.artifactre" - + "gistry.v1.ImportAptArtifactsRequest\032\035.go" - + "ogle.longrunning.Operation\"\325\001\312A\200\001\n>googl" - + "e.devtools.artifactregistry.v1.ImportApt" - + "ArtifactsResponse\022>google.devtools.artif" - + "actregistry.v1.ImportAptArtifactsMetadat" - + "a\202\323\344\223\002K\"F/v1/{parent=projects/*/location" - + "s/*/repositories/*}/aptArtifacts:import:" - + "\001*\022\313\002\n\022ImportYumArtifacts\022>.google.devto" - + "ols.artifactregistry.v1.ImportYumArtifac" - + "tsRequest\032\035.google.longrunning.Operation" - + "\"\325\001\312A\200\001\n>google.devtools.artifactregistr" - + "y.v1.ImportYumArtifactsResponse\022>google." - + "devtools.artifactregistry.v1.ImportYumAr" - + "tifactsMetadata\202\323\344\223\002K\"F/v1/{parent=proje" - + "cts/*/locations/*/repositories/*}/yumArt" - + "ifacts:import:\001*\022\322\001\n\020ListRepositories\022<." - + "google.devtools.artifactregistry.v1.List" - + "RepositoriesRequest\032=.google.devtools.ar" - + "tifactregistry.v1.ListRepositoriesRespon" - + "se\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=project" - + "s/*/locations/*}/repositories\022\274\001\n\rGetRep" - + "ository\0229.google.devtools.artifactregist" - + "ry.v1.GetRepositoryRequest\032/.google.devt" - + "ools.artifactregistry.v1.Repository\"?\332A\004" - + "name\202\323\344\223\0022\0220/v1/{name=projects/*/locatio" - + "ns/*/repositories/*}\022\302\002\n\020CreateRepositor" - + "y\022<.google.devtools.artifactregistry.v1." - + "CreateRepositoryRequest\032\035.google.longrun" - + "ning.Operation\"\320\001\312Ag\n.google.devtools.ar" - + "tifactregistry.v1.Repository\0225google.dev" - + "tools.artifactregistry.v1.OperationMetad" - + "ata\332A\037parent,repository,repository_id\202\323\344" - + "\223\002>\"0/v1/{parent=projects/*/locations/*}" - + "/repositories:\nrepository\022\353\001\n\020UpdateRepo" - + "sitory\022<.google.devtools.artifactregistr" - + "y.v1.UpdateRepositoryRequest\032/.google.de" - + "vtools.artifactregistry.v1.Repository\"h\332" - + "A\026repository,update_mask\202\323\344\223\002I2;/v1/{rep" - + "ository.name=projects/*/locations/*/repo" - + "sitories/*}:\nrepository\022\202\002\n\020DeleteReposi" - + "tory\022<.google.devtools.artifactregistry." - + "v1.DeleteRepositoryRequest\032\035.google.long" - + "running.Operation\"\220\001\312AN\n\025google.protobuf" - + ".Empty\0225google.devtools.artifactregistry" - + ".v1.OperationMetadata\332A\004name\202\323\344\223\0022*0/v1/" - + "{name=projects/*/locations/*/repositorie" - + "s/*}\022\321\001\n\014ListPackages\0228.google.devtools." - + "artifactregistry.v1.ListPackagesRequest\032" - + "9.google.devtools.artifactregistry.v1.Li" - + "stPackagesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1" - + "/{parent=projects/*/locations/*/reposito" - + "ries/*}/packages\022\276\001\n\nGetPackage\0226.google" - + ".devtools.artifactregistry.v1.GetPackage" - + "Request\032,.google.devtools.artifactregist" - + "ry.v1.Package\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=" - + "projects/*/locations/*/repositories/*/pa" - + "ckages/*}\022\207\002\n\rDeletePackage\0229.google.dev" - + "tools.artifactregistry.v1.DeletePackageR" - + "equest\032\035.google.longrunning.Operation\"\233\001" + + "NpmPackagesResponse\"O\332A\006parent\202\323\344\223\002@\022>/v" + + "1/{parent=projects/*/locations/*/reposit" + + "ories/*}/npmPackages\022\312\001\n\rGetNpmPackage\0229" + + ".google.devtools.artifactregistry.v1.Get" + + "NpmPackageRequest\032/.google.devtools.arti" + + "factregistry.v1.NpmPackage\"M\332A\004name\202\323\344\223\002" + + "@\022>/v1/{name=projects/*/locations/*/repo" + + "sitories/*/npmPackages/*}\022\351\001\n\022ListPython" + + "Packages\022>.google.devtools.artifactregis" + + "try.v1.ListPythonPackagesRequest\032?.googl" + + "e.devtools.artifactregistry.v1.ListPytho" + + "nPackagesResponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/" + + "{parent=projects/*/locations/*/repositor" + + "ies/*}/pythonPackages\022\326\001\n\020GetPythonPacka" + + "ge\022<.google.devtools.artifactregistry.v1" + + ".GetPythonPackageRequest\0322.google.devtoo" + + "ls.artifactregistry.v1.PythonPackage\"P\332A" + + "\004name\202\323\344\223\002C\022A/v1/{name=projects/*/locati" + + "ons/*/repositories/*/pythonPackages/*}\022\313" + + "\002\n\022ImportAptArtifacts\022>.google.devtools." + + "artifactregistry.v1.ImportAptArtifactsRe" + + "quest\032\035.google.longrunning.Operation\"\325\001\312" + + "A\200\001\n>google.devtools.artifactregistry.v1" + + ".ImportAptArtifactsResponse\022>google.devt" + + "ools.artifactregistry.v1.ImportAptArtifa" + + "ctsMetadata\202\323\344\223\002K\"F/v1/{parent=projects/" + + "*/locations/*/repositories/*}/aptArtifac" + + "ts:import:\001*\022\313\002\n\022ImportYumArtifacts\022>.go" + + "ogle.devtools.artifactregistry.v1.Import" + + "YumArtifactsRequest\032\035.google.longrunning" + + ".Operation\"\325\001\312A\200\001\n>google.devtools.artif" + + "actregistry.v1.ImportYumArtifactsRespons" + + "e\022>google.devtools.artifactregistry.v1.I" + + "mportYumArtifactsMetadata\202\323\344\223\002K\"F/v1/{pa" + + "rent=projects/*/locations/*/repositories" + + "/*}/yumArtifacts:import:\001*\022\322\001\n\020ListRepos" + + "itories\022<.google.devtools.artifactregist" + + "ry.v1.ListRepositoriesRequest\032=.google.d" + + "evtools.artifactregistry.v1.ListReposito" + + "riesResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{pare" + + "nt=projects/*/locations/*}/repositories\022" + + "\274\001\n\rGetRepository\0229.google.devtools.arti" + + "factregistry.v1.GetRepositoryRequest\032/.g" + + "oogle.devtools.artifactregistry.v1.Repos" + + "itory\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects" + + "/*/locations/*/repositories/*}\022\302\002\n\020Creat" + + "eRepository\022<.google.devtools.artifactre" + + "gistry.v1.CreateRepositoryRequest\032\035.goog" + + "le.longrunning.Operation\"\320\001\312Ag\n.google.d" + + "evtools.artifactregistry.v1.Repository\0225" + + "google.devtools.artifactregistry.v1.Oper" + + "ationMetadata\332A\037parent,repository,reposi" + + "tory_id\202\323\344\223\002>\"0/v1/{parent=projects/*/lo" + + "cations/*}/repositories:\nrepository\022\353\001\n\020" + + "UpdateRepository\022<.google.devtools.artif" + + "actregistry.v1.UpdateRepositoryRequest\032/" + + ".google.devtools.artifactregistry.v1.Rep" + + "ository\"h\332A\026repository,update_mask\202\323\344\223\002I" + + "2;/v1/{repository.name=projects/*/locati" + + "ons/*/repositories/*}:\nrepository\022\202\002\n\020De" + + "leteRepository\022<.google.devtools.artifac" + + "tregistry.v1.DeleteRepositoryRequest\032\035.g" + + "oogle.longrunning.Operation\"\220\001\312AN\n\025googl" + + "e.protobuf.Empty\0225google.devtools.artifa" + + "ctregistry.v1.OperationMetadata\332A\004name\202\323" + + "\344\223\0022*0/v1/{name=projects/*/locations/*/r" + + "epositories/*}\022\321\001\n\014ListPackages\0228.google" + + ".devtools.artifactregistry.v1.ListPackag" + + "esRequest\0329.google.devtools.artifactregi" + + "stry.v1.ListPackagesResponse\"L\332A\006parent\202" + + "\323\344\223\002=\022;/v1/{parent=projects/*/locations/" + + "*/repositories/*}/packages\022\276\001\n\nGetPackag" + + "e\0226.google.devtools.artifactregistry.v1." + + "GetPackageRequest\032,.google.devtools.arti" + + "factregistry.v1.Package\"J\332A\004name\202\323\344\223\002=\022;" + + "/v1/{name=projects/*/locations/*/reposit" + + "ories/*/packages/*}\022\207\002\n\rDeletePackage\0229." + + "google.devtools.artifactregistry.v1.Dele" + + "tePackageRequest\032\035.google.longrunning.Op" + + "eration\"\233\001\312AN\n\025google.protobuf.Empty\0225go" + + "ogle.devtools.artifactregistry.v1.Operat" + + "ionMetadata\332A\004name\202\323\344\223\002=*;/v1/{name=proj" + + "ects/*/locations/*/repositories/*/packag" + + "es/*}\022\334\001\n\014ListVersions\0228.google.devtools" + + ".artifactregistry.v1.ListVersionsRequest" + + "\0329.google.devtools.artifactregistry.v1.L" + + "istVersionsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v" + + "1/{parent=projects/*/locations/*/reposit" + + "ories/*/packages/*}/versions\022\311\001\n\nGetVers" + + "ion\0226.google.devtools.artifactregistry.v" + + "1.GetVersionRequest\032,.google.devtools.ar" + + "tifactregistry.v1.Version\"U\332A\004name\202\323\344\223\002H" + + "\022F/v1/{name=projects/*/locations/*/repos" + + "itories/*/packages/*/versions/*}\022\222\002\n\rDel" + + "eteVersion\0229.google.devtools.artifactreg" + + "istry.v1.DeleteVersionRequest\032\035.google.l" + + "ongrunning.Operation\"\246\001\312AN\n\025google.proto" + + "buf.Empty\0225google.devtools.artifactregis" + + "try.v1.OperationMetadata\332A\004name\202\323\344\223\002H*F/" + + "v1/{name=projects/*/locations/*/reposito" + + "ries/*/packages/*/versions/*}\022\277\002\n\023BatchD" + + "eleteVersions\022?.google.devtools.artifact" + + "registry.v1.BatchDeleteVersionsRequest\032\035" + + ".google.longrunning.Operation\"\307\001\312AX\n\025goo" + + "gle.protobuf.Empty\022?google.devtools.arti" + + "factregistry.v1.BatchDeleteVersionsMetad" + + "ata\332A\014parent,names\202\323\344\223\002W\"R/v1/{parent=pr" + + "ojects/*/locations/*/repositories/*/pack" + + "ages/*}/versions:batchDelete:\001*\022\357\001\n\rUpda" + + "teVersion\0229.google.devtools.artifactregi" + + "stry.v1.UpdateVersionRequest\032,.google.de" + + "vtools.artifactregistry.v1.Version\"u\332A\023v" + + "ersion,update_mask\202\323\344\223\002Y2N/v1/{version.n" + + "ame=projects/*/locations/*/repositories/" + + "*/packages/*/versions/*}:\007version\022\305\001\n\tLi" + + "stFiles\0225.google.devtools.artifactregist" + + "ry.v1.ListFilesRequest\0326.google.devtools" + + ".artifactregistry.v1.ListFilesResponse\"I" + + "\332A\006parent\202\323\344\223\002:\0228/v1/{parent=projects/*/" + + "locations/*/repositories/*}/files\022\263\001\n\007Ge" + + "tFile\0223.google.devtools.artifactregistry" + + ".v1.GetFileRequest\032).google.devtools.art" + + "ifactregistry.v1.File\"H\332A\004name\202\323\344\223\002;\0229/v" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/files/**}\022\376\001\n\nDeleteFile\0226.google." + + "devtools.artifactregistry.v1.DeleteFileR" + + "equest\032\035.google.longrunning.Operation\"\230\001" + "\312AN\n\025google.protobuf.Empty\0225google.devto" + "ols.artifactregistry.v1.OperationMetadat" - + "a\332A\004name\202\323\344\223\002=*;/v1/{name=projects/*/loc" - + "ations/*/repositories/*/packages/*}\022\334\001\n\014" - + "ListVersions\0228.google.devtools.artifactr" - + "egistry.v1.ListVersionsRequest\0329.google." - + "devtools.artifactregistry.v1.ListVersion" - + "sResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=" - + "projects/*/locations/*/repositories/*/pa" - + "ckages/*}/versions\022\311\001\n\nGetVersion\0226.goog" - + "le.devtools.artifactregistry.v1.GetVersi" - + "onRequest\032,.google.devtools.artifactregi" - + "stry.v1.Version\"U\332A\004name\202\323\344\223\002H\022F/v1/{nam" + + "a\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*/loc" + + "ations/*/repositories/*/files/*}\022\317\001\n\nUpd" + + "ateFile\0226.google.devtools.artifactregist" + + "ry.v1.UpdateFileRequest\032).google.devtool" + + "s.artifactregistry.v1.File\"^\332A\020file,upda" + + "te_mask\202\323\344\223\002E2=/v1/{file.name=projects/*" + + "/locations/*/repositories/*/files/*}:\004fi" + + "le\022\314\001\n\010ListTags\0224.google.devtools.artifa" + + "ctregistry.v1.ListTagsRequest\0325.google.d" + + "evtools.artifactregistry.v1.ListTagsResp" + + "onse\"S\332A\006parent\202\323\344\223\002D\022B/v1/{parent=proje" + + "cts/*/locations/*/repositories/*/package" + + "s/*}/tags\022\271\001\n\006GetTag\0222.google.devtools.a" + + "rtifactregistry.v1.GetTagRequest\032(.googl" + + "e.devtools.artifactregistry.v1.Tag\"Q\332A\004n" + + "ame\202\323\344\223\002D\022B/v1/{name=projects/*/location" + + "s/*/repositories/*/packages/*/tags/*}\022\321\001" + + "\n\tCreateTag\0225.google.devtools.artifactre" + + "gistry.v1.CreateTagRequest\032(.google.devt" + + "ools.artifactregistry.v1.Tag\"c\332A\021parent," + + "tag,tag_id\202\323\344\223\002I\"B/v1/{parent=projects/*" + + "/locations/*/repositories/*/packages/*}/" + + "tags:\003tag\022\323\001\n\tUpdateTag\0225.google.devtool" + + "s.artifactregistry.v1.UpdateTagRequest\032(" + + ".google.devtools.artifactregistry.v1.Tag" + + "\"e\332A\017tag,update_mask\202\323\344\223\002M2F/v1/{tag.nam" + "e=projects/*/locations/*/repositories/*/" - + "packages/*/versions/*}\022\222\002\n\rDeleteVersion" - + "\0229.google.devtools.artifactregistry.v1.D" - + "eleteVersionRequest\032\035.google.longrunning" - + ".Operation\"\246\001\312AN\n\025google.protobuf.Empty\022" - + "5google.devtools.artifactregistry.v1.Ope" - + "rationMetadata\332A\004name\202\323\344\223\002H*F/v1/{name=p" - + "rojects/*/locations/*/repositories/*/pac" - + "kages/*/versions/*}\022\277\002\n\023BatchDeleteVersi" - + "ons\022?.google.devtools.artifactregistry.v" - + "1.BatchDeleteVersionsRequest\032\035.google.lo" - + "ngrunning.Operation\"\307\001\312AX\n\025google.protob" - + "uf.Empty\022?google.devtools.artifactregist" - + "ry.v1.BatchDeleteVersionsMetadata\332A\014pare" - + "nt,names\202\323\344\223\002W\"R/v1/{parent=projects/*/l" - + "ocations/*/repositories/*/packages/*}/ve" - + "rsions:batchDelete:\001*\022\357\001\n\rUpdateVersion\022" - + "9.google.devtools.artifactregistry.v1.Up" - + "dateVersionRequest\032,.google.devtools.art" - + "ifactregistry.v1.Version\"u\332A\023version,upd" - + "ate_mask\202\323\344\223\002Y2N/v1/{version.name=projec" - + "ts/*/locations/*/repositories/*/packages" - + "/*/versions/*}:\007version\022\305\001\n\tListFiles\0225." - + "google.devtools.artifactregistry.v1.List" - + "FilesRequest\0326.google.devtools.artifactr" - + "egistry.v1.ListFilesResponse\"I\332A\006parent\202" - + "\323\344\223\002:\0228/v1/{parent=projects/*/locations/" - + "*/repositories/*}/files\022\263\001\n\007GetFile\0223.go" - + "ogle.devtools.artifactregistry.v1.GetFil" - + "eRequest\032).google.devtools.artifactregis" - + "try.v1.File\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=pr" - + "ojects/*/locations/*/repositories/*/file" - + "s/**}\022\376\001\n\nDeleteFile\0226.google.devtools.a" - + "rtifactregistry.v1.DeleteFileRequest\032\035.g" - + "oogle.longrunning.Operation\"\230\001\312AN\n\025googl" - + "e.protobuf.Empty\0225google.devtools.artifa" - + "ctregistry.v1.OperationMetadata\332A\004name\202\323" - + "\344\223\002:*8/v1/{name=projects/*/locations/*/r" - + "epositories/*/files/*}\022\317\001\n\nUpdateFile\0226." - + "google.devtools.artifactregistry.v1.Upda" - + "teFileRequest\032).google.devtools.artifact" - + "registry.v1.File\"^\332A\020file,update_mask\202\323\344" - + "\223\002E2=/v1/{file.name=projects/*/locations" - + "/*/repositories/*/files/*}:\004file\022\314\001\n\010Lis" - + "tTags\0224.google.devtools.artifactregistry" - + ".v1.ListTagsRequest\0325.google.devtools.ar" - + "tifactregistry.v1.ListTagsResponse\"S\332A\006p" - + "arent\202\323\344\223\002D\022B/v1/{parent=projects/*/loca" - + "tions/*/repositories/*/packages/*}/tags\022" - + "\271\001\n\006GetTag\0222.google.devtools.artifactreg" - + "istry.v1.GetTagRequest\032(.google.devtools" - + ".artifactregistry.v1.Tag\"Q\332A\004name\202\323\344\223\002D\022" - + "B/v1/{name=projects/*/locations/*/reposi" - + "tories/*/packages/*/tags/*}\022\321\001\n\tCreateTa" - + "g\0225.google.devtools.artifactregistry.v1." - + "CreateTagRequest\032(.google.devtools.artif" - + "actregistry.v1.Tag\"c\332A\021parent,tag,tag_id" - + "\202\323\344\223\002I\"B/v1/{parent=projects/*/locations" - + "/*/repositories/*/packages/*}/tags:\003tag\022" - + "\323\001\n\tUpdateTag\0225.google.devtools.artifact" - + "registry.v1.UpdateTagRequest\032(.google.de" - + "vtools.artifactregistry.v1.Tag\"e\332A\017tag,u" - + "pdate_mask\202\323\344\223\002M2F/v1/{tag.name=projects" - + "/*/locations/*/repositories/*/packages/*" - + "/tags/*}:\003tag\022\255\001\n\tDeleteTag\0225.google.dev" - + "tools.artifactregistry.v1.DeleteTagReque" - + "st\032\026.google.protobuf.Empty\"Q\332A\004name\202\323\344\223\002" - + "D*B/v1/{name=projects/*/locations/*/repo" - + "sitories/*/packages/*/tags/*}\022\315\001\n\nCreate" - + "Rule\0226.google.devtools.artifactregistry." - + "v1.CreateRuleRequest\032).google.devtools.a" - + "rtifactregistry.v1.Rule\"\\\332A\023parent,rule," - + "rule_id\202\323\344\223\002@\"8/v1/{parent=projects/*/lo" - + "cations/*/repositories/*}/rules:\004rule\022\305\001" - + "\n\tListRules\0225.google.devtools.artifactre" - + "gistry.v1.ListRulesRequest\0326.google.devt" - + "ools.artifactregistry.v1.ListRulesRespon" - + "se\"I\332A\006parent\202\323\344\223\002:\0228/v1/{parent=project" - + "s/*/locations/*/repositories/*}/rules\022\262\001" - + "\n\007GetRule\0223.google.devtools.artifactregi" - + "stry.v1.GetRuleRequest\032).google.devtools" - + ".artifactregistry.v1.Rule\"G\332A\004name\202\323\344\223\002:" - + "\0228/v1/{name=projects/*/locations/*/repos" - + "itories/*/rules/*}\022\317\001\n\nUpdateRule\0226.goog" - + "le.devtools.artifactregistry.v1.UpdateRu" - + "leRequest\032).google.devtools.artifactregi" - + "stry.v1.Rule\"^\332A\020rule,update_mask\202\323\344\223\002E2" - + "=/v1/{rule.name=projects/*/locations/*/r" - + "epositories/*/rules/*}:\004rule\022\245\001\n\nDeleteR" + + "packages/*/tags/*}:\003tag\022\255\001\n\tDeleteTag\0225." + + "google.devtools.artifactregistry.v1.Dele" + + "teTagRequest\032\026.google.protobuf.Empty\"Q\332A" + + "\004name\202\323\344\223\002D*B/v1/{name=projects/*/locati" + + "ons/*/repositories/*/packages/*/tags/*}\022" + + "\315\001\n\nCreateRule\0226.google.devtools.artifac" + + "tregistry.v1.CreateRuleRequest\032).google." + + "devtools.artifactregistry.v1.Rule\"\\\332A\023pa" + + "rent,rule,rule_id\202\323\344\223\002@\"8/v1/{parent=pro" + + "jects/*/locations/*/repositories/*}/rule" + + "s:\004rule\022\305\001\n\tListRules\0225.google.devtools." + + "artifactregistry.v1.ListRulesRequest\0326.g" + + "oogle.devtools.artifactregistry.v1.ListR" + + "ulesResponse\"I\332A\006parent\202\323\344\223\002:\0228/v1/{pare" + + "nt=projects/*/locations/*/repositories/*" + + "}/rules\022\262\001\n\007GetRule\0223.google.devtools.ar" + + "tifactregistry.v1.GetRuleRequest\032).googl" + + "e.devtools.artifactregistry.v1.Rule\"G\332A\004" + + "name\202\323\344\223\002:\0228/v1/{name=projects/*/locatio" + + "ns/*/repositories/*/rules/*}\022\317\001\n\nUpdateR" + "ule\0226.google.devtools.artifactregistry.v" - + "1.DeleteRuleRequest\032\026.google.protobuf.Em" - + "pty\"G\332A\004name\202\323\344\223\002:*8/v1/{name=projects/*" - + "/locations/*/repositories/*/rules/*}\022\227\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPoli" - + "cyRequest\032\025.google.iam.v1.Policy\"L\202\323\344\223\002F" - + "\"A/v1/{resource=projects/*/locations/*/r" - + "epositories/*}:setIamPolicy:\001*\022\224\001\n\014GetIa" - + "mPolicy\022\".google.iam.v1.GetIamPolicyRequ" - + "est\032\025.google.iam.v1.Policy\"I\202\323\344\223\002C\022A/v1/" - + "{resource=projects/*/locations/*/reposit" - + "ories/*}:getIamPolicy\022\275\001\n\022TestIamPermiss" - + "ions\022(.google.iam.v1.TestIamPermissionsR" - + "equest\032).google.iam.v1.TestIamPermission" - + "sResponse\"R\202\323\344\223\002L\"G/v1/{resource=project" - + "s/*/locations/*/repositories/*}:testIamP" - + "ermissions:\001*\022\300\001\n\022GetProjectSettings\022>.g" - + "oogle.devtools.artifactregistry.v1.GetPr" - + "ojectSettingsRequest\0324.google.devtools.a" - + "rtifactregistry.v1.ProjectSettings\"4\332A\004n" - + "ame\202\323\344\223\002\'\022%/v1/{name=projects/*/projectS" - + "ettings}\022\201\002\n\025UpdateProjectSettings\022A.goo" - + "gle.devtools.artifactregistry.v1.UpdateP" - + "rojectSettingsRequest\0324.google.devtools." - + "artifactregistry.v1.ProjectSettings\"o\332A\034" - + "project_settings,update_mask\202\323\344\223\002J26/v1/" - + "{project_settings.name=projects/*/projec" - + "tSettings}:\020project_settings\022\274\001\n\016GetVPCS" - + "CConfig\022:.google.devtools.artifactregist" - + "ry.v1.GetVPCSCConfigRequest\0320.google.dev" - + "tools.artifactregistry.v1.VPCSCConfig\"<\332" - + "A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/locat" - + "ions/*/vpcscConfig}\022\361\001\n\021UpdateVPCSCConfi" - + "g\022=.google.devtools.artifactregistry.v1." - + "UpdateVPCSCConfigRequest\0320.google.devtoo" - + "ls.artifactregistry.v1.VPCSCConfig\"k\332A\030v" - + "pcsc_config,update_mask\202\323\344\223\002J2:/v1/{vpcs" - + "c_config.name=projects/*/locations/*/vpc" - + "scConfig}:\014vpcsc_config\022\344\001\n\rUpdatePackag" - + "e\0229.google.devtools.artifactregistry.v1." - + "UpdatePackageRequest\032,.google.devtools.a" - + "rtifactregistry.v1.Package\"j\332A\023package,u" - + "pdate_mask\202\323\344\223\002N2C/v1/{package.name=proj" - + "ects/*/locations/*/repositories/*/packag" - + "es/*}:\007package\022\335\001\n\017ListAttachments\022;.goo" - + "gle.devtools.artifactregistry.v1.ListAtt" - + "achmentsRequest\032<.google.devtools.artifa" - + "ctregistry.v1.ListAttachmentsResponse\"O\332" - + "A\006parent\202\323\344\223\002@\022>/v1/{parent=projects/*/l" - + "ocations/*/repositories/*}/attachments\022\312" - + "\001\n\rGetAttachment\0229.google.devtools.artif" - + "actregistry.v1.GetAttachmentRequest\032/.go" - + "ogle.devtools.artifactregistry.v1.Attach" - + "ment\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects/" - + "*/locations/*/repositories/*/attachments" - + "/*}\022\320\002\n\020CreateAttachment\022<.google.devtoo" - + "ls.artifactregistry.v1.CreateAttachmentR" - + "equest\032\035.google.longrunning.Operation\"\336\001" - + "\312Ag\n.google.devtools.artifactregistry.v1" - + ".Attachment\0225google.devtools.artifactreg" - + "istry.v1.OperationMetadata\332A\037parent,atta" - + "chment,attachment_id\202\323\344\223\002L\">/v1/{parent=" - + "projects/*/locations/*/repositories/*}/a" - + "ttachments:\nattachment\022\220\002\n\020DeleteAttachm" - + "ent\022<.google.devtools.artifactregistry.v" - + "1.DeleteAttachmentRequest\032\035.google.longr" - + "unning.Operation\"\236\001\312AN\n\025google.protobuf." - + "Empty\0225google.devtools.artifactregistry." - + "v1.OperationMetadata\332A\004name\202\323\344\223\002@*>/v1/{" - + "name=projects/*/locations/*/repositories" - + "/*/attachments/*}\032\214\001\312A\037artifactregistry." - + "googleapis.com\322Aghttps://www.googleapis." - + "com/auth/cloud-platform,https://www.goog" - + "leapis.com/auth/cloud-platform.read-only" - + "B\367\001\n\'com.google.devtools.artifactregistr" - + "y.v1B\014ServiceProtoP\001ZPcloud.google.com/g" - + "o/artifactregistry/apiv1/artifactregistr" - + "ypb;artifactregistrypb\252\002 Google.Cloud.Ar" - + "tifactRegistry.V1\312\002 Google\\Cloud\\Artifac" - + "tRegistry\\V1\352\002#Google::Cloud::ArtifactRe" - + "gistry::V1b\006proto3" + + "1.UpdateRuleRequest\032).google.devtools.ar" + + "tifactregistry.v1.Rule\"^\332A\020rule,update_m" + + "ask\202\323\344\223\002E2=/v1/{rule.name=projects/*/loc" + + "ations/*/repositories/*/rules/*}:\004rule\022\245" + + "\001\n\nDeleteRule\0226.google.devtools.artifact" + + "registry.v1.DeleteRuleRequest\032\026.google.p" + + "rotobuf.Empty\"G\332A\004name\202\323\344\223\002:*8/v1/{name=" + + "projects/*/locations/*/repositories/*/ru" + + "les/*}\022\227\001\n\014SetIamPolicy\022\".google.iam.v1." + + "SetIamPolicyRequest\032\025.google.iam.v1.Poli" + + "cy\"L\202\323\344\223\002F\"A/v1/{resource=projects/*/loc" + + "ations/*/repositories/*}:setIamPolicy:\001*" + + "\022\224\001\n\014GetIamPolicy\022\".google.iam.v1.GetIam" + + "PolicyRequest\032\025.google.iam.v1.Policy\"I\202\323" + + "\344\223\002C\022A/v1/{resource=projects/*/locations" + + "/*/repositories/*}:getIamPolicy\022\275\001\n\022Test" + + "IamPermissions\022(.google.iam.v1.TestIamPe" + + "rmissionsRequest\032).google.iam.v1.TestIam" + + "PermissionsResponse\"R\202\323\344\223\002L\"G/v1/{resour" + + "ce=projects/*/locations/*/repositories/*" + + "}:testIamPermissions:\001*\022\300\001\n\022GetProjectSe" + + "ttings\022>.google.devtools.artifactregistr" + + "y.v1.GetProjectSettingsRequest\0324.google." + + "devtools.artifactregistry.v1.ProjectSett" + + "ings\"4\332A\004name\202\323\344\223\002\'\022%/v1/{name=projects/" + + "*/projectSettings}\022\201\002\n\025UpdateProjectSett" + + "ings\022A.google.devtools.artifactregistry." + + "v1.UpdateProjectSettingsRequest\0324.google" + + ".devtools.artifactregistry.v1.ProjectSet" + + "tings\"o\332A\034project_settings,update_mask\202\323" + + "\344\223\002J26/v1/{project_settings.name=project" + + "s/*/projectSettings}:\020project_settings\022\274" + + "\001\n\016GetVPCSCConfig\022:.google.devtools.arti" + + "factregistry.v1.GetVPCSCConfigRequest\0320." + + "google.devtools.artifactregistry.v1.VPCS" + + "CConfig\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projec" + + "ts/*/locations/*/vpcscConfig}\022\361\001\n\021Update" + + "VPCSCConfig\022=.google.devtools.artifactre" + + "gistry.v1.UpdateVPCSCConfigRequest\0320.goo" + + "gle.devtools.artifactregistry.v1.VPCSCCo" + + "nfig\"k\332A\030vpcsc_config,update_mask\202\323\344\223\002J2" + + ":/v1/{vpcsc_config.name=projects/*/locat" + + "ions/*/vpcscConfig}:\014vpcsc_config\022\344\001\n\rUp" + + "datePackage\0229.google.devtools.artifactre" + + "gistry.v1.UpdatePackageRequest\032,.google." + + "devtools.artifactregistry.v1.Package\"j\332A" + + "\023package,update_mask\202\323\344\223\002N2C/v1/{package" + + ".name=projects/*/locations/*/repositorie" + + "s/*/packages/*}:\007package\022\335\001\n\017ListAttachm" + + "ents\022;.google.devtools.artifactregistry." + + "v1.ListAttachmentsRequest\032<.google.devto" + + "ols.artifactregistry.v1.ListAttachmentsR" + + "esponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=pr" + + "ojects/*/locations/*/repositories/*}/att" + + "achments\022\312\001\n\rGetAttachment\0229.google.devt" + + "ools.artifactregistry.v1.GetAttachmentRe" + + "quest\032/.google.devtools.artifactregistry" + + ".v1.Attachment\"M\332A\004name\202\323\344\223\002@\022>/v1/{name" + + "=projects/*/locations/*/repositories/*/a" + + "ttachments/*}\022\320\002\n\020CreateAttachment\022<.goo" + + "gle.devtools.artifactregistry.v1.CreateA" + + "ttachmentRequest\032\035.google.longrunning.Op" + + "eration\"\336\001\312Ag\n.google.devtools.artifactr" + + "egistry.v1.Attachment\0225google.devtools.a" + + "rtifactregistry.v1.OperationMetadata\332A\037p" + + "arent,attachment,attachment_id\202\323\344\223\002L\">/v" + + "1/{parent=projects/*/locations/*/reposit" + + "ories/*}/attachments:\nattachment\022\220\002\n\020Del" + + "eteAttachment\022<.google.devtools.artifact" + + "registry.v1.DeleteAttachmentRequest\032\035.go" + + "ogle.longrunning.Operation\"\236\001\312AN\n\025google" + + ".protobuf.Empty\0225google.devtools.artifac" + + "tregistry.v1.OperationMetadata\332A\004name\202\323\344" + + "\223\002@*>/v1/{name=projects/*/locations/*/re" + + "positories/*/attachments/*}\022\271\002\n\016ExportAr" + + "tifact\022:.google.devtools.artifactregistr" + + "y.v1.ExportArtifactRequest\032\035.google.long" + + "running.Operation\"\313\001\312Ax\n:google.devtools" + + ".artifactregistry.v1.ExportArtifactRespo" + + "nse\022:google.devtools.artifactregistry.v1" + + ".ExportArtifactMetadata\202\323\344\223\002J\"E/v1/{repo" + + "sitory=projects/*/locations/*/repositori" + + "es/*}:exportArtifact:\001*\032\214\001\312A\037artifactreg" + + "istry.googleapis.com\322Aghttps://www.googl" + + "eapis.com/auth/cloud-platform,https://ww" + + "w.googleapis.com/auth/cloud-platform.rea" + + "d-onlyB\367\001\n\'com.google.devtools.artifactr" + + "egistry.v1B\014ServiceProtoP\001ZPcloud.google" + + ".com/go/artifactregistry/apiv1/artifactr" + + "egistrypb;artifactregistrypb\252\002 Google.Cl" + + "oud.ArtifactRegistry.V1\312\002 Google\\Cloud\\A" + + "rtifactRegistry\\V1\352\002#Google::Cloud::Arti" + + "factRegistry::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -362,6 +371,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.devtools.artifactregistry.v1.AptArtifactProto.getDescriptor(), com.google.devtools.artifactregistry.v1.ArtifactProto.getDescriptor(), com.google.devtools.artifactregistry.v1.AttachmentProto.getDescriptor(), + com.google.devtools.artifactregistry.v1.ExportProto.getDescriptor(), com.google.devtools.artifactregistry.v1.FileProto.getDescriptor(), com.google.devtools.artifactregistry.v1.PackageProto.getDescriptor(), com.google.devtools.artifactregistry.v1.RepositoryProto.getDescriptor(), @@ -396,6 +406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.devtools.artifactregistry.v1.AptArtifactProto.getDescriptor(); com.google.devtools.artifactregistry.v1.ArtifactProto.getDescriptor(); com.google.devtools.artifactregistry.v1.AttachmentProto.getDescriptor(); + com.google.devtools.artifactregistry.v1.ExportProto.getDescriptor(); com.google.devtools.artifactregistry.v1.FileProto.getDescriptor(); com.google.devtools.artifactregistry.v1.PackageProto.getDescriptor(); com.google.devtools.artifactregistry.v1.RepositoryProto.getDescriptor(); diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java new file mode 100644 index 000000000000..92e208da4d75 --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/java/com/google/devtools/artifactregistry/v1/TagName.java @@ -0,0 +1,298 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.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 TagName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_REPOSITORY_PACKAGE_TAG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String repository; + private final String package_; + private final String tag; + + @Deprecated + protected TagName() { + project = null; + location = null; + repository = null; + package_ = null; + tag = null; + } + + private TagName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + repository = Preconditions.checkNotNull(builder.getRepository()); + package_ = Preconditions.checkNotNull(builder.getPackage()); + tag = Preconditions.checkNotNull(builder.getTag()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getPackage() { + return package_; + } + + public String getTag() { + return tag; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static TagName of( + String project, String location, String repository, String package_, String tag) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setPackage(package_) + .setTag(tag) + .build(); + } + + public static String format( + String project, String location, String repository, String package_, String tag) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setRepository(repository) + .setPackage(package_) + .setTag(tag) + .build() + .toString(); + } + + public static TagName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_REPOSITORY_PACKAGE_TAG.validatedMatch( + formattedString, "TagName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("repository"), + matchMap.get("package"), + matchMap.get("tag")); + } + + 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 (TagName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_REPOSITORY_PACKAGE_TAG.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 (repository != null) { + fieldMapBuilder.put("repository", repository); + } + if (package_ != null) { + fieldMapBuilder.put("package", package_); + } + if (tag != null) { + fieldMapBuilder.put("tag", tag); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_REPOSITORY_PACKAGE_TAG.instantiate( + "project", + project, + "location", + location, + "repository", + repository, + "package", + package_, + "tag", + tag); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + TagName that = ((TagName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.repository, that.repository) + && Objects.equals(this.package_, that.package_) + && Objects.equals(this.tag, that.tag); + } + 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(repository); + h *= 1000003; + h ^= Objects.hashCode(package_); + h *= 1000003; + h ^= Objects.hashCode(tag); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}. + */ + public static class Builder { + private String project; + private String location; + private String repository; + private String package_; + private String tag; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getRepository() { + return repository; + } + + public String getPackage() { + return package_; + } + + public String getTag() { + return tag; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setRepository(String repository) { + this.repository = repository; + return this; + } + + public Builder setPackage(String package_) { + this.package_ = package_; + return this; + } + + public Builder setTag(String tag) { + this.tag = tag; + return this; + } + + private Builder(TagName tagName) { + this.project = tagName.project; + this.location = tagName.location; + this.repository = tagName.repository; + this.package_ = tagName.package_; + this.tag = tagName.tag; + } + + public TagName build() { + return new TagName(this); + } + } +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto index 347c3ef17cc0..691638efd8d6 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/artifact.proto @@ -42,7 +42,7 @@ message DockerImage { // Required. registry_location, project_id, repository_name and image id forms // a unique image - // name:`projects//locations//repository//dockerImages/`. + // name:`projects//locations//repositories//dockerImages/`. // For example, // "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ // nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", @@ -84,6 +84,50 @@ message DockerImage { // Output only. The time when the docker image was last updated. google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // ArtifactType of this image, e.g. "application/vnd.example+type". + // If the `subject_digest` is set and no `artifact_type` is given, the + // `media_type` will be considered as the `artifact_type`. This field is + // returned as the `metadata.artifactType` field in the Version resource. + string artifact_type = 9; + + // Optional. For multi-arch images (manifest lists), this field contains the + // list of image manifests. + repeated ImageManifest image_manifests = 11 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Details of a single image manifest within a multi-arch image. +message ImageManifest { + // Optional. The CPU architecture of the image. + // Values are provided by the Docker client and are not validated by Artifact + // Registry. Example values include "amd64", "arm64", "ppc64le", "s390x", + // "riscv64", "mips64le", etc. + string architecture = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The operating system of the image. + // Values are provided by the Docker client and are not validated by Artifact + // Registry. Example values include "linux", "windows", "darwin", "aix", etc. + string os = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The manifest digest, in the format "sha256:". + string digest = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The media type of the manifest, e.g., + // "application/vnd.docker.distribution.manifest.v2+json" + string media_type = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The OS version of the image, for example on Windows + // `10.0.14393.1066`. + string os_version = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The required OS features for the image, for example on Windows + // `win32k`. + repeated string os_features = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The variant of the CPU in the image, for example `v7` to specify + // ARMv7 when architecture is `arm`. + string variant = 7 [(google.api.field_behavior) = OPTIONAL]; } // The request to list docker images. diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto new file mode 100644 index 000000000000..2e89c126a96e --- /dev/null +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/export.proto @@ -0,0 +1,99 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.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.devtools.artifactregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/devtools/artifactregistry/v1/file.proto"; +import "google/devtools/artifactregistry/v1/version.proto"; + +option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1"; +option go_package = "cloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "ExportProto"; +option java_package = "com.google.devtools.artifactregistry.v1"; +option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1"; +option ruby_package = "Google::Cloud::ArtifactRegistry::V1"; + +// The request for exporting an artifact to a destination. +message ExportArtifactRequest { + // The artifact to be exported. + oneof source_artifact { + // The artifact version to export. + // Format: + // projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version} + string source_version = 2 [(google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Version" + }]; + + // The artifact tag to export. + // Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag} + string source_tag = 4 [(google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Tag" + }]; + } + + // The destination to export the artifact to. + oneof destination { + // The Cloud Storage path to export the artifact to. Should start with the + // bucket name, and optionally have a directory path. Examples: + // `dst_bucket`, `dst_bucket/sub_dir`. + // Existing objects with the same path will be overwritten. + string gcs_path = 3; + } + + // Required. The repository of the artifact to export. + // Format: projects/{project}/locations/{location}/repositories/{repository} + string repository = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/Repository" + } + ]; +} + +// The response for exporting an artifact to a destination. +message ExportArtifactResponse { + // The exported version. Should be the same as the request version with + // fingerprint resource name. + Version exported_version = 1; +} + +// The LRO metadata for exporting an artifact. +message ExportArtifactMetadata { + // The exported artifact file. + message ExportedFile { + // The destination the file was exported to. + oneof destination { + // Cloud Storage Object path of the exported file. Examples: + // `dst_bucket/file1`, `dst_bucket/sub_dir/file1` + string gcs_object_path = 2; + } + + // Name of the exported artifact file. + // Format: `projects/p1/locations/us/repositories/repo1/files/file1` + string name = 1 [(google.api.resource_reference) = { + type: "artifactregistry.googleapis.com/File" + }]; + + // The hashes of the file content. + repeated Hash hashes = 3; + } + + // The exported artifact files. + repeated ExportedFile exported_files = 1; +} diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto index 4cdc353f6b5b..40fc30a008a7 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/repository.proto @@ -470,7 +470,8 @@ message Repository { message VulnerabilityScanningConfig { // Config for vulnerability scanning of resources in this repository. enum EnablementConfig { - // Not set. This will be treated as INHERITED. + // Not set. This will be treated as INHERITED for Docker repositories and + // DISABLED for non-Docker repositories. ENABLEMENT_CONFIG_UNSPECIFIED = 0; // Scanning is Enabled, but dependent on API enablement. @@ -547,6 +548,9 @@ message Repository { // Generic package format. GENERIC = 11; + + // Ruby package format. + RUBY = 12; } // The mode configures the repository to serve artifacts from different @@ -633,7 +637,7 @@ message Repository { // use this to calculate storage costs. int64 size_bytes = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. If set, the repository satisfies physical zone separation. + // Output only. Whether or not this repository satisfies PZS. bool satisfies_pzs = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. If true, the cleanup pipeline is prevented from deleting versions @@ -649,7 +653,7 @@ message Repository { // error rather than defaulting to standard. bool disallow_unspecified_mode = 21 [(google.api.field_behavior) = OPTIONAL]; - // Output only. If set, the repository satisfies physical zone isolation. + // Output only. Whether or not this repository satisfies PZI. bool satisfies_pzi = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The repository endpoint, for example: diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto index 76b8ff5c3f5c..7c1720201143 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/src/main/proto/google/devtools/artifactregistry/v1/service.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/devtools/artifactregistry/v1/apt_artifact.proto"; import "google/devtools/artifactregistry/v1/artifact.proto"; import "google/devtools/artifactregistry/v1/attachment.proto"; +import "google/devtools/artifactregistry/v1/export.proto"; import "google/devtools/artifactregistry/v1/file.proto"; import "google/devtools/artifactregistry/v1/package.proto"; import "google/devtools/artifactregistry/v1/repository.proto"; @@ -541,6 +542,19 @@ service ArtifactRegistry { metadata_type: "google.devtools.artifactregistry.v1.OperationMetadata" }; } + + // Exports an artifact. + rpc ExportArtifact(ExportArtifactRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{repository=projects/*/locations/*/repositories/*}:exportArtifact" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.devtools.artifactregistry.v1.ExportArtifactResponse" + metadata_type: "google.devtools.artifactregistry.v1.ExportArtifactMetadata" + }; + } } // Metadata type for longrunning-operations, currently empty. diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifact.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifact.java new file mode 100644 index 000000000000..5c57e79d020e --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifact.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_async] +import com.google.api.core.ApiFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.ExportArtifactRequest; +import com.google.devtools.artifactregistry.v1.RepositoryName; +import com.google.longrunning.Operation; + +public class AsyncExportArtifact { + + public static void main(String[] args) throws Exception { + asyncExportArtifact(); + } + + public static void asyncExportArtifact() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + ExportArtifactRequest request = + ExportArtifactRequest.newBuilder() + .setRepository( + RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + ApiFuture future = + artifactRegistryClient.exportArtifactCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifactLRO.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifactLRO.java new file mode 100644 index 000000000000..739277273aa5 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/AsyncExportArtifactLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.ExportArtifactMetadata; +import com.google.devtools.artifactregistry.v1.ExportArtifactRequest; +import com.google.devtools.artifactregistry.v1.ExportArtifactResponse; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class AsyncExportArtifactLRO { + + public static void main(String[] args) throws Exception { + asyncExportArtifactLRO(); + } + + public static void asyncExportArtifactLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + ExportArtifactRequest request = + ExportArtifactRequest.newBuilder() + .setRepository( + RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + OperationFuture future = + artifactRegistryClient.exportArtifactOperationCallable().futureCall(request); + // Do something. + ExportArtifactResponse response = future.get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_LRO_async] diff --git a/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/SyncExportArtifact.java b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/SyncExportArtifact.java new file mode 100644 index 000000000000..d9881e0448d1 --- /dev/null +++ b/java-artifact-registry/samples/snippets/generated/com/google/devtools/artifactregistry/v1/artifactregistry/exportartifact/SyncExportArtifact.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.devtools.artifactregistry.v1.samples; + +// [START artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_sync] +import com.google.devtools.artifactregistry.v1.ArtifactRegistryClient; +import com.google.devtools.artifactregistry.v1.ExportArtifactRequest; +import com.google.devtools.artifactregistry.v1.ExportArtifactResponse; +import com.google.devtools.artifactregistry.v1.RepositoryName; + +public class SyncExportArtifact { + + public static void main(String[] args) throws Exception { + syncExportArtifact(); + } + + public static void syncExportArtifact() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ArtifactRegistryClient artifactRegistryClient = ArtifactRegistryClient.create()) { + ExportArtifactRequest request = + ExportArtifactRequest.newBuilder() + .setRepository( + RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .build(); + ExportArtifactResponse response = artifactRegistryClient.exportArtifactAsync(request).get(); + } + } +} +// [END artifactregistry_v1_generated_ArtifactRegistry_ExportArtifact_sync] diff --git a/java-asset/README.md b/java-asset/README.md index c34b332c470d..96cb3d0cf9f8 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.82.0 + 3.84.1 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.82.0' +implementation 'com.google.cloud:google-cloud-asset:3.84.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.84.1" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.84.1 [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 diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index 3d7c66b115aa..98d687215358 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.78.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.80.0 [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 diff --git a/java-automl/README.md b/java-automl/README.md index 058ee8fc4d85..cb07a8e8a903 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-automl - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-automl:2.78.0' +implementation 'com.google.cloud:google-cloud-automl:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-automl" % "2.80.0" ``` ## Authentication @@ -205,7 +205,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-automl.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-automl/2.80.0 [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 diff --git a/java-backupdr/README.md b/java-backupdr/README.md index c8bc5f95f31e..42ce9055a71f 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.37.0 + 0.39.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.37.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.39.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.39.0 [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 diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java index c5a7a7beb3eb..77278f55e808 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/BackupDRClient.java @@ -3889,6 +3889,7 @@ public final OperationFuture restoreBa * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]") * .toString()) * .setRequestId("requestId693933066") + * .setClearOverridesFieldMask(FieldMask.newBuilder().build()) * .build(); * RestoreBackupResponse response = backupDRClient.restoreBackupAsync(request).get(); * } @@ -3922,6 +3923,7 @@ public final OperationFuture restoreBa * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]") * .toString()) * .setRequestId("requestId693933066") + * .setClearOverridesFieldMask(FieldMask.newBuilder().build()) * .build(); * OperationFuture future = * backupDRClient.restoreBackupOperationCallable().futureCall(request); @@ -3955,6 +3957,7 @@ public final OperationFuture restoreBa * "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]") * .toString()) * .setRequestId("requestId693933066") + * .setClearOverridesFieldMask(FieldMask.newBuilder().build()) * .build(); * ApiFuture future = backupDRClient.restoreBackupCallable().futureCall(request); * // Do something. diff --git a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json index 7f2583e5cd55..9dd6281c8bd1 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json +++ b/java-backupdr/google-cloud-backupdr/src/main/resources/META-INF/native-image/com.google.cloud.backupdr.v1/reflect-config.json @@ -944,6 +944,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.BackupVault$BackupRetentionInheritance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.BackupVault$Builder", "queryAllDeclaredConstructors": true, @@ -953,6 +962,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.backupdr.v1.BackupVault$EncryptionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.backupdr.v1.BackupVault$EncryptionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.backupdr.v1.BackupVault$State", "queryAllDeclaredConstructors": true, diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java index 9c4cfbf7d367..ccc7a9143bd0 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientHttpJsonTest.java @@ -585,6 +585,7 @@ public void createBackupVaultTest() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -652,6 +653,7 @@ public void createBackupVaultTest2() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -919,6 +921,7 @@ public void getBackupVaultTest() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -976,6 +979,7 @@ public void getBackupVaultTest2() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1033,6 +1037,7 @@ public void updateBackupVaultTest() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1058,6 +1063,7 @@ public void updateBackupVaultTest() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1103,6 +1109,7 @@ public void updateBackupVaultExceptionTest() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateBackupVaultAsync(backupVault, updateMask).get(); @@ -1740,6 +1747,7 @@ public void getBackupTest() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1802,6 +1810,7 @@ public void getBackupTest2() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1864,6 +1873,7 @@ public void updateBackupTest() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1892,6 +1902,7 @@ public void updateBackupTest() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1940,6 +1951,7 @@ public void updateBackupExceptionTest() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateBackupAsync(backup, updateMask).get(); @@ -1969,6 +1981,7 @@ public void deleteBackupTest() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -2036,6 +2049,7 @@ public void deleteBackupTest2() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java index 0814316cef70..130624e35a37 100644 --- a/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java +++ b/java-backupdr/google-cloud-backupdr/src/test/java/com/google/cloud/backupdr/v1/BackupDRClientTest.java @@ -565,6 +565,7 @@ public void createBackupVaultTest() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -631,6 +632,7 @@ public void createBackupVaultTest2() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -875,6 +877,7 @@ public void getBackupVaultTest() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); mockBackupDR.addResponse(expectedResponse); @@ -926,6 +929,7 @@ public void getBackupVaultTest2() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); mockBackupDR.addResponse(expectedResponse); @@ -977,6 +981,7 @@ public void updateBackupVaultTest() throws Exception { .setTotalStoredBytes(1181597162) .setUid("uid115792") .putAllAnnotations(new HashMap()) + .setEncryptionConfig(BackupVault.EncryptionConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1564,6 +1569,7 @@ public void getBackupTest() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); mockBackupDR.addResponse(expectedResponse); @@ -1620,6 +1626,7 @@ public void getBackupTest2() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); mockBackupDR.addResponse(expectedResponse); @@ -1674,6 +1681,7 @@ public void updateBackupTest() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1739,6 +1747,7 @@ public void deleteBackupTest() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1803,6 +1812,7 @@ public void deleteBackupTest2() throws Exception { .setResourceSizeBytes(-275424386) .setSatisfiesPzs(true) .setSatisfiesPzi(true) + .addAllKmsKeyVersions(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java index d8dfe0784e02..dfa5e41503a5 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/Backup.java @@ -42,11 +42,13 @@ private Backup(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Backup() { name_ = ""; description_ = ""; + backupRetentionInheritance_ = 0; etag_ = ""; state_ = 0; serviceLocks_ = java.util.Collections.emptyList(); backupApplianceLocks_ = java.util.Collections.emptyList(); backupType_ = 0; + kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -2431,6 +2433,72 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild : enforcedRetentionEndTime_; } + public static final int BACKUP_RETENTION_INHERITANCE_FIELD_NUMBER = 30; + private int backupRetentionInheritance_ = 0; + + /** + * + * + *
+   * Output only. Setting for how the enforced retention end time is inherited.
+   * This value is copied from this backup's BackupVault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the backupRetentionInheritance field is set. + */ + @java.lang.Override + public boolean hasBackupRetentionInheritance() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Setting for how the enforced retention end time is inherited.
+   * This value is copied from this backup's BackupVault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for backupRetentionInheritance. + */ + @java.lang.Override + public int getBackupRetentionInheritanceValue() { + return backupRetentionInheritance_; + } + + /** + * + * + *
+   * Output only. Setting for how the enforced retention end time is inherited.
+   * This value is copied from this backup's BackupVault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupRetentionInheritance. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance + getBackupRetentionInheritance() { + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance result = + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.forNumber( + backupRetentionInheritance_); + return result == null + ? com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.UNRECOGNIZED + : result; + } + public static final int EXPIRE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp expireTime_; @@ -2449,7 +2517,7 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild */ @java.lang.Override public boolean hasExpireTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -2505,7 +2573,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { */ @java.lang.Override public boolean hasConsistencyTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -2567,7 +2635,7 @@ public com.google.protobuf.TimestampOrBuilder getConsistencyTimeOrBuilder() { */ @java.lang.Override public boolean hasEtag() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3225,7 +3293,7 @@ public long getResourceSizeBytes() { */ @java.lang.Override public boolean hasSatisfiesPzs() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -3264,7 +3332,7 @@ public boolean getSatisfiesPzs() { */ @java.lang.Override public boolean hasSatisfiesPzi() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -3348,6 +3416,86 @@ public com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder getGcpResourceOrB return com.google.cloud.backupdr.v1.BackupGcpResource.getDefaultInstance(); } + public static final int KMS_KEY_VERSIONS_FIELD_NUMBER = 33; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList kmsKeyVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Output only. The list of KMS key versions used to encrypt the
+   * backup.
+   * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the kmsKeyVersions. + */ + public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList() { + return kmsKeyVersions_; + } + + /** + * + * + *
+   * Optional. Output only. The list of KMS key versions used to encrypt the
+   * backup.
+   * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of kmsKeyVersions. + */ + public int getKmsKeyVersionsCount() { + return kmsKeyVersions_.size(); + } + + /** + * + * + *
+   * Optional. Output only. The list of KMS key versions used to encrypt the
+   * backup.
+   * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The kmsKeyVersions at the given index. + */ + public java.lang.String getKmsKeyVersions(int index) { + return kmsKeyVersions_.get(index); + } + + /** + * + * + *
+   * Optional. Output only. The list of KMS key versions used to encrypt the
+   * backup.
+   * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeyVersions at the given index. + */ + public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index) { + return kmsKeyVersions_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3379,13 +3527,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(6, getEnforcedRetentionEndTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(7, getExpireTime()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(9, getConsistencyTime()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, etag_); } if (state_ != com.google.cloud.backupdr.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { @@ -3415,10 +3563,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resourceSizeBytes_ != 0L) { output.writeInt64(23, resourceSizeBytes_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(24, satisfiesPzs_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(25, satisfiesPzi_); } if (backupPropertiesCase_ == 26) { @@ -3429,9 +3577,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 28, (com.google.cloud.backupdr.v1.DiskBackupProperties) backupProperties_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(30, backupRetentionInheritance_); + } if (sourceResourceCase_ == 31) { output.writeMessage(31, (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_); } + for (int i = 0; i < kmsKeyVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 33, kmsKeyVersions_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -3468,13 +3622,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, getEnforcedRetentionEndTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExpireTime()); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getConsistencyTime()); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); } if (state_ != com.google.cloud.backupdr.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { @@ -3510,10 +3664,10 @@ public int getSerializedSize() { if (resourceSizeBytes_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(23, resourceSizeBytes_); } - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, satisfiesPzs_); } - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(25, satisfiesPzi_); } if (backupPropertiesCase_ == 26) { @@ -3527,11 +3681,23 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 28, (com.google.cloud.backupdr.v1.DiskBackupProperties) backupProperties_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(30, backupRetentionInheritance_); + } if (sourceResourceCase_ == 31) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 31, (com.google.cloud.backupdr.v1.BackupGcpResource) sourceResource_); } + { + int dataSize = 0; + for (int i = 0; i < kmsKeyVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(kmsKeyVersions_.getRaw(i)); + } + size += dataSize; + size += 2 * getKmsKeyVersionsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3565,6 +3731,10 @@ public boolean equals(final java.lang.Object obj) { if (hasEnforcedRetentionEndTime()) { if (!getEnforcedRetentionEndTime().equals(other.getEnforcedRetentionEndTime())) return false; } + if (hasBackupRetentionInheritance() != other.hasBackupRetentionInheritance()) return false; + if (hasBackupRetentionInheritance()) { + if (backupRetentionInheritance_ != other.backupRetentionInheritance_) return false; + } if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { if (!getExpireTime().equals(other.getExpireTime())) return false; @@ -3590,6 +3760,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSatisfiesPzi()) { if (getSatisfiesPzi() != other.getSatisfiesPzi()) return false; } + if (!getKmsKeyVersionsList().equals(other.getKmsKeyVersionsList())) return false; if (!getBackupPropertiesCase().equals(other.getBackupPropertiesCase())) return false; switch (backupPropertiesCase_) { case 19: @@ -3659,6 +3830,10 @@ public int hashCode() { hash = (37 * hash) + ENFORCED_RETENTION_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEnforcedRetentionEndTime().hashCode(); } + if (hasBackupRetentionInheritance()) { + hash = (37 * hash) + BACKUP_RETENTION_INHERITANCE_FIELD_NUMBER; + hash = (53 * hash) + backupRetentionInheritance_; + } if (hasExpireTime()) { hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; hash = (53 * hash) + getExpireTime().hashCode(); @@ -3693,6 +3868,10 @@ public int hashCode() { hash = (37 * hash) + SATISFIES_PZI_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzi()); } + if (getKmsKeyVersionsCount() > 0) { + hash = (37 * hash) + KMS_KEY_VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyVersionsList().hashCode(); + } switch (backupPropertiesCase_) { case 19: hash = (37 * hash) + COMPUTE_INSTANCE_BACKUP_PROPERTIES_FIELD_NUMBER; @@ -3923,6 +4102,7 @@ public Builder clear() { enforcedRetentionEndTimeBuilder_.dispose(); enforcedRetentionEndTimeBuilder_ = null; } + backupRetentionInheritance_ = 0; expireTime_ = null; if (expireTimeBuilder_ != null) { expireTimeBuilder_.dispose(); @@ -3941,14 +4121,14 @@ public Builder clear() { serviceLocks_ = null; serviceLocksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); if (backupApplianceLocksBuilder_ == null) { backupApplianceLocks_ = java.util.Collections.emptyList(); } else { backupApplianceLocks_ = null; backupApplianceLocksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); if (computeInstanceBackupPropertiesBuilder_ != null) { computeInstanceBackupPropertiesBuilder_.clear(); } @@ -3971,6 +4151,7 @@ public Builder clear() { if (gcpResourceBuilder_ != null) { gcpResourceBuilder_.clear(); } + kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); backupPropertiesCase_ = 0; backupProperties_ = null; planInfoCase_ = 0; @@ -4014,18 +4195,18 @@ public com.google.cloud.backupdr.v1.Backup buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.backupdr.v1.Backup result) { if (serviceLocksBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { serviceLocks_ = java.util.Collections.unmodifiableList(serviceLocks_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } result.serviceLocks_ = serviceLocks_; } else { result.serviceLocks_ = serviceLocksBuilder_.build(); } if (backupApplianceLocksBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { backupApplianceLocks_ = java.util.Collections.unmodifiableList(backupApplianceLocks_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.backupApplianceLocks_ = backupApplianceLocks_; } else { @@ -4063,34 +4244,42 @@ private void buildPartial0(com.google.cloud.backupdr.v1.Backup result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.backupRetentionInheritance_ = backupRetentionInheritance_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.consistencyTime_ = - consistencyTimeBuilder_ == null ? consistencyTime_ : consistencyTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.etag_ = etag_; + result.consistencyTime_ = + consistencyTimeBuilder_ == null ? consistencyTime_ : consistencyTimeBuilder_.build(); to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.state_ = state_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.backupType_ = backupType_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.resourceSizeBytes_ = resourceSizeBytes_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.satisfiesPzs_ = satisfiesPzs_; - to_bitField0_ |= 0x00000080; + to_bitField0_ |= 0x00000100; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.satisfiesPzi_ = satisfiesPzi_; - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + kmsKeyVersions_.makeImmutable(); + result.kmsKeyVersions_ = kmsKeyVersions_; } result.bitField0_ |= to_bitField0_; } @@ -4188,6 +4377,9 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) { if (other.hasEnforcedRetentionEndTime()) { mergeEnforcedRetentionEndTime(other.getEnforcedRetentionEndTime()); } + if (other.hasBackupRetentionInheritance()) { + setBackupRetentionInheritance(other.getBackupRetentionInheritance()); + } if (other.hasExpireTime()) { mergeExpireTime(other.getExpireTime()); } @@ -4196,7 +4388,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) { } if (other.hasEtag()) { etag_ = other.etag_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (other.state_ != 0) { @@ -4206,7 +4398,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) { if (!other.serviceLocks_.isEmpty()) { if (serviceLocks_.isEmpty()) { serviceLocks_ = other.serviceLocks_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureServiceLocksIsMutable(); serviceLocks_.addAll(other.serviceLocks_); @@ -4219,7 +4411,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) { serviceLocksBuilder_.dispose(); serviceLocksBuilder_ = null; serviceLocks_ = other.serviceLocks_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); serviceLocksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getServiceLocksFieldBuilder() @@ -4233,7 +4425,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) { if (!other.backupApplianceLocks_.isEmpty()) { if (backupApplianceLocks_.isEmpty()) { backupApplianceLocks_ = other.backupApplianceLocks_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureBackupApplianceLocksIsMutable(); backupApplianceLocks_.addAll(other.backupApplianceLocks_); @@ -4246,7 +4438,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) { backupApplianceLocksBuilder_.dispose(); backupApplianceLocksBuilder_ = null; backupApplianceLocks_ = other.backupApplianceLocks_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); backupApplianceLocksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBackupApplianceLocksFieldBuilder() @@ -4268,6 +4460,16 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.Backup other) { if (other.hasSatisfiesPzi()) { setSatisfiesPzi(other.getSatisfiesPzi()); } + if (!other.kmsKeyVersions_.isEmpty()) { + if (kmsKeyVersions_.isEmpty()) { + kmsKeyVersions_ = other.kmsKeyVersions_; + bitField0_ |= 0x00800000; + } else { + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.addAll(other.kmsKeyVersions_); + } + onChanged(); + } switch (other.getBackupPropertiesCase()) { case COMPUTE_INSTANCE_BACKUP_PROPERTIES: { @@ -4388,25 +4590,25 @@ public Builder mergeFrom( case 58: { input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 74: { input.readMessage(getConsistencyTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 74 case 90: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 90 case 120: { state_ = input.readEnum(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 120 case 138: @@ -4446,7 +4648,7 @@ public Builder mergeFrom( case 160: { backupType_ = input.readEnum(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 160 case 170: @@ -4467,19 +4669,19 @@ public Builder mergeFrom( case 184: { resourceSizeBytes_ = input.readInt64(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 184 case 192: { satisfiesPzs_ = input.readBool(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 192 case 200: { satisfiesPzi_ = input.readBool(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 200 case 210: @@ -4497,12 +4699,25 @@ public Builder mergeFrom( backupPropertiesCase_ = 28; break; } // case 226 + case 240: + { + backupRetentionInheritance_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 240 case 250: { input.readMessage(getGcpResourceFieldBuilder().getBuilder(), extensionRegistry); sourceResourceCase_ = 31; break; } // case 250 + case 266: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.add(s); + break; + } // case 266 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5648,6 +5863,140 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild return enforcedRetentionEndTimeBuilder_; } + private int backupRetentionInheritance_ = 0; + + /** + * + * + *
+     * Output only. Setting for how the enforced retention end time is inherited.
+     * This value is copied from this backup's BackupVault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the backupRetentionInheritance field is set. + */ + @java.lang.Override + public boolean hasBackupRetentionInheritance() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. Setting for how the enforced retention end time is inherited.
+     * This value is copied from this backup's BackupVault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for backupRetentionInheritance. + */ + @java.lang.Override + public int getBackupRetentionInheritanceValue() { + return backupRetentionInheritance_; + } + + /** + * + * + *
+     * Output only. Setting for how the enforced retention end time is inherited.
+     * This value is copied from this backup's BackupVault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for backupRetentionInheritance to set. + * @return This builder for chaining. + */ + public Builder setBackupRetentionInheritanceValue(int value) { + backupRetentionInheritance_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Setting for how the enforced retention end time is inherited.
+     * This value is copied from this backup's BackupVault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupRetentionInheritance. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance + getBackupRetentionInheritance() { + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance result = + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.forNumber( + backupRetentionInheritance_); + return result == null + ? com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. Setting for how the enforced retention end time is inherited.
+     * This value is copied from this backup's BackupVault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The backupRetentionInheritance to set. + * @return This builder for chaining. + */ + public Builder setBackupRetentionInheritance( + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + backupRetentionInheritance_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Setting for how the enforced retention end time is inherited.
+     * This value is copied from this backup's BackupVault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBackupRetentionInheritance() { + bitField0_ = (bitField0_ & ~0x00000040); + backupRetentionInheritance_ = 0; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -5669,7 +6018,7 @@ public com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuild * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -5715,7 +6064,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -5737,7 +6086,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal } else { expireTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -5755,7 +6104,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && expireTime_ != null && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); @@ -5766,7 +6115,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { expireTimeBuilder_.mergeFrom(value); } if (expireTime_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -5784,7 +6133,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { * */ public Builder clearExpireTime() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); expireTime_ = null; if (expireTimeBuilder_ != null) { expireTimeBuilder_.dispose(); @@ -5806,7 +6155,7 @@ public Builder clearExpireTime() { * */ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } @@ -5882,7 +6231,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * @return Whether the consistencyTime field is set. */ public boolean hasConsistencyTime() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -5930,7 +6279,7 @@ public Builder setConsistencyTime(com.google.protobuf.Timestamp value) { } else { consistencyTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -5953,7 +6302,7 @@ public Builder setConsistencyTime(com.google.protobuf.Timestamp.Builder builderF } else { consistencyTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -5972,7 +6321,7 @@ public Builder setConsistencyTime(com.google.protobuf.Timestamp.Builder builderF */ public Builder mergeConsistencyTime(com.google.protobuf.Timestamp value) { if (consistencyTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && consistencyTime_ != null && consistencyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getConsistencyTimeBuilder().mergeFrom(value); @@ -5983,7 +6332,7 @@ public Builder mergeConsistencyTime(com.google.protobuf.Timestamp value) { consistencyTimeBuilder_.mergeFrom(value); } if (consistencyTime_ != null) { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -6002,7 +6351,7 @@ public Builder mergeConsistencyTime(com.google.protobuf.Timestamp value) { * */ public Builder clearConsistencyTime() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); consistencyTime_ = null; if (consistencyTimeBuilder_ != null) { consistencyTimeBuilder_.dispose(); @@ -6025,7 +6374,7 @@ public Builder clearConsistencyTime() { * */ public com.google.protobuf.Timestamp.Builder getConsistencyTimeBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getConsistencyTimeFieldBuilder().getBuilder(); } @@ -6096,7 +6445,7 @@ public com.google.protobuf.TimestampOrBuilder getConsistencyTimeOrBuilder() { * @return Whether the etag field is set. */ public boolean hasEtag() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -6165,7 +6514,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6184,7 +6533,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -6208,7 +6557,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -6249,7 +6598,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -6292,7 +6641,7 @@ public Builder setState(com.google.cloud.backupdr.v1.Backup.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; state_ = value.getNumber(); onChanged(); return this; @@ -6312,7 +6661,7 @@ public Builder setState(com.google.cloud.backupdr.v1.Backup.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); state_ = 0; onChanged(); return this; @@ -6322,10 +6671,10 @@ public Builder clearState() { java.util.Collections.emptyList(); private void ensureServiceLocksIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { serviceLocks_ = new java.util.ArrayList(serviceLocks_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } @@ -6584,7 +6933,7 @@ public Builder addAllServiceLocks( public Builder clearServiceLocks() { if (serviceLocksBuilder_ == null) { serviceLocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { serviceLocksBuilder_.clear(); @@ -6734,7 +7083,7 @@ public com.google.cloud.backupdr.v1.BackupLock.Builder addServiceLocksBuilder(in com.google.cloud.backupdr.v1.BackupLock, com.google.cloud.backupdr.v1.BackupLock.Builder, com.google.cloud.backupdr.v1.BackupLockOrBuilder>( - serviceLocks_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + serviceLocks_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); serviceLocks_ = null; } return serviceLocksBuilder_; @@ -6744,10 +7093,10 @@ public com.google.cloud.backupdr.v1.BackupLock.Builder addServiceLocksBuilder(in java.util.Collections.emptyList(); private void ensureBackupApplianceLocksIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { backupApplianceLocks_ = new java.util.ArrayList(backupApplianceLocks_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -6997,7 +7346,7 @@ public Builder addAllBackupApplianceLocks( public Builder clearBackupApplianceLocks() { if (backupApplianceLocksBuilder_ == null) { backupApplianceLocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { backupApplianceLocksBuilder_.clear(); @@ -7144,7 +7493,7 @@ public com.google.cloud.backupdr.v1.BackupLock.Builder addBackupApplianceLocksBu com.google.cloud.backupdr.v1.BackupLock.Builder, com.google.cloud.backupdr.v1.BackupLockOrBuilder>( backupApplianceLocks_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); backupApplianceLocks_ = null; @@ -8165,7 +8514,7 @@ public int getBackupTypeValue() { */ public Builder setBackupTypeValue(int value) { backupType_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -8208,7 +8557,7 @@ public Builder setBackupType(com.google.cloud.backupdr.v1.Backup.BackupType valu if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; backupType_ = value.getNumber(); onChanged(); return this; @@ -8228,7 +8577,7 @@ public Builder setBackupType(com.google.cloud.backupdr.v1.Backup.BackupType valu * @return This builder for chaining. */ public Builder clearBackupType() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); backupType_ = 0; onChanged(); return this; @@ -8508,7 +8857,7 @@ public long getResourceSizeBytes() { public Builder setResourceSizeBytes(long value) { resourceSizeBytes_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -8525,7 +8874,7 @@ public Builder setResourceSizeBytes(long value) { * @return This builder for chaining. */ public Builder clearResourceSizeBytes() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); resourceSizeBytes_ = 0L; onChanged(); return this; @@ -8548,7 +8897,7 @@ public Builder clearResourceSizeBytes() { */ @java.lang.Override public boolean hasSatisfiesPzs() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -8586,7 +8935,7 @@ public boolean getSatisfiesPzs() { public Builder setSatisfiesPzs(boolean value) { satisfiesPzs_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -8605,7 +8954,7 @@ public Builder setSatisfiesPzs(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzs() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); satisfiesPzs_ = false; onChanged(); return this; @@ -8628,7 +8977,7 @@ public Builder clearSatisfiesPzs() { */ @java.lang.Override public boolean hasSatisfiesPzi() { - return ((bitField0_ & 0x00100000) != 0); + return ((bitField0_ & 0x00200000) != 0); } /** @@ -8666,7 +9015,7 @@ public boolean getSatisfiesPzi() { public Builder setSatisfiesPzi(boolean value) { satisfiesPzi_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -8685,7 +9034,7 @@ public Builder setSatisfiesPzi(boolean value) { * @return This builder for chaining. */ public Builder clearSatisfiesPzi() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); satisfiesPzi_ = false; onChanged(); return this; @@ -8937,6 +9286,216 @@ public com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder getGcpResourceOrB return gcpResourceBuilder_; } + private com.google.protobuf.LazyStringArrayList kmsKeyVersions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureKmsKeyVersionsIsMutable() { + if (!kmsKeyVersions_.isModifiable()) { + kmsKeyVersions_ = new com.google.protobuf.LazyStringArrayList(kmsKeyVersions_); + } + bitField0_ |= 0x00800000; + } + + /** + * + * + *
+     * Optional. Output only. The list of KMS key versions used to encrypt the
+     * backup.
+     * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the kmsKeyVersions. + */ + public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList() { + kmsKeyVersions_.makeImmutable(); + return kmsKeyVersions_; + } + + /** + * + * + *
+     * Optional. Output only. The list of KMS key versions used to encrypt the
+     * backup.
+     * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of kmsKeyVersions. + */ + public int getKmsKeyVersionsCount() { + return kmsKeyVersions_.size(); + } + + /** + * + * + *
+     * Optional. Output only. The list of KMS key versions used to encrypt the
+     * backup.
+     * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The kmsKeyVersions at the given index. + */ + public java.lang.String getKmsKeyVersions(int index) { + return kmsKeyVersions_.get(index); + } + + /** + * + * + *
+     * Optional. Output only. The list of KMS key versions used to encrypt the
+     * backup.
+     * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeyVersions at the given index. + */ + public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index) { + return kmsKeyVersions_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Output only. The list of KMS key versions used to encrypt the
+     * backup.
+     * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The kmsKeyVersions to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyVersions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.set(index, value); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The list of KMS key versions used to encrypt the
+     * backup.
+     * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKeyVersions to add. + * @return This builder for chaining. + */ + public Builder addKmsKeyVersions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.add(value); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The list of KMS key versions used to encrypt the
+     * backup.
+     * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The kmsKeyVersions to add. + * @return This builder for chaining. + */ + public Builder addAllKmsKeyVersions(java.lang.Iterable values) { + ensureKmsKeyVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, kmsKeyVersions_); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The list of KMS key versions used to encrypt the
+     * backup.
+     * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyVersions() { + kmsKeyVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The list of KMS key versions used to encrypt the
+     * backup.
+     * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the kmsKeyVersions to add. + * @return This builder for chaining. + */ + public Builder addKmsKeyVersionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKmsKeyVersionsIsMutable(); + kmsKeyVersions_.add(value); + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java index 2e33a83e41f0..53716eb6e901 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupOrBuilder.java @@ -299,6 +299,55 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.TimestampOrBuilder getEnforcedRetentionEndTimeOrBuilder(); + /** + * + * + *
+   * Output only. Setting for how the enforced retention end time is inherited.
+   * This value is copied from this backup's BackupVault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the backupRetentionInheritance field is set. + */ + boolean hasBackupRetentionInheritance(); + + /** + * + * + *
+   * Output only. Setting for how the enforced retention end time is inherited.
+   * This value is copied from this backup's BackupVault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for backupRetentionInheritance. + */ + int getBackupRetentionInheritanceValue(); + + /** + * + * + *
+   * Output only. Setting for how the enforced retention end time is inherited.
+   * This value is copied from this backup's BackupVault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 30 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The backupRetentionInheritance. + */ + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance + getBackupRetentionInheritance(); + /** * * @@ -965,6 +1014,72 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.backupdr.v1.BackupGcpResourceOrBuilder getGcpResourceOrBuilder(); + /** + * + * + *
+   * Optional. Output only. The list of KMS key versions used to encrypt the
+   * backup.
+   * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the kmsKeyVersions. + */ + java.util.List getKmsKeyVersionsList(); + + /** + * + * + *
+   * Optional. Output only. The list of KMS key versions used to encrypt the
+   * backup.
+   * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of kmsKeyVersions. + */ + int getKmsKeyVersionsCount(); + + /** + * + * + *
+   * Optional. Output only. The list of KMS key versions used to encrypt the
+   * backup.
+   * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The kmsKeyVersions at the given index. + */ + java.lang.String getKmsKeyVersions(int index); + + /** + * + * + *
+   * Optional. Output only. The list of KMS key versions used to encrypt the
+   * backup.
+   * 
+ * + * + * repeated string kms_key_versions = 33 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the kmsKeyVersions at the given index. + */ + com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index); + com.google.cloud.backupdr.v1.Backup.BackupPropertiesCase getBackupPropertiesCase(); com.google.cloud.backupdr.v1.Backup.PlanInfoCase getPlanInfoCase(); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java index b275defefec2..ff6a589513e2 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVault.java @@ -42,6 +42,7 @@ private BackupVault(com.google.protobuf.GeneratedMessageV3.Builder builder) { private BackupVault() { name_ = ""; description_ = ""; + backupRetentionInheritance_ = 0; etag_ = ""; state_ = 0; serviceAccount_ = ""; @@ -84,6 +85,188 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.backupdr.v1.BackupVault.Builder.class); } + /** + * + * + *
+   * How a backup's enforced retention end time is inherited.
+   * 
+ * + * Protobuf enum {@code google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance} + */ + public enum BackupRetentionInheritance implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Inheritance behavior not set. This will default to
+     * `INHERIT_VAULT_RETENTION`.
+     * 
+ * + * BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 0; + */ + BACKUP_RETENTION_INHERITANCE_UNSPECIFIED(0), + /** + * + * + *
+     * The enforced retention end time of a backup will be inherited from the
+     * backup vault's `backup_minimum_enforced_retention_duration` field.
+     *
+     * This is the default behavior.
+     * 
+ * + * INHERIT_VAULT_RETENTION = 1; + */ + INHERIT_VAULT_RETENTION(1), + /** + * + * + *
+     * The enforced retention end time of a backup will always match the expire
+     * time of the backup.
+     *
+     * If this is set, the backup's enforced retention end time will be set to
+     * match the expire time during creation of the backup. When updating, the
+     * ERET and expire time must be updated together and have the same value.
+     * Invalid update requests will be rejected by the server.
+     * 
+ * + * MATCH_BACKUP_EXPIRE_TIME = 2; + */ + MATCH_BACKUP_EXPIRE_TIME(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Inheritance behavior not set. This will default to
+     * `INHERIT_VAULT_RETENTION`.
+     * 
+ * + * BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 0; + */ + public static final int BACKUP_RETENTION_INHERITANCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The enforced retention end time of a backup will be inherited from the
+     * backup vault's `backup_minimum_enforced_retention_duration` field.
+     *
+     * This is the default behavior.
+     * 
+ * + * INHERIT_VAULT_RETENTION = 1; + */ + public static final int INHERIT_VAULT_RETENTION_VALUE = 1; + + /** + * + * + *
+     * The enforced retention end time of a backup will always match the expire
+     * time of the backup.
+     *
+     * If this is set, the backup's enforced retention end time will be set to
+     * match the expire time during creation of the backup. When updating, the
+     * ERET and expire time must be updated together and have the same value.
+     * Invalid update requests will be rejected by the server.
+     * 
+ * + * MATCH_BACKUP_EXPIRE_TIME = 2; + */ + public static final int MATCH_BACKUP_EXPIRE_TIME_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 BackupRetentionInheritance 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 BackupRetentionInheritance forNumber(int value) { + switch (value) { + case 0: + return BACKUP_RETENTION_INHERITANCE_UNSPECIFIED; + case 1: + return INHERIT_VAULT_RETENTION; + case 2: + return MATCH_BACKUP_EXPIRE_TIME; + 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 BackupRetentionInheritance findValueByNumber(int number) { + return BackupRetentionInheritance.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.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(0); + } + + private static final BackupRetentionInheritance[] VALUES = values(); + + public static BackupRetentionInheritance 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 BackupRetentionInheritance(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance) + } + /** * * @@ -288,7 +471,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(1); } private static final State[] VALUES = values(); @@ -501,7 +684,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(1); + return com.google.cloud.backupdr.v1.BackupVault.getDescriptor().getEnumTypes().get(2); } private static final AccessRestriction[] VALUES = values(); @@ -526,6 +709,774 @@ private AccessRestriction(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.backupdr.v1.BackupVault.AccessRestriction) } + public interface EncryptionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.backupdr.v1.BackupVault.EncryptionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+     * Must be in the same region as the vault. Some workload backups like
+     * compute disk backups may use their inherited source key instead. Format:
+     * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+     * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the kmsKeyName field is set. + */ + boolean hasKmsKeyName(); + + /** + * + * + *
+     * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+     * Must be in the same region as the vault. Some workload backups like
+     * compute disk backups may use their inherited source key instead. Format:
+     * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+     * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
+     * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+     * Must be in the same region as the vault. Some workload backups like
+     * compute disk backups may use their inherited source key instead. Format:
+     * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+     * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); + } + + /** + * + * + *
+   * Message describing the EncryptionConfig of backup vault.
+   * This determines how data within the vault is encrypted at rest.
+   * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BackupVault.EncryptionConfig} + */ + public static final class EncryptionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.backupdr.v1.BackupVault.EncryptionConfig) + EncryptionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + // Use EncryptionConfig.newBuilder() to construct. + private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EncryptionConfig() { + kmsKeyName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EncryptionConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.class, + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder.class); + } + + private int bitField0_; + public static final int KMS_KEY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+     * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+     * Must be in the same region as the vault. Some workload backups like
+     * compute disk backups may use their inherited source key instead. Format:
+     * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+     * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the kmsKeyName field is set. + */ + @java.lang.Override + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+     * Must be in the same region as the vault. Some workload backups like
+     * compute disk backups may use their inherited source key instead. Format:
+     * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+     * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+     * Must be in the same region as the vault. Some workload backups like
+     * compute disk backups may use their inherited source key instead. Format:
+     * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+     * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kmsKeyName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kmsKeyName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig)) { + return super.equals(obj); + } + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig other = + (com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig) obj; + + if (hasKmsKeyName() != other.hasKmsKeyName()) return false; + if (hasKmsKeyName()) { + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKmsKeyName()) { + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig 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.backupdr.v1.BackupVault.EncryptionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig 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.backupdr.v1.BackupVault.EncryptionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig 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.backupdr.v1.BackupVault.EncryptionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig 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.backupdr.v1.BackupVault.EncryptionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Message describing the EncryptionConfig of backup vault.
+     * This determines how data within the vault is encrypted at rest.
+     * 
+ * + * Protobuf type {@code google.cloud.backupdr.v1.BackupVault.EncryptionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.backupdr.v1.BackupVault.EncryptionConfig) + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.class, + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder.class); + } + + // Construct using com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kmsKeyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.backupdr.v1.BackupVaultProto + .internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getDefaultInstanceForType() { + return com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig build() { + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig buildPartial() { + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig result = + new com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder 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.backupdr.v1.BackupVault.EncryptionConfig) { + return mergeFrom((com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig other) { + if (other == com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance()) + return this; + if (other.hasKmsKeyName()) { + kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+       * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+       * Must be in the same region as the vault. Some workload backups like
+       * compute disk backups may use their inherited source key instead. Format:
+       * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+       * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the kmsKeyName field is set. + */ + public boolean hasKmsKeyName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+       * Must be in the same region as the vault. Some workload backups like
+       * compute disk backups may use their inherited source key instead. Format:
+       * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+       * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+       * Must be in the same region as the vault. Some workload backups like
+       * compute disk backups may use their inherited source key instead. Format:
+       * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+       * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+       * Must be in the same region as the vault. Some workload backups like
+       * compute disk backups may use their inherited source key instead. Format:
+       * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+       * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+       * Must be in the same region as the vault. Some workload backups like
+       * compute disk backups may use their inherited source key instead. Format:
+       * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+       * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The Cloud KMS key name to encrypt backups in this backup vault.
+       * Must be in the same region as the vault. Some workload backups like
+       * compute disk backups may use their inherited source key instead. Format:
+       * projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}
+       * 
+ * + * + * optional string kms_key_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @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.backupdr.v1.BackupVault.EncryptionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.backupdr.v1.BackupVault.EncryptionConfig) + private static final com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig(); + } + + public static com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EncryptionConfig 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.backupdr.v1.BackupVault.EncryptionConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -911,41 +1862,107 @@ public boolean hasBackupMinimumEnforcedRetentionDuration() { * * *
-   * Required. The default and minimum enforced retention for each backup within
-   * the backup vault.  The enforced retention for each backup can be extended.
+   * Required. The default and minimum enforced retention for each backup within
+   * the backup vault.  The enforced retention for each backup can be extended.
+   * 
+ * + * + * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backupMinimumEnforcedRetentionDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getBackupMinimumEnforcedRetentionDuration() { + return backupMinimumEnforcedRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backupMinimumEnforcedRetentionDuration_; + } + + /** + * + * + *
+   * Required. The default and minimum enforced retention for each backup within
+   * the backup vault.  The enforced retention for each backup can be extended.
+   * 
+ * + * + * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder + getBackupMinimumEnforcedRetentionDurationOrBuilder() { + return backupMinimumEnforcedRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backupMinimumEnforcedRetentionDuration_; + } + + public static final int BACKUP_RETENTION_INHERITANCE_FIELD_NUMBER = 27; + private int backupRetentionInheritance_ = 0; + + /** + * + * + *
+   * Optional. Setting for how a backup's enforced retention end time is
+   * inherited.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the backupRetentionInheritance field is set. + */ + @java.lang.Override + public boolean hasBackupRetentionInheritance() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. Setting for how a backup's enforced retention end time is
+   * inherited.
    * 
* * - * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The backupMinimumEnforcedRetentionDuration. + * @return The enum numeric value on the wire for backupRetentionInheritance. */ @java.lang.Override - public com.google.protobuf.Duration getBackupMinimumEnforcedRetentionDuration() { - return backupMinimumEnforcedRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : backupMinimumEnforcedRetentionDuration_; + public int getBackupRetentionInheritanceValue() { + return backupRetentionInheritance_; } /** * * *
-   * Required. The default and minimum enforced retention for each backup within
-   * the backup vault.  The enforced retention for each backup can be extended.
+   * Optional. Setting for how a backup's enforced retention end time is
+   * inherited.
    * 
* * - * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The backupRetentionInheritance. */ @java.lang.Override - public com.google.protobuf.DurationOrBuilder - getBackupMinimumEnforcedRetentionDurationOrBuilder() { - return backupMinimumEnforcedRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : backupMinimumEnforcedRetentionDuration_; + public com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance + getBackupRetentionInheritance() { + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance result = + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.forNumber( + backupRetentionInheritance_); + return result == null + ? com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.UNRECOGNIZED + : result; } public static final int DELETABLE_FIELD_NUMBER = 8; @@ -965,7 +1982,7 @@ public com.google.protobuf.Duration getBackupMinimumEnforcedRetentionDuration() */ @java.lang.Override public boolean hasDeletable() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1004,7 +2021,7 @@ public boolean getDeletable() { */ @java.lang.Override public boolean hasEtag() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1116,7 +2133,7 @@ public com.google.cloud.backupdr.v1.BackupVault.State getState() { */ @java.lang.Override public boolean hasEffectiveTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1476,6 +2493,66 @@ public com.google.cloud.backupdr.v1.BackupVault.AccessRestriction getAccessRestr : result; } + public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 29; + private com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryptionConfig_; + + /** + * + * + *
+   * Optional. The encryption config of the backup vault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionConfig field is set. + */ + @java.lang.Override + public boolean hasEncryptionConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+   * Optional. The encryption config of the backup vault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionConfig. + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getEncryptionConfig() { + return encryptionConfig_ == null + ? com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } + + /** + * + * + *
+   * Optional. The encryption config of the backup vault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder + getEncryptionConfigOrBuilder() { + return encryptionConfig_ == null + ? com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1504,16 +2581,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getUpdateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(8, deletable_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); } if (state_ != com.google.cloud.backupdr.v1.BackupVault.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(10, state_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(12, getEffectiveTime()); } if (backupCount_ != 0L) { @@ -1538,6 +2615,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(24, accessRestriction_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(27, backupRetentionInheritance_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(29, getEncryptionConfig()); + } getUnknownFields().writeTo(output); } @@ -1569,16 +2652,16 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, deletable_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); } if (state_ != com.google.cloud.backupdr.v1.BackupVault.State.STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, state_); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getEffectiveTime()); } if (backupCount_ != 0L) { @@ -1613,6 +2696,13 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, accessRestriction_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(27, backupRetentionInheritance_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(29, getEncryptionConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1648,6 +2738,10 @@ public boolean equals(final java.lang.Object obj) { if (!getBackupMinimumEnforcedRetentionDuration() .equals(other.getBackupMinimumEnforcedRetentionDuration())) return false; } + if (hasBackupRetentionInheritance() != other.hasBackupRetentionInheritance()) return false; + if (hasBackupRetentionInheritance()) { + if (backupRetentionInheritance_ != other.backupRetentionInheritance_) return false; + } if (hasDeletable() != other.hasDeletable()) return false; if (hasDeletable()) { if (getDeletable() != other.getDeletable()) return false; @@ -1667,6 +2761,10 @@ public boolean equals(final java.lang.Object obj) { if (!getUid().equals(other.getUid())) return false; if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (accessRestriction_ != other.accessRestriction_) return false; + if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false; + if (hasEncryptionConfig()) { + if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1700,6 +2798,10 @@ public int hashCode() { hash = (37 * hash) + BACKUP_MINIMUM_ENFORCED_RETENTION_DURATION_FIELD_NUMBER; hash = (53 * hash) + getBackupMinimumEnforcedRetentionDuration().hashCode(); } + if (hasBackupRetentionInheritance()) { + hash = (37 * hash) + BACKUP_RETENTION_INHERITANCE_FIELD_NUMBER; + hash = (53 * hash) + backupRetentionInheritance_; + } if (hasDeletable()) { hash = (37 * hash) + DELETABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletable()); @@ -1728,6 +2830,10 @@ public int hashCode() { } hash = (37 * hash) + ACCESS_RESTRICTION_FIELD_NUMBER; hash = (53 * hash) + accessRestriction_; + if (hasEncryptionConfig()) { + hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1899,6 +3005,7 @@ private void maybeForceBuilderInitialization() { getUpdateTimeFieldBuilder(); getBackupMinimumEnforcedRetentionDurationFieldBuilder(); getEffectiveTimeFieldBuilder(); + getEncryptionConfigFieldBuilder(); } } @@ -1924,6 +3031,7 @@ public Builder clear() { backupMinimumEnforcedRetentionDurationBuilder_.dispose(); backupMinimumEnforcedRetentionDurationBuilder_ = null; } + backupRetentionInheritance_ = 0; deletable_ = false; etag_ = ""; state_ = 0; @@ -1938,6 +3046,11 @@ public Builder clear() { uid_ = ""; internalGetMutableAnnotations().clear(); accessRestriction_ = 0; + encryptionConfig_ = null; + if (encryptionConfigBuilder_ != null) { + encryptionConfigBuilder_.dispose(); + encryptionConfigBuilder_ = null; + } return this; } @@ -2002,40 +3115,49 @@ private void buildPartial0(com.google.cloud.backupdr.v1.BackupVault result) { to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.deletable_ = deletable_; + result.backupRetentionInheritance_ = backupRetentionInheritance_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.etag_ = etag_; + result.deletable_ = deletable_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.state_ = state_; + result.etag_ = etag_; + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.effectiveTime_ = effectiveTimeBuilder_ == null ? effectiveTime_ : effectiveTimeBuilder_.build(); - to_bitField0_ |= 0x00000040; + to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.backupCount_ = backupCount_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.serviceAccount_ = serviceAccount_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.totalStoredBytes_ = totalStoredBytes_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.uid_ = uid_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.annotations_ = internalGetAnnotations(); result.annotations_.makeImmutable(); } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.accessRestriction_ = accessRestriction_; } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.encryptionConfig_ = + encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } result.bitField0_ |= to_bitField0_; } @@ -2106,12 +3228,15 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupVault other) { mergeBackupMinimumEnforcedRetentionDuration( other.getBackupMinimumEnforcedRetentionDuration()); } + if (other.hasBackupRetentionInheritance()) { + setBackupRetentionInheritance(other.getBackupRetentionInheritance()); + } if (other.hasDeletable()) { setDeletable(other.getDeletable()); } if (other.hasEtag()) { etag_ = other.etag_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.state_ != 0) { @@ -2125,7 +3250,7 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupVault other) { } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } if (other.getTotalStoredBytes() != 0L) { @@ -2133,14 +3258,17 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.BackupVault other) { } if (!other.getUid().isEmpty()) { uid_ = other.uid_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; if (other.accessRestriction_ != 0) { setAccessRestrictionValue(other.getAccessRestrictionValue()); } + if (other.hasEncryptionConfig()) { + mergeEncryptionConfig(other.getEncryptionConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2206,43 +3334,43 @@ public Builder mergeFrom( case 64: { deletable_ = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 64 case 74: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 74 case 80: { state_ = input.readEnum(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 80 case 98: { input.readMessage(getEffectiveTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 98 case 136: { backupCount_ = input.readInt64(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 136 case 146: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 146 case 152: { totalStoredBytes_ = input.readInt64(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 152 case 162: @@ -2256,7 +3384,7 @@ public Builder mergeFrom( case 170: { uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 170 case 178: @@ -2268,15 +3396,28 @@ public Builder mergeFrom( internalGetMutableAnnotations() .getMutableMap() .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 178 case 192: { accessRestriction_ = input.readEnum(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 192 + case 216: + { + backupRetentionInheritance_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 216 + case 234: + { + input.readMessage( + getEncryptionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 234 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3312,16 +4453,148 @@ public Builder mergeBackupMinimumEnforcedRetentionDuration(com.google.protobuf.D *
* * - * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackupMinimumEnforcedRetentionDuration() { + bitField0_ = (bitField0_ & ~0x00000020); + backupMinimumEnforcedRetentionDuration_ = null; + if (backupMinimumEnforcedRetentionDurationBuilder_ != null) { + backupMinimumEnforcedRetentionDurationBuilder_.dispose(); + backupMinimumEnforcedRetentionDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The default and minimum enforced retention for each backup within
+     * the backup vault.  The enforced retention for each backup can be extended.
+     * 
+ * + * + * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Duration.Builder getBackupMinimumEnforcedRetentionDurationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getBackupMinimumEnforcedRetentionDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The default and minimum enforced retention for each backup within
+     * the backup vault.  The enforced retention for each backup can be extended.
+     * 
+ * + * + * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.DurationOrBuilder + getBackupMinimumEnforcedRetentionDurationOrBuilder() { + if (backupMinimumEnforcedRetentionDurationBuilder_ != null) { + return backupMinimumEnforcedRetentionDurationBuilder_.getMessageOrBuilder(); + } else { + return backupMinimumEnforcedRetentionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : backupMinimumEnforcedRetentionDuration_; + } + } + + /** + * + * + *
+     * Required. The default and minimum enforced retention for each backup within
+     * the backup vault.  The enforced retention for each backup can be extended.
+     * 
+ * + * + * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getBackupMinimumEnforcedRetentionDurationFieldBuilder() { + if (backupMinimumEnforcedRetentionDurationBuilder_ == null) { + backupMinimumEnforcedRetentionDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getBackupMinimumEnforcedRetentionDuration(), getParentForChildren(), isClean()); + backupMinimumEnforcedRetentionDuration_ = null; + } + return backupMinimumEnforcedRetentionDurationBuilder_; + } + + private int backupRetentionInheritance_ = 0; + + /** + * + * + *
+     * Optional. Setting for how a backup's enforced retention end time is
+     * inherited.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the backupRetentionInheritance field is set. + */ + @java.lang.Override + public boolean hasBackupRetentionInheritance() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Setting for how a backup's enforced retention end time is
+     * inherited.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for backupRetentionInheritance. + */ + @java.lang.Override + public int getBackupRetentionInheritanceValue() { + return backupRetentionInheritance_; + } + + /** + * + * + *
+     * Optional. Setting for how a backup's enforced retention end time is
+     * inherited.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The enum numeric value on the wire for backupRetentionInheritance to set. + * @return This builder for chaining. */ - public Builder clearBackupMinimumEnforcedRetentionDuration() { - bitField0_ = (bitField0_ & ~0x00000020); - backupMinimumEnforcedRetentionDuration_ = null; - if (backupMinimumEnforcedRetentionDurationBuilder_ != null) { - backupMinimumEnforcedRetentionDurationBuilder_.dispose(); - backupMinimumEnforcedRetentionDurationBuilder_ = null; - } + public Builder setBackupRetentionInheritanceValue(int value) { + backupRetentionInheritance_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3330,70 +4603,72 @@ public Builder clearBackupMinimumEnforcedRetentionDuration() { * * *
-     * Required. The default and minimum enforced retention for each backup within
-     * the backup vault.  The enforced retention for each backup can be extended.
+     * Optional. Setting for how a backup's enforced retention end time is
+     * inherited.
      * 
* * - * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The backupRetentionInheritance. */ - public com.google.protobuf.Duration.Builder getBackupMinimumEnforcedRetentionDurationBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getBackupMinimumEnforcedRetentionDurationFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance + getBackupRetentionInheritance() { + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance result = + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.forNumber( + backupRetentionInheritance_); + return result == null + ? com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance.UNRECOGNIZED + : result; } /** * * *
-     * Required. The default and minimum enforced retention for each backup within
-     * the backup vault.  The enforced retention for each backup can be extended.
+     * Optional. Setting for how a backup's enforced retention end time is
+     * inherited.
      * 
* * - * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The backupRetentionInheritance to set. + * @return This builder for chaining. */ - public com.google.protobuf.DurationOrBuilder - getBackupMinimumEnforcedRetentionDurationOrBuilder() { - if (backupMinimumEnforcedRetentionDurationBuilder_ != null) { - return backupMinimumEnforcedRetentionDurationBuilder_.getMessageOrBuilder(); - } else { - return backupMinimumEnforcedRetentionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : backupMinimumEnforcedRetentionDuration_; + public Builder setBackupRetentionInheritance( + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000040; + backupRetentionInheritance_ = value.getNumber(); + onChanged(); + return this; } /** * * *
-     * Required. The default and minimum enforced retention for each backup within
-     * the backup vault.  The enforced retention for each backup can be extended.
+     * Optional. Setting for how a backup's enforced retention end time is
+     * inherited.
      * 
* * - * optional .google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(.google.api.field_behavior) = REQUIRED]; + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getBackupMinimumEnforcedRetentionDurationFieldBuilder() { - if (backupMinimumEnforcedRetentionDurationBuilder_ == null) { - backupMinimumEnforcedRetentionDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getBackupMinimumEnforcedRetentionDuration(), getParentForChildren(), isClean()); - backupMinimumEnforcedRetentionDuration_ = null; - } - return backupMinimumEnforcedRetentionDurationBuilder_; + public Builder clearBackupRetentionInheritance() { + bitField0_ = (bitField0_ & ~0x00000040); + backupRetentionInheritance_ = 0; + onChanged(); + return this; } private boolean deletable_; @@ -3412,7 +4687,7 @@ public com.google.protobuf.Duration.Builder getBackupMinimumEnforcedRetentionDur */ @java.lang.Override public boolean hasDeletable() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -3448,7 +4723,7 @@ public boolean getDeletable() { public Builder setDeletable(boolean value) { deletable_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3466,7 +4741,7 @@ public Builder setDeletable(boolean value) { * @return This builder for chaining. */ public Builder clearDeletable() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); deletable_ = false; onChanged(); return this; @@ -3487,7 +4762,7 @@ public Builder clearDeletable() { * @return Whether the etag field is set. */ public boolean hasEtag() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -3556,7 +4831,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3575,7 +4850,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -3599,7 +4874,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -3640,7 +4915,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3683,7 +4958,7 @@ public Builder setState(com.google.cloud.backupdr.v1.BackupVault.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; state_ = value.getNumber(); onChanged(); return this; @@ -3703,7 +4978,7 @@ public Builder setState(com.google.cloud.backupdr.v1.BackupVault.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); state_ = 0; onChanged(); return this; @@ -3730,7 +5005,7 @@ public Builder clearState() { * @return Whether the effectiveTime field is set. */ public boolean hasEffectiveTime() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -3776,7 +5051,7 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp value) { } else { effectiveTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3798,7 +5073,7 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor } else { effectiveTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3816,7 +5091,7 @@ public Builder setEffectiveTime(com.google.protobuf.Timestamp.Builder builderFor */ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { if (effectiveTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && effectiveTime_ != null && effectiveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEffectiveTimeBuilder().mergeFrom(value); @@ -3827,7 +5102,7 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { effectiveTimeBuilder_.mergeFrom(value); } if (effectiveTime_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3845,7 +5120,7 @@ public Builder mergeEffectiveTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEffectiveTime() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); effectiveTime_ = null; if (effectiveTimeBuilder_ != null) { effectiveTimeBuilder_.dispose(); @@ -3867,7 +5142,7 @@ public Builder clearEffectiveTime() { * */ public com.google.protobuf.Timestamp.Builder getEffectiveTimeBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getEffectiveTimeFieldBuilder().getBuilder(); } @@ -3954,7 +5229,7 @@ public long getBackupCount() { public Builder setBackupCount(long value) { backupCount_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3971,7 +5246,7 @@ public Builder setBackupCount(long value) { * @return This builder for chaining. */ public Builder clearBackupCount() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); backupCount_ = 0L; onChanged(); return this; @@ -4048,7 +5323,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4068,7 +5343,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -4093,7 +5368,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4131,7 +5406,7 @@ public long getTotalStoredBytes() { public Builder setTotalStoredBytes(long value) { totalStoredBytes_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4148,7 +5423,7 @@ public Builder setTotalStoredBytes(long value) { * @return This builder for chaining. */ public Builder clearTotalStoredBytes() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); totalStoredBytes_ = 0L; onChanged(); return this; @@ -4225,7 +5500,7 @@ public Builder setUid(java.lang.String value) { throw new NullPointerException(); } uid_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4245,7 +5520,7 @@ public Builder setUid(java.lang.String value) { */ public Builder clearUid() { uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4270,7 +5545,7 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); uid_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4295,7 +5570,7 @@ public Builder setUidBytes(com.google.protobuf.ByteString value) { if (!annotations_.isMutable()) { annotations_ = annotations_.copy(); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return annotations_; } @@ -4393,7 +5668,7 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { } public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -4420,7 +5695,7 @@ public Builder removeAnnotations(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return internalGetMutableAnnotations().getMutableMap(); } @@ -4443,7 +5718,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return this; } @@ -4460,7 +5735,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { */ public Builder putAllAnnotations(java.util.Map values) { internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; return this; } @@ -4508,7 +5783,7 @@ public int getAccessRestrictionValue() { */ public Builder setAccessRestrictionValue(int value) { accessRestriction_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4562,7 +5837,7 @@ public Builder setAccessRestriction( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; accessRestriction_ = value.getNumber(); onChanged(); return this; @@ -4586,12 +5861,230 @@ public Builder setAccessRestriction( * @return This builder for chaining. */ public Builder clearAccessRestriction() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); accessRestriction_ = 0; onChanged(); return this; } + private com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryptionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig, + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder, + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder> + encryptionConfigBuilder_; + + /** + * + * + *
+     * Optional. The encryption config of the backup vault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionConfig field is set. + */ + public boolean hasEncryptionConfig() { + return ((bitField0_ & 0x00020000) != 0); + } + + /** + * + * + *
+     * Optional. The encryption config of the backup vault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionConfig. + */ + public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getEncryptionConfig() { + if (encryptionConfigBuilder_ == null) { + return encryptionConfig_ == null + ? com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } else { + return encryptionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The encryption config of the backup vault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionConfig( + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig value) { + if (encryptionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionConfig_ = value; + } else { + encryptionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The encryption config of the backup vault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionConfig( + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder builderForValue) { + if (encryptionConfigBuilder_ == null) { + encryptionConfig_ = builderForValue.build(); + } else { + encryptionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The encryption config of the backup vault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryptionConfig( + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig value) { + if (encryptionConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && encryptionConfig_ != null + && encryptionConfig_ + != com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance()) { + getEncryptionConfigBuilder().mergeFrom(value); + } else { + encryptionConfig_ = value; + } + } else { + encryptionConfigBuilder_.mergeFrom(value); + } + if (encryptionConfig_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The encryption config of the backup vault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryptionConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + encryptionConfig_ = null; + if (encryptionConfigBuilder_ != null) { + encryptionConfigBuilder_.dispose(); + encryptionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The encryption config of the backup vault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder + getEncryptionConfigBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getEncryptionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The encryption config of the backup vault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder + getEncryptionConfigOrBuilder() { + if (encryptionConfigBuilder_ != null) { + return encryptionConfigBuilder_.getMessageOrBuilder(); + } else { + return encryptionConfig_ == null + ? com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.getDefaultInstance() + : encryptionConfig_; + } + } + + /** + * + * + *
+     * Optional. The encryption config of the backup vault.
+     * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig, + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder, + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder> + getEncryptionConfigFieldBuilder() { + if (encryptionConfigBuilder_ == null) { + encryptionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig, + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig.Builder, + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder>( + getEncryptionConfig(), getParentForChildren(), isClean()); + encryptionConfig_ = null; + } + return encryptionConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java index 97b62eba0253..5be3d3d416da 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultOrBuilder.java @@ -304,6 +304,55 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.DurationOrBuilder getBackupMinimumEnforcedRetentionDurationOrBuilder(); + /** + * + * + *
+   * Optional. Setting for how a backup's enforced retention end time is
+   * inherited.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the backupRetentionInheritance field is set. + */ + boolean hasBackupRetentionInheritance(); + + /** + * + * + *
+   * Optional. Setting for how a backup's enforced retention end time is
+   * inherited.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for backupRetentionInheritance. + */ + int getBackupRetentionInheritanceValue(); + + /** + * + * + *
+   * Optional. Setting for how a backup's enforced retention end time is
+   * inherited.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance backup_retention_inheritance = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The backupRetentionInheritance. + */ + com.google.cloud.backupdr.v1.BackupVault.BackupRetentionInheritance + getBackupRetentionInheritance(); + /** * * @@ -643,4 +692,47 @@ java.lang.String getAnnotationsOrDefault( * @return The accessRestriction. */ com.google.cloud.backupdr.v1.BackupVault.AccessRestriction getAccessRestriction(); + + /** + * + * + *
+   * Optional. The encryption config of the backup vault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionConfig field is set. + */ + boolean hasEncryptionConfig(); + + /** + * + * + *
+   * Optional. The encryption config of the backup vault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionConfig. + */ + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfig getEncryptionConfig(); + + /** + * + * + *
+   * Optional. The encryption config of the backup vault.
+   * 
+ * + * + * optional .google.cloud.backupdr.v1.BackupVault.EncryptionConfig encryption_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.backupdr.v1.BackupVault.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); } diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java index ea0a915558db..bf0d939ee80c 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/BackupVaultProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_backupdr_v1_BackupVault_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_backupdr_v1_BackupVault_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -206,7 +210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ault_cloudsql.proto\032/google/cloud/backupdr/v1/backupvault_disk.proto\032.google/clo" + "ud/backupdr/v1/backupvault_gce.proto\032\036google/protobuf/duration.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/" - + "timestamp.proto\032\027google/rpc/status.proto\"\246\013\n" + + "timestamp.proto\032\027google/rpc/status.proto\"\237\017\n" + "\013BackupVault\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\035\n" + "\013description\030\002 \001(\tB\003\340A\001H\000\210\001\001\022F\n" @@ -217,27 +221,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\002\210\001\001\022W\n" + "*backup_minimum_enforced_retention_duration\030\024" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\002H\003\210\001\001\022\033\n" - + "\tdeletable\030\010 \001(\010B\003\340A\003H\004\210\001\001\022\026\n" - + "\004etag\030\t \001(\tB\003\340A\001H\005\210\001\001\022?\n" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\002H\003\210\001\001\022p\n" + + "\034backup_retention_inheritance\030\033 \001(\0162@.google.clou" + + "d.backupdr.v1.BackupVault.BackupRetentionInheritanceB\003\340A\001H\004\210\001\001\022\033\n" + + "\tdeletable\030\010 \001(\010B\003\340A\003H\005\210\001\001\022\026\n" + + "\004etag\030\t \001(\tB\003\340A\001H\006\210\001\001\022?\n" + "\005state\030\n" + " \001(\0162+.google.cloud.backupdr.v1.BackupVault.StateB\003\340A\003\022<\n" + "\016effective_time\030\014" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006\210\001\001\022\031\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\007\210\001\001\022\031\n" + "\014backup_count\030\021 \001(\003B\003\340A\003\022\034\n" + "\017service_account\030\022 \001(\tB\003\340A\003\022\037\n" + "\022total_stored_bytes\030\023 \001(\003B\003\340A\003\022\030\n" + "\003uid\030\025 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022P\n" - + "\013annotations\030\026 \003(\01326.google.cloud" - + ".backupdr.v1.BackupVault.AnnotationsEntryB\003\340A\001\022X\n" - + "\022access_restriction\030\030 \001(\01627.goo" - + "gle.cloud.backupdr.v1.BackupVault.AccessRestrictionB\003\340A\001\032-\n" + + "\013annotations\030\026 \003(\01326.google.cloud.backu" + + "pdr.v1.BackupVault.AnnotationsEntryB\003\340A\001\022X\n" + + "\022access_restriction\030\030 \001(\01627.google.cl" + + "oud.backupdr.v1.BackupVault.AccessRestrictionB\003\340A\001\022[\n" + + "\021encryption_config\030\035 \001(\01326." + + "google.cloud.backupdr.v1.BackupVault.EncryptionConfigB\003\340A\001H\010\210\001\001\032i\n" + + "\020EncryptionConfig\022D\n" + + "\014kms_key_name\030\001 \001(\tB)\340A\001\372A#\n" + + "!cloudkms.googleapis.com/CryptoKeyH\000\210\001\001B\017\n\r" + + "_kms_key_name\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"_\n" + + "\005value\030\002 \001(\t:\0028\001\"\205\001\n" + + "\032BackupRetentionInheritance\022,\n" + + "(BACKUP_RETENTION_INHERITANCE_UNSPECIFIED\020\000\022\033\n" + + "\027INHERIT_VAULT_RETENTION\020\001\022\034\n" + + "\030MATCH_BACKUP_EXPIRE_TIME\020\002\"_\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" + "\010CREATING\020\001\022\n\n" @@ -251,49 +268,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023WITHIN_ORGANIZATION\020\002\022\020\n" + "\014UNRESTRICTED\020\003\022&\n" + "\"WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA\020\004:\210\001\352A\204\001\n" - + "#backupdr.googleapis.com/BackupVault\022Bprojects/{project}/lo" - + "cations/{location}/backupVaults/{backupvault}*\014backupVaults2\013backupVaultB\016\n" + + "#backupdr.googleapis.com/BackupVault\022Bprojects/{p" + + "roject}/locations/{location}/backupVault" + + "s/{backupvault}*\014backupVaults2\013backupVaultB\016\n" + "\014_descriptionB\016\n" + "\014_create_timeB\016\n" + "\014_update_timeB-\n" - + "+_backup_minimum_enforced_retention_durationB\014\n\n" + + "+_backup_minimum_enforced_retention_durationB\037\n" + + "\035_backup_retention_inheritanceB\014\n\n" + "_deletableB\007\n" + "\005_etagB\021\n" - + "\017_effective_time\"\214\t\n\n" + + "\017_effective_timeB\024\n" + + "\022_encryption_config\"\214\t\n\n" + "DataSource\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022>\n" + "\005state\030\025" + " \001(\0162*.google.cloud.backupdr.v1.DataSource.StateB\003\340A\003\022E\n" - + "\006labels\030\004" - + " \003(\01320.google.cloud.backupdr.v1.DataSource.LabelsEntryB\003\340A\001\0229\n" - + "\013create_time\030\005 \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\0229\n" + + "\006labels\030\004 \003(\01320.google" + + ".cloud.backupdr.v1.DataSource.LabelsEntryB\003\340A\001\0229\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\001\210\001\001\0229\n" + "\013update_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\002\210\001\001\022\031\n" + "\014backup_count\030\007 \001(\003H\003\210\001\001\022\021\n" + "\004etag\030\016 \001(\tH\004\210\001\001\022\037\n" + "\022total_stored_bytes\030\027 \001(\003H\005\210\001\001\022F\n" - + "\014config_state\030\030 \001(\016" - + "2+.google.cloud.backupdr.v1.BackupConfigStateB\003\340A\003\022K\n" - + "\022backup_config_info\030\031 \001(\0132*" - + ".google.cloud.backupdr.v1.BackupConfigInfoB\003\340A\003\022S\n" - + "\030data_source_gcp_resource\030\032 \001(" - + "\0132/.google.cloud.backupdr.v1.DataSourceGcpResourceH\000\022r\n" - + "(data_source_backup_appliance_application\030\033 \001(\0132>.google.cloud.ba" - + "ckupdr.v1.DataSourceBackupApplianceApplicationH\000\0227\n" + + "\014config_state\030\030" + + " \001(\0162+.google.cloud.backupdr.v1.BackupConfigStateB\003\340A\003\022K\n" + + "\022backup_config_info\030\031" + + " \001(\0132*.google.cloud.backupdr.v1.BackupConfigInfoB\003\340A\003\022S\n" + + "\030data_source_gcp_resource\030\032" + + " \001(\0132/.google.cloud.backupdr.v1.DataSourceGcpResourceH\000\022r\n" + + "(data_source_backup_appliance_application\030\033" + + " \001(\0132>.google.cloud.backupdr.v1.DataSourceBackupApplianceApplicationH\000\0227\n" + "*backup_blocked_by_vault_access_restriction\030\034 \001(\010B\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"Q\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" - + "\010CREATING\020\001\022\n" - + "\n" + + "\010CREATING\020\001\022\n\n" + "\006ACTIVE\020\002\022\014\n" + "\010DELETING\020\003\022\t\n" + "\005ERROR\020\004:\236\001\352A\232\001\n" - + "\"backupdr.googleapis.com/DataSource\022[projects/{project}/locations/{location}/" - + "backupVaults/{backupvault}/dataSources/{datasource}*\013dataSources2\n" + + "\"backupdr.googleapis.com/DataSource\022[projects/{proje" + + "ct}/locations/{location}/backupVaults/{b" + + "ackupvault}/dataSources/{datasource}*\013dataSources2\n" + "dataSourceB\021\n" + "\017source_resourceB\016\n" + "\014_create_timeB\016\n" @@ -302,15 +323,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005_etagB\025\n" + "\023_total_stored_bytes\"\261\004\n" + "\020BackupConfigInfo\022Z\n" - + "\021last_backup_state\030\001 \001(\0162:.google.cloud." - + "backupdr.v1.BackupConfigInfo.LastBackupStateB\003\340A\003\022P\n" + + "\021last_backup_state\030\001" + + " \001(\0162:.google.cloud.backupdr.v1.BackupConfigInfo.LastBackupStateB\003\340A\003\022P\n" + "\'last_successful_backup_consistency_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0222\n" + "\021last_backup_error\030\003 \001(\0132\022.google.rpc.StatusB\003\340A\003\022F\n" - + "\021gcp_backup_config\030\004" - + " \001(\0132).google.cloud.backupdr.v1.GcpBackupConfigH\000\022_\n" - + "\036backup_appliance_backup_config\030\005" - + " \001(\01325.google.cloud.backupdr.v1.BackupApplianceBackupConfigH\000\"\200\001\n" + + "\021gcp_backup_config\030\004 \001(\0132).go" + + "ogle.cloud.backupdr.v1.GcpBackupConfigH\000\022_\n" + + "\036backup_appliance_backup_config\030\005 \001(\013" + + "25.google.cloud.backupdr.v1.BackupApplianceBackupConfigH\000\"\200\001\n" + "\017LastBackupState\022!\n" + "\035LAST_BACKUP_STATE_UNSPECIFIED\020\000\022\030\n" + "\024FIRST_BACKUP_PENDING\020\001\022\r\n" @@ -339,10 +360,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020gcp_resourcename\030\001 \001(\tB\003\340A\003\022\020\n" + "\010location\030\002 \001(\t\022\014\n" + "\004type\030\003 \001(\t\022o\n" - + "&compute_instance_datasource_properties\030\004 \001(" - + "\0132=.google.cloud.backupdr.v1.ComputeInstanceDataSourcePropertiesH\000\022w\n" - + "(cloud_sql_instance_datasource_properties\030\005 \001(\0132>.g" - + "oogle.cloud.backupdr.v1.CloudSqlInstanceDataSourcePropertiesB\003\340A\003H\000\022X\n" + + "&compute_instance_datasource_properties\030\004 \001(\0132=.google.clou" + + "d.backupdr.v1.ComputeInstanceDataSourcePropertiesH\000\022w\n" + + "(cloud_sql_instance_datasource_properties\030\005 \001(\0132>.google.cloud.bac" + + "kupdr.v1.CloudSqlInstanceDataSourcePropertiesB\003\340A\003H\000\022X\n" + "\032disk_datasource_properties\030\007" + " \001(\01322.google.cloud.backupdr.v1.DiskDataSourcePropertiesH\000B\031\n" + "\027gcp_resource_properties\"\271\001\n" @@ -367,51 +388,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "BackupLock\0228\n" + "\017lock_until_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022W\n" - + "\032backup_appliance_lock_info\030\003" - + " \001(\01321.google.cloud.backupdr.v1.BackupApplianceLockInfoH\000\022K\n" - + "\021service_lock_info\030\004" - + " \001(\0132).google.cloud.backupdr.v1.ServiceLockInfoB\003\340A\003H\000B\020\n" - + "\016ClientLockInfo\"\274\021\n" + + "\032backup_appliance_lock_info\030\003 \001(\01321.google." + + "cloud.backupdr.v1.BackupApplianceLockInfoH\000\022K\n" + + "\021service_lock_info\030\004 \001(\0132).google." + + "cloud.backupdr.v1.ServiceLockInfoB\003\340A\003H\000B\020\n" + + "\016ClientLockInfo\"\233\023\n" + "\006Backup\022\024\n" + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022\035\n" + "\013description\030\002 \001(\tB\003\340A\003H\003\210\001\001\0229\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\004\210\001\001\0229\n" - + "\013update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\005\210\001\001\022A\n" - + "\006labels\030\005 \003(\0132,.google" - + ".cloud.backupdr.v1.Backup.LabelsEntryB\003\340A\001\022I\n" + + "\013update_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\005\210\001\001\022A\n" + + "\006labels\030\005" + + " \003(\0132,.google.cloud.backupdr.v1.Backup.LabelsEntryB\003\340A\001\022I\n" + "\033enforced_retention_end_time\030\006" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006\210\001\001\0229\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\006\210\001\001\022p\n" + + "\034backup_retention_inheritance\030\036 \001(\0162@.google.cloud.back" + + "updr.v1.BackupVault.BackupRetentionInheritanceB\003\340A\003H\007\210\001\001\0229\n" + "\013expire_time\030\007" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\007\210\001\001\022>\n" - + "\020consistency_time\030\t \001" - + "(\0132\032.google.protobuf.TimestampB\003\340A\003H\010\210\001\001\022\026\n" - + "\004etag\030\013 \001(\tB\003\340A\001H\t\210\001\001\022:\n" - + "\005state\030\017 \001(\0162" - + "&.google.cloud.backupdr.v1.Backup.StateB\003\340A\003\022@\n\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001H\010\210\001\001\022>\n" + + "\020consistency_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003H" + + "\t\210\001\001\022\026\n" + + "\004etag\030\013 \001(\tB\003\340A\001H\n" + + "\210\001\001\022:\n" + + "\005state\030\017" + + " \001(\0162&.google.cloud.backupdr.v1.Backup.StateB\003\340A\003\022@\n\r" + "service_locks\030\021" + " \003(\0132$.google.cloud.backupdr.v1.BackupLockB\003\340A\003\022I\n" - + "\026backup_appliance_locks\030\022" - + " \003(\0132$.google.cloud.backupdr.v1.BackupLockB\003\340A\001\022l\n" - + "\"compute_instance_backup_properties\030\023 \001(\01329.google.c" - + "loud.backupdr.v1.ComputeInstanceBackupPropertiesB\003\340A\003H\000\022o\n" - + "$cloud_sql_instance_backup_properties\030\032 \001(\0132:.google.cloud.bac" - + "kupdr.v1.CloudSqlInstanceBackupPropertiesB\003\340A\003H\000\022l\n" - + "\"backup_appliance_backup_properties\030\025 \001(\01329.google.cloud.backupdr.v1." - + "BackupApplianceBackupPropertiesB\003\340A\003H\000\022U\n" - + "\026disk_backup_properties\030\034 \001(\0132..google." - + "cloud.backupdr.v1.DiskBackupPropertiesB\003\340A\003H\000\022E\n" + + "\026backup_appliance_locks\030\022 \003(" + + "\0132$.google.cloud.backupdr.v1.BackupLockB\003\340A\001\022l\n" + + "\"compute_instance_backup_properties\030\023" + + " \001(\01329.google.cloud.backupdr.v1.ComputeInstanceBackupPropertiesB\003\340A\003H\000\022o\n" + + "$cloud_sql_instance_backup_properties\030\032 \001(\013" + + "2:.google.cloud.backupdr.v1.CloudSqlInstanceBackupPropertiesB\003\340A\003H\000\022l\n" + + "\"backup_appliance_backup_properties\030\025 \001(\01329.google" + + ".cloud.backupdr.v1.BackupApplianceBackupPropertiesB\003\340A\003H\000\022U\n" + + "\026disk_backup_properties\030\034" + + " \001(\0132..google.cloud.backupdr.v1.DiskBackupPropertiesB\003\340A\003H\000\022E\n" + "\013backup_type\030\024" + " \001(\0162+.google.cloud.backupdr.v1.Backup.BackupTypeB\003\340A\003\022W\n" - + "\024gcp_backup_plan_info\030\026 \001(\01322.google.clou" - + "d.backupdr.v1.Backup.GCPBackupPlanInfoB\003\340A\003H\001\022 \n" + + "\024gcp_backup_plan_info\030\026" + + " \001(\01322.google.cloud.backupdr.v1.Backup.GCPBackupPlanInfoB\003\340A\003H\001\022" + + " \n" + "\023resource_size_bytes\030\027 \001(\003B\003\340A\003\022\"\n\r" - + "satisfies_pzs\030\030 \001(\010B\006\340A\003\340A\001H\n" - + "\210\001\001\022\"\n\r" - + "satisfies_pzi\030\031 \001(\010B\006\340A\003\340A\001H\013\210\001\001\022H\n" - + "\014gcp_resource\030\037" - + " \001(\0132+.google.cloud.backupdr.v1.BackupGcpResourceB\003\340A\003H\002\032\262\001\n" + + "satisfies_pzs\030\030 \001(\010B\006\340A\003\340A\001H\013\210\001\001\022\"\n\r" + + "satisfies_pzi\030\031 \001(\010B\006\340A\003\340A\001H\014\210\001\001\022H\n" + + "\014gcp_resource\030\037 \001(\0132+.googl" + + "e.cloud.backupdr.v1.BackupGcpResourceB\003\340A\003H\002\022J\n" + + "\020kms_key_versions\030! \003(\tB0\340A\003\372A*\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\032\262\001\n" + "\021GCPBackupPlanInfo\022<\n" + "\013backup_plan\030\001 \001(\tB\'\372A$\n" + "\"backupdr.googleapis.com/BackupPlan\022\033\n" @@ -433,24 +459,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tSCHEDULED\020\001\022\r\n" + "\tON_DEMAND\020\002\022\031\n" + "\025ON_DEMAND_OPERATIONAL\020\003:\243\001\352A\237\001\n" - + "\036backupdr.googleapis.com/Backup\022lprojects/{project}/locations" - + "/{location}/backupVaults/{backupvault}/d" - + "ataSources/{datasource}/backups/{backup}*\007backups2\006backupB\023\n" + + "\036backupdr.googleapis.com/Backup\022lprojects/{pro" + + "ject}/locations/{location}/backupVaults/" + + "{backupvault}/dataSources/{datasource}/backups/{backup}*\007backups2\006backupB\023\n" + "\021backup_propertiesB\013\n" + "\tplan_infoB\021\n" + "\017source_resourceB\016\n" + "\014_descriptionB\016\n" + "\014_create_timeB\016\n" + "\014_update_timeB\036\n" - + "\034_enforced_retention_end_timeB\016\n" + + "\034_enforced_retention_end_timeB\037\n" + + "\035_backup_retention_inheritanceB\016\n" + "\014_expire_timeB\023\n" + "\021_consistency_timeB\007\n" + "\005_etagB\020\n" + "\016_satisfies_pzsB\020\n" + "\016_satisfies_pzi\"\364\001\n" + "\030CreateBackupVaultRequest\022;\n" - + "\006parent\030\001 \001(\tB+\340" - + "A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\034\n" + + "\006parent\030\001 \001(" + + "\tB+\340A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\034\n" + "\017backup_vault_id\030\002 \001(\tB\003\340A\002\022@\n" + "\014backup_vault\030\003" + " \001(\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n\n" @@ -463,15 +490,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\022<\n" - + "\004view\030\006 \001(\0162).go" - + "ogle.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\206\001\n" + + "\004view\030\006 " + + "\001(\0162).google.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\206\001\n" + "\030ListBackupVaultsResponse\022<\n\r" + "backup_vaults\030\001 \003(\0132%.google.cloud.backupdr.v1.BackupVault\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"\272\001\n" + "\036FetchUsableBackupVaultsRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\026\n" + + "\006parent\030\001 \001(\tB" + + "+\340A\002\372A%\022#backupdr.googleapis.com/BackupVault\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -495,13 +522,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025GetBackupVaultRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" + "#backupdr.googleapis.com/BackupVault\022<\n" - + "\004view\030\002 \001(\016" - + "2).google.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\221\002\n" + + "\004view\030\002" + + " \001(\0162).google.cloud.backupdr.v1.BackupVaultViewB\003\340A\001\"\221\002\n" + "\030UpdateBackupVaultRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022@\n" - + "\014backup_vault\030\002" - + " \001(\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n" - + "\n" + + "\014backup_vault\030\002 \001(" + + "\0132%.google.cloud.backupdr.v1.BackupVaultB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\r" + "validate_only\030\004 \001(\010B\003\340A\001\022\022\n" + "\005force\030\005 \001(\010B\003\340A\001\022,\n" @@ -531,8 +557,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"backupdr.googleapis.com/DataSource\"\314\001\n" + "\027UpdateDataSourceRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022>\n" - + "\013data_source\030\002 \001(\0132$" - + ".google.cloud.backupdr.v1.DataSourceB\003\340A\002\022\037\n\n" + + "\013data_source\030\002" + + " \001(\0132$.google.cloud.backupdr.v1.DataSourceB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\032\n\r" + "allow_missing\030\004 \001(\010B\003\340A\001\"\342\001\n" + "\022ListBackupsRequest\0226\n" @@ -560,23 +586,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023DeleteBackupRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036backupdr.googleapis.com/Backup\022\037\n\n" - + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\371\004\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\342\005\n" + "\024RestoreBackupRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036backupdr.googleapis.com/Backup\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022i\n" - + "#compute_instance_target_environment\030\003 \001(\0132:.google.cloud.backupdr" - + ".v1.ComputeInstanceTargetEnvironmentH\000\022R\n" - + "\027disk_target_environment\030\005 \001(\0132/.google" - + ".cloud.backupdr.v1.DiskTargetEnvironmentH\000\022_\n" - + "\036region_disk_target_environment\030\006 \001" - + "(\01325.google.cloud.backupdr.v1.RegionDiskTargetEnvironmentH\000\022i\n" - + "#compute_instance_restore_properties\030\004 \001(\0132:.google.cloud." - + "backupdr.v1.ComputeInstanceRestorePropertiesH\001\022R\n" - + "\027disk_restore_properties\030\007 \001(\0132" - + "/.google.cloud.backupdr.v1.DiskRestorePropertiesH\001B\024\n" + + "#compute_instance_target_environment\030\003 \001(\0132:.google.cloud." + + "backupdr.v1.ComputeInstanceTargetEnvironmentH\000\022R\n" + + "\027disk_target_environment\030\005 \001(\0132" + + "/.google.cloud.backupdr.v1.DiskTargetEnvironmentH\000\022_\n" + + "\036region_disk_target_environment\030\006" + + " \001(\01325.google.cloud.backupdr.v1.RegionDiskTargetEnvironmentH\000\022i\n" + + "#compute_instance_restore_properties\030\004 \001(\0132:.googl" + + "e.cloud.backupdr.v1.ComputeInstanceRestorePropertiesH\001\022R\n" + + "\027disk_restore_properties\030\007" + + " \001(\0132/.google.cloud.backupdr.v1.DiskRestorePropertiesH\001\022H\n" + + "\032clear_overrides_field_mask\030\010" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001H\002\210\001\001B\024\n" + "\022target_environmentB\025\n" - + "\023instance_properties\"Z\n" + + "\023instance_propertiesB\035\n" + + "\033_clear_overrides_field_mask\"Z\n" + "\025RestoreBackupResponse\022A\n" + "\017target_resource\030\001 \001(\0132(.google.cloud.backupdr.v1.TargetResource\"g\n" + "\016TargetResource\022=\n" @@ -601,11 +630,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017BackupVaultView\022!\n" + "\035BACKUP_VAULT_VIEW_UNSPECIFIED\020\000\022\033\n" + "\027BACKUP_VAULT_VIEW_BASIC\020\001\022\032\n" - + "\026BACKUP_VAULT_VIEW_FULL\020\002B\300\001\n" - + "\034com.google.cloud.backupdr.v1B\020BackupVaultProtoP\001Z8cloud.google.com/go" - + "/backupdr/apiv1/backupdrpb;backupdrpb\252\002\030" - + "Google.Cloud.BackupDR.V1\312\002\030Google\\Cloud\\" - + "BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1b\006proto3" + + "\026BACKUP_VAULT_VIEW_FULL\020\002B\332\003\n" + + "\034com.google.cloud.backupdr.v1B\020BackupVaultProtoP\001Z8cloud.google.com/go/backup" + + "dr/apiv1/backupdrpb;backupdrpb\252\002\030Google." + + "Cloud.BackupDR.V1\312\002\030Google\\Cloud\\BackupDR\\V1\352\002\033Google::Cloud::BackupDR::V1\352Am\n" + + "!cloudkms.googleapis.com/CryptoKey\022Hprojec" + + "ts/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojec" + + "ts/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cr" + + "yptoKeyVersions/{crypto_key_version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -635,6 +668,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "BackupMinimumEnforcedRetentionDuration", + "BackupRetentionInheritance", "Deletable", "Etag", "State", @@ -645,9 +679,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uid", "Annotations", "AccessRestriction", + "EncryptionConfig", }); - internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_descriptor = + internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor = internal_static_google_cloud_backupdr_v1_BackupVault_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_backupdr_v1_BackupVault_EncryptionConfig_descriptor, + new java.lang.String[] { + "KmsKeyName", + }); + internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_descriptor = + internal_static_google_cloud_backupdr_v1_BackupVault_descriptor.getNestedTypes().get(1); internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_BackupVault_LabelsEntry_descriptor, @@ -655,7 +698,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_backupdr_v1_BackupVault_AnnotationsEntry_descriptor = - internal_static_google_cloud_backupdr_v1_BackupVault_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_backupdr_v1_BackupVault_descriptor.getNestedTypes().get(2); internal_static_google_cloud_backupdr_v1_BackupVault_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_backupdr_v1_BackupVault_AnnotationsEntry_descriptor, @@ -801,6 +844,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Labels", "EnforcedRetentionEndTime", + "BackupRetentionInheritance", "ExpireTime", "ConsistencyTime", "Etag", @@ -817,6 +861,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SatisfiesPzs", "SatisfiesPzi", "GcpResource", + "KmsKeyVersions", "BackupProperties", "PlanInfo", "SourceResource", @@ -1013,6 +1058,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RegionDiskTargetEnvironment", "ComputeInstanceRestoreProperties", "DiskRestoreProperties", + "ClearOverridesFieldMask", "TargetEnvironment", "InstanceProperties", }); @@ -1053,6 +1099,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.FieldInfoProto.fieldInfo); registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequest.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequest.java index 54cc454162fd..f24d5488de30 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequest.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequest.java @@ -65,6 +65,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.backupdr.v1.RestoreBackupRequest.Builder.class); } + private int bitField0_; private int targetEnvironmentCase_ = 0; @SuppressWarnings("serial") @@ -600,6 +601,98 @@ public com.google.cloud.backupdr.v1.DiskRestoreProperties getDiskRestoreProperti return com.google.cloud.backupdr.v1.DiskRestoreProperties.getDefaultInstance(); } + public static final int CLEAR_OVERRIDES_FIELD_MASK_FIELD_NUMBER = 8; + private com.google.protobuf.FieldMask clearOverridesFieldMask_; + + /** + * + * + *
+   * Optional. A field mask used to clear server-side default values
+   * for fields within the `instance_properties` oneof.
+   *
+   * When a field in this mask is cleared, the server will not apply its
+   * default logic (like inheriting a value from the source) for that field.
+   *
+   * The most common current use case is clearing default encryption keys.
+   *
+   * Examples of field mask paths:
+   * - Compute Instance Disks:
+   * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+   * - Single Disk: `disk_restore_properties.disk_encryption_key`
+   * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clearOverridesFieldMask field is set. + */ + @java.lang.Override + public boolean hasClearOverridesFieldMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. A field mask used to clear server-side default values
+   * for fields within the `instance_properties` oneof.
+   *
+   * When a field in this mask is cleared, the server will not apply its
+   * default logic (like inheriting a value from the source) for that field.
+   *
+   * The most common current use case is clearing default encryption keys.
+   *
+   * Examples of field mask paths:
+   * - Compute Instance Disks:
+   * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+   * - Single Disk: `disk_restore_properties.disk_encryption_key`
+   * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clearOverridesFieldMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getClearOverridesFieldMask() { + return clearOverridesFieldMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : clearOverridesFieldMask_; + } + + /** + * + * + *
+   * Optional. A field mask used to clear server-side default values
+   * for fields within the `instance_properties` oneof.
+   *
+   * When a field in this mask is cleared, the server will not apply its
+   * default logic (like inheriting a value from the source) for that field.
+   *
+   * The most common current use case is clearing default encryption keys.
+   *
+   * Examples of field mask paths:
+   * - Compute Instance Disks:
+   * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+   * - Single Disk: `disk_restore_properties.disk_encryption_key`
+   * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getClearOverridesFieldMaskOrBuilder() { + return clearOverridesFieldMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : clearOverridesFieldMask_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -640,6 +733,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 7, (com.google.cloud.backupdr.v1.DiskRestoreProperties) instanceProperties_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getClearOverridesFieldMask()); + } getUnknownFields().writeTo(output); } @@ -682,6 +778,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.cloud.backupdr.v1.DiskRestoreProperties) instanceProperties_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getClearOverridesFieldMask()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -700,6 +800,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getRequestId().equals(other.getRequestId())) return false; + if (hasClearOverridesFieldMask() != other.hasClearOverridesFieldMask()) return false; + if (hasClearOverridesFieldMask()) { + if (!getClearOverridesFieldMask().equals(other.getClearOverridesFieldMask())) return false; + } if (!getTargetEnvironmentCase().equals(other.getTargetEnvironmentCase())) return false; switch (targetEnvironmentCase_) { case 3: @@ -743,6 +847,10 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); + if (hasClearOverridesFieldMask()) { + hash = (37 * hash) + CLEAR_OVERRIDES_FIELD_MASK_FIELD_NUMBER; + hash = (53 * hash) + getClearOverridesFieldMask().hashCode(); + } switch (targetEnvironmentCase_) { case 3: hash = (37 * hash) + COMPUTE_INSTANCE_TARGET_ENVIRONMENT_FIELD_NUMBER; @@ -901,10 +1009,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.backupdr.v1.RestoreBackupRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClearOverridesFieldMaskFieldBuilder(); + } } @java.lang.Override @@ -928,6 +1045,11 @@ public Builder clear() { if (diskRestorePropertiesBuilder_ != null) { diskRestorePropertiesBuilder_.clear(); } + clearOverridesFieldMask_ = null; + if (clearOverridesFieldMaskBuilder_ != null) { + clearOverridesFieldMaskBuilder_.dispose(); + clearOverridesFieldMaskBuilder_ = null; + } targetEnvironmentCase_ = 0; targetEnvironment_ = null; instancePropertiesCase_ = 0; @@ -975,6 +1097,15 @@ private void buildPartial0(com.google.cloud.backupdr.v1.RestoreBackupRequest res if (((from_bitField0_ & 0x00000002) != 0)) { result.requestId_ = requestId_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.clearOverridesFieldMask_ = + clearOverridesFieldMaskBuilder_ == null + ? clearOverridesFieldMask_ + : clearOverridesFieldMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.backupdr.v1.RestoreBackupRequest result) { @@ -1055,6 +1186,9 @@ public Builder mergeFrom(com.google.cloud.backupdr.v1.RestoreBackupRequest other bitField0_ |= 0x00000002; onChanged(); } + if (other.hasClearOverridesFieldMask()) { + mergeClearOverridesFieldMask(other.getClearOverridesFieldMask()); + } switch (other.getTargetEnvironmentCase()) { case COMPUTE_INSTANCE_TARGET_ENVIRONMENT: { @@ -1167,6 +1301,13 @@ public Builder mergeFrom( instancePropertiesCase_ = 7; break; } // case 58 + case 66: + { + input.readMessage( + getClearOverridesFieldMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2704,6 +2845,318 @@ public Builder clearDiskRestoreProperties() { return diskRestorePropertiesBuilder_; } + private com.google.protobuf.FieldMask clearOverridesFieldMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + clearOverridesFieldMaskBuilder_; + + /** + * + * + *
+     * Optional. A field mask used to clear server-side default values
+     * for fields within the `instance_properties` oneof.
+     *
+     * When a field in this mask is cleared, the server will not apply its
+     * default logic (like inheriting a value from the source) for that field.
+     *
+     * The most common current use case is clearing default encryption keys.
+     *
+     * Examples of field mask paths:
+     * - Compute Instance Disks:
+     * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+     * - Single Disk: `disk_restore_properties.disk_encryption_key`
+     * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clearOverridesFieldMask field is set. + */ + public boolean hasClearOverridesFieldMask() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. A field mask used to clear server-side default values
+     * for fields within the `instance_properties` oneof.
+     *
+     * When a field in this mask is cleared, the server will not apply its
+     * default logic (like inheriting a value from the source) for that field.
+     *
+     * The most common current use case is clearing default encryption keys.
+     *
+     * Examples of field mask paths:
+     * - Compute Instance Disks:
+     * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+     * - Single Disk: `disk_restore_properties.disk_encryption_key`
+     * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clearOverridesFieldMask. + */ + public com.google.protobuf.FieldMask getClearOverridesFieldMask() { + if (clearOverridesFieldMaskBuilder_ == null) { + return clearOverridesFieldMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : clearOverridesFieldMask_; + } else { + return clearOverridesFieldMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. A field mask used to clear server-side default values
+     * for fields within the `instance_properties` oneof.
+     *
+     * When a field in this mask is cleared, the server will not apply its
+     * default logic (like inheriting a value from the source) for that field.
+     *
+     * The most common current use case is clearing default encryption keys.
+     *
+     * Examples of field mask paths:
+     * - Compute Instance Disks:
+     * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+     * - Single Disk: `disk_restore_properties.disk_encryption_key`
+     * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClearOverridesFieldMask(com.google.protobuf.FieldMask value) { + if (clearOverridesFieldMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clearOverridesFieldMask_ = value; + } else { + clearOverridesFieldMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A field mask used to clear server-side default values
+     * for fields within the `instance_properties` oneof.
+     *
+     * When a field in this mask is cleared, the server will not apply its
+     * default logic (like inheriting a value from the source) for that field.
+     *
+     * The most common current use case is clearing default encryption keys.
+     *
+     * Examples of field mask paths:
+     * - Compute Instance Disks:
+     * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+     * - Single Disk: `disk_restore_properties.disk_encryption_key`
+     * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setClearOverridesFieldMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (clearOverridesFieldMaskBuilder_ == null) { + clearOverridesFieldMask_ = builderForValue.build(); + } else { + clearOverridesFieldMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A field mask used to clear server-side default values
+     * for fields within the `instance_properties` oneof.
+     *
+     * When a field in this mask is cleared, the server will not apply its
+     * default logic (like inheriting a value from the source) for that field.
+     *
+     * The most common current use case is clearing default encryption keys.
+     *
+     * Examples of field mask paths:
+     * - Compute Instance Disks:
+     * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+     * - Single Disk: `disk_restore_properties.disk_encryption_key`
+     * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeClearOverridesFieldMask(com.google.protobuf.FieldMask value) { + if (clearOverridesFieldMaskBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && clearOverridesFieldMask_ != null + && clearOverridesFieldMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getClearOverridesFieldMaskBuilder().mergeFrom(value); + } else { + clearOverridesFieldMask_ = value; + } + } else { + clearOverridesFieldMaskBuilder_.mergeFrom(value); + } + if (clearOverridesFieldMask_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. A field mask used to clear server-side default values
+     * for fields within the `instance_properties` oneof.
+     *
+     * When a field in this mask is cleared, the server will not apply its
+     * default logic (like inheriting a value from the source) for that field.
+     *
+     * The most common current use case is clearing default encryption keys.
+     *
+     * Examples of field mask paths:
+     * - Compute Instance Disks:
+     * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+     * - Single Disk: `disk_restore_properties.disk_encryption_key`
+     * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearClearOverridesFieldMask() { + bitField0_ = (bitField0_ & ~0x00000080); + clearOverridesFieldMask_ = null; + if (clearOverridesFieldMaskBuilder_ != null) { + clearOverridesFieldMaskBuilder_.dispose(); + clearOverridesFieldMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A field mask used to clear server-side default values
+     * for fields within the `instance_properties` oneof.
+     *
+     * When a field in this mask is cleared, the server will not apply its
+     * default logic (like inheriting a value from the source) for that field.
+     *
+     * The most common current use case is clearing default encryption keys.
+     *
+     * Examples of field mask paths:
+     * - Compute Instance Disks:
+     * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+     * - Single Disk: `disk_restore_properties.disk_encryption_key`
+     * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getClearOverridesFieldMaskBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getClearOverridesFieldMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. A field mask used to clear server-side default values
+     * for fields within the `instance_properties` oneof.
+     *
+     * When a field in this mask is cleared, the server will not apply its
+     * default logic (like inheriting a value from the source) for that field.
+     *
+     * The most common current use case is clearing default encryption keys.
+     *
+     * Examples of field mask paths:
+     * - Compute Instance Disks:
+     * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+     * - Single Disk: `disk_restore_properties.disk_encryption_key`
+     * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getClearOverridesFieldMaskOrBuilder() { + if (clearOverridesFieldMaskBuilder_ != null) { + return clearOverridesFieldMaskBuilder_.getMessageOrBuilder(); + } else { + return clearOverridesFieldMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : clearOverridesFieldMask_; + } + } + + /** + * + * + *
+     * Optional. A field mask used to clear server-side default values
+     * for fields within the `instance_properties` oneof.
+     *
+     * When a field in this mask is cleared, the server will not apply its
+     * default logic (like inheriting a value from the source) for that field.
+     *
+     * The most common current use case is clearing default encryption keys.
+     *
+     * Examples of field mask paths:
+     * - Compute Instance Disks:
+     * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+     * - Single Disk: `disk_restore_properties.disk_encryption_key`
+     * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getClearOverridesFieldMaskFieldBuilder() { + if (clearOverridesFieldMaskBuilder_ == null) { + clearOverridesFieldMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getClearOverridesFieldMask(), getParentForChildren(), isClean()); + clearOverridesFieldMask_ = null; + } + return clearOverridesFieldMaskBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequestOrBuilder.java b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequestOrBuilder.java index 1fd38f6fb56d..da19de2bf36c 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequestOrBuilder.java +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/java/com/google/cloud/backupdr/v1/RestoreBackupRequestOrBuilder.java @@ -315,6 +315,82 @@ public interface RestoreBackupRequestOrBuilder */ com.google.cloud.backupdr.v1.DiskRestorePropertiesOrBuilder getDiskRestorePropertiesOrBuilder(); + /** + * + * + *
+   * Optional. A field mask used to clear server-side default values
+   * for fields within the `instance_properties` oneof.
+   *
+   * When a field in this mask is cleared, the server will not apply its
+   * default logic (like inheriting a value from the source) for that field.
+   *
+   * The most common current use case is clearing default encryption keys.
+   *
+   * Examples of field mask paths:
+   * - Compute Instance Disks:
+   * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+   * - Single Disk: `disk_restore_properties.disk_encryption_key`
+   * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the clearOverridesFieldMask field is set. + */ + boolean hasClearOverridesFieldMask(); + + /** + * + * + *
+   * Optional. A field mask used to clear server-side default values
+   * for fields within the `instance_properties` oneof.
+   *
+   * When a field in this mask is cleared, the server will not apply its
+   * default logic (like inheriting a value from the source) for that field.
+   *
+   * The most common current use case is clearing default encryption keys.
+   *
+   * Examples of field mask paths:
+   * - Compute Instance Disks:
+   * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+   * - Single Disk: `disk_restore_properties.disk_encryption_key`
+   * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The clearOverridesFieldMask. + */ + com.google.protobuf.FieldMask getClearOverridesFieldMask(); + + /** + * + * + *
+   * Optional. A field mask used to clear server-side default values
+   * for fields within the `instance_properties` oneof.
+   *
+   * When a field in this mask is cleared, the server will not apply its
+   * default logic (like inheriting a value from the source) for that field.
+   *
+   * The most common current use case is clearing default encryption keys.
+   *
+   * Examples of field mask paths:
+   * - Compute Instance Disks:
+   * `compute_instance_restore_properties.disks.*.disk_encryption_key`
+   * - Single Disk: `disk_restore_properties.disk_encryption_key`
+   * 
+ * + * + * optional .google.protobuf.FieldMask clear_overrides_field_mask = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getClearOverridesFieldMaskOrBuilder(); + com.google.cloud.backupdr.v1.RestoreBackupRequest.TargetEnvironmentCase getTargetEnvironmentCase(); diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto index b8d17f9913b8..8e82cbdb8783 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto +++ b/java-backupdr/proto-google-cloud-backupdr-v1/src/main/proto/google/cloud/backupdr/v1/backupvault.proto @@ -35,6 +35,14 @@ option java_outer_classname = "BackupVaultProto"; option java_package = "com.google.cloud.backupdr.v1"; option php_namespace = "Google\\Cloud\\BackupDR\\V1"; option ruby_package = "Google::Cloud::BackupDR::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key}" +}; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" +}; // Message describing a BackupVault object. message BackupVault { @@ -45,6 +53,28 @@ message BackupVault { singular: "backupVault" }; + // How a backup's enforced retention end time is inherited. + enum BackupRetentionInheritance { + // Inheritance behavior not set. This will default to + // `INHERIT_VAULT_RETENTION`. + BACKUP_RETENTION_INHERITANCE_UNSPECIFIED = 0; + + // The enforced retention end time of a backup will be inherited from the + // backup vault's `backup_minimum_enforced_retention_duration` field. + // + // This is the default behavior. + INHERIT_VAULT_RETENTION = 1; + + // The enforced retention end time of a backup will always match the expire + // time of the backup. + // + // If this is set, the backup's enforced retention end time will be set to + // match the expire time during creation of the backup. When updating, the + // ERET and expire time must be updated together and have the same value. + // Invalid update requests will be rejected by the server. + MATCH_BACKUP_EXPIRE_TIME = 2; + } + // Holds the state of the backup vault resource. enum State { // State not set. @@ -87,6 +117,21 @@ message BackupVault { WITHIN_ORG_BUT_UNRESTRICTED_FOR_BA = 4; } + // Message describing the EncryptionConfig of backup vault. + // This determines how data within the vault is encrypted at rest. + message EncryptionConfig { + // Optional. The Cloud KMS key name to encrypt backups in this backup vault. + // Must be in the same region as the vault. Some workload backups like + // compute disk backups may use their inherited source key instead. Format: + // projects/{project}/locations/{location}/keyRings/{ring}/cryptoKeys/{key} + optional string kms_key_name = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; + } + // Output only. Identifier. Name of the backup vault to create. It must have // the // format`"projects/{project}/locations/{location}/backupVaults/{backupvault}"`. @@ -118,6 +163,11 @@ message BackupVault { optional google.protobuf.Duration backup_minimum_enforced_retention_duration = 20 [(google.api.field_behavior) = REQUIRED]; + // Optional. Setting for how a backup's enforced retention end time is + // inherited. + optional BackupRetentionInheritance backup_retention_inheritance = 27 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. Set to true when there are no backups nested under this // resource. optional bool deletable = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -161,6 +211,10 @@ message BackupVault { // Default value is WITHIN_ORGANIZATION if not provided during creation. AccessRestriction access_restriction = 24 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The encryption config of the backup vault. + optional EncryptionConfig encryption_config = 29 + [(google.api.field_behavior) = OPTIONAL]; } // Message describing a DataSource object. @@ -569,6 +623,11 @@ message Backup { optional google.protobuf.Timestamp enforced_retention_end_time = 6 [(google.api.field_behavior) = OPTIONAL]; + // Output only. Setting for how the enforced retention end time is inherited. + // This value is copied from this backup's BackupVault. + optional BackupVault.BackupRetentionInheritance backup_retention_inheritance = + 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. When this backup is automatically expired. optional google.protobuf.Timestamp expire_time = 7 [(google.api.field_behavior) = OPTIONAL]; @@ -645,6 +704,15 @@ message Backup { BackupGcpResource gcp_resource = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; } + + // Optional. Output only. The list of KMS key versions used to encrypt the + // backup. + repeated string kms_key_versions = 33 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersion" + } + ]; } // Message for creating a BackupVault. @@ -1223,6 +1291,21 @@ message RestoreBackupRequest { // Disk properties to be overridden during restore. DiskRestoreProperties disk_restore_properties = 7; } + + // Optional. A field mask used to clear server-side default values + // for fields within the `instance_properties` oneof. + // + // When a field in this mask is cleared, the server will not apply its + // default logic (like inheriting a value from the source) for that field. + // + // The most common current use case is clearing default encryption keys. + // + // Examples of field mask paths: + // - Compute Instance Disks: + // `compute_instance_restore_properties.disks.*.disk_encryption_key` + // - Single Disk: `disk_restore_properties.disk_encryption_key` + optional google.protobuf.FieldMask clear_overrides_field_mask = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Response message for restoring from a Backup. diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackup.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackup.java index 600feb8fcf39..8ff5fdde2add 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackup.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackup.java @@ -22,6 +22,7 @@ import com.google.cloud.backupdr.v1.BackupName; import com.google.cloud.backupdr.v1.RestoreBackupRequest; import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; public class AsyncRestoreBackup { @@ -43,6 +44,7 @@ public static void asyncRestoreBackup() throws Exception { "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]") .toString()) .setRequestId("requestId693933066") + .setClearOverridesFieldMask(FieldMask.newBuilder().build()) .build(); ApiFuture future = backupDRClient.restoreBackupCallable().futureCall(request); // Do something. diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackupLRO.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackupLRO.java index 4f92ff5bd63b..9d62c08b6996 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackupLRO.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/AsyncRestoreBackupLRO.java @@ -23,6 +23,7 @@ import com.google.cloud.backupdr.v1.OperationMetadata; import com.google.cloud.backupdr.v1.RestoreBackupRequest; import com.google.cloud.backupdr.v1.RestoreBackupResponse; +import com.google.protobuf.FieldMask; public class AsyncRestoreBackupLRO { @@ -44,6 +45,7 @@ public static void asyncRestoreBackupLRO() throws Exception { "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]") .toString()) .setRequestId("requestId693933066") + .setClearOverridesFieldMask(FieldMask.newBuilder().build()) .build(); OperationFuture future = backupDRClient.restoreBackupOperationCallable().futureCall(request); diff --git a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/SyncRestoreBackup.java b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/SyncRestoreBackup.java index 4cdc2f37bdde..40afd15154db 100644 --- a/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/SyncRestoreBackup.java +++ b/java-backupdr/samples/snippets/generated/com/google/cloud/backupdr/v1/backupdr/restorebackup/SyncRestoreBackup.java @@ -21,6 +21,7 @@ import com.google.cloud.backupdr.v1.BackupName; import com.google.cloud.backupdr.v1.RestoreBackupRequest; import com.google.cloud.backupdr.v1.RestoreBackupResponse; +import com.google.protobuf.FieldMask; public class SyncRestoreBackup { @@ -42,6 +43,7 @@ public static void syncRestoreBackup() throws Exception { "[PROJECT]", "[LOCATION]", "[BACKUPVAULT]", "[DATASOURCE]", "[BACKUP]") .toString()) .setRequestId("requestId693933066") + .setClearOverridesFieldMask(FieldMask.newBuilder().build()) .build(); RestoreBackupResponse response = backupDRClient.restoreBackupAsync(request).get(); } diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index dcaddabc165d..d3b09a15a0a6 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.78.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.78.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.80.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.80.0 [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 diff --git a/java-batch/README.md b/java-batch/README.md index 78ba3ee21fb1..243fb4106b86 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.78.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.78.0' +implementation 'com.google.cloud:google-cloud-batch:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.80.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.80.0 [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 diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java index 5037e0e1d9bd..b95b4e3e0cb9 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/AllocationPolicy.java @@ -130,9 +130,31 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum * This old model will still be supported. *
* - * PREEMPTIBLE = 3; + * PREEMPTIBLE = 3 [deprecated = true]; */ + @java.lang.Deprecated PREEMPTIBLE(3), + /** + * + * + *
+     * Bound to the lifecycle of the reservation in which it is provisioned.
+     * 
+ * + * RESERVATION_BOUND = 4; + */ + RESERVATION_BOUND(4), + /** + * + * + *
+     * Instance is provisioned with DWS Flex Start and has limited max run
+     * duration.
+     * 
+ * + * FLEX_START = 5; + */ + FLEX_START(5), UNRECOGNIZED(-1), ; @@ -181,9 +203,32 @@ public enum ProvisioningModel implements com.google.protobuf.ProtocolMessageEnum * This old model will still be supported. *
* - * PREEMPTIBLE = 3; + * PREEMPTIBLE = 3 [deprecated = true]; */ - public static final int PREEMPTIBLE_VALUE = 3; + @java.lang.Deprecated public static final int PREEMPTIBLE_VALUE = 3; + + /** + * + * + *
+     * Bound to the lifecycle of the reservation in which it is provisioned.
+     * 
+ * + * RESERVATION_BOUND = 4; + */ + public static final int RESERVATION_BOUND_VALUE = 4; + + /** + * + * + *
+     * Instance is provisioned with DWS Flex Start and has limited max run
+     * duration.
+     * 
+ * + * FLEX_START = 5; + */ + public static final int FLEX_START_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -217,6 +262,10 @@ public static ProvisioningModel forNumber(int value) { return SPOT; case 3: return PREEMPTIBLE; + case 4: + return RESERVATION_BOUND; + case 5: + return FLEX_START; default: return null; } diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java index abf082c1d908..96219608fd87 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java +++ b/java-batch/proto-google-cloud-batch-v1/src/main/java/com/google/cloud/batch/v1/JobProto.java @@ -215,7 +215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\025\n" + "\021JOB_STATE_CHANGED\020\001\022\026\n" - + "\022TASK_STATE_CHANGED\020\002\"\201\017\n" + + "\022TASK_STATE_CHANGED\020\002\"\255\017\n" + "\020AllocationPolicy\022H\n" + "\010location\030\001" + " \001(\01326.google.cloud.batch.v1.AllocationPolicy.LocationPolicy\022S\n" @@ -280,12 +280,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014max_distance\030\002 \001(\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"`\n" + + "\005value\030\002 \001(\t:\0028\001\"\213\001\n" + "\021ProvisioningModel\022\"\n" + "\036PROVISIONING_MODEL_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\010\n" - + "\004SPOT\020\002\022\017\n" - + "\013PREEMPTIBLE\020\003\"\313\004\n" + + "\004SPOT\020\002\022\023\n" + + "\013PREEMPTIBLE\020\003\032\002\010\001\022\025\n" + + "\021RESERVATION_BOUND\020\004\022\016\n\n" + + "FLEX_START\020\005\"\313\004\n" + "\tTaskGroup\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\0227\n" + "\ttask_spec\030\003" @@ -304,15 +306,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SCHEDULING_POLICY_UNSPECIFIED\020\000\022\027\n" + "\023AS_SOON_AS_POSSIBLE\020\001\022\014\n" + "\010IN_ORDER\020\002:o\352Al\n" - + "\036batch.googleapis.com/TaskGroup\022Jprojects/{project}/loc" - + "ations/{location}/jobs/{job}/taskGroups/{task_group}\"/\n" + + "\036batch.googleapis.com/TaskGroup\022Jprojects/{project}" + + "/locations/{location}/jobs/{job}/taskGroups/{task_group}\"/\n" + "\016ServiceAccount\022\r\n" + "\005email\030\001 \001(\t\022\016\n" + "\006scopes\030\002 \003(\tB\251\001\n" - + "\031com.google.cloud.batch.v1B\010JobProtoP\001Z/cloud.google.co" - + "m/go/batch/apiv1/batchpb;batchpb\242\002\003GCB\252\002" - + "\025Google.Cloud.Batch.V1\312\002\025Google\\Cloud\\Ba" - + "tch\\V1\352\002\030Google::Cloud::Batch::V1b\006proto3" + + "\031com.google.cloud.batch.v1B\010JobProtoP\001Z/cloud.googl" + + "e.com/go/batch/apiv1/batchpb;batchpb\242\002\003G" + + "CB\252\002\025Google.Cloud.Batch.V1\312\002\025Google\\Clou" + + "d\\Batch\\V1\352\002\030Google::Cloud::Batch::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto index 14c1e576103d..99192f80876a 100644 --- a/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto +++ b/java-batch/proto-google-cloud-batch-v1/src/main/proto/google/cloud/batch/v1/job.proto @@ -559,7 +559,14 @@ message AllocationPolicy { // old preemptible VM model (indicated by this field) is the older model, // and has been migrated to use the SPOT model as the underlying technology. // This old model will still be supported. - PREEMPTIBLE = 3; + PREEMPTIBLE = 3 [deprecated = true]; + + // Bound to the lifecycle of the reservation in which it is provisioned. + RESERVATION_BOUND = 4; + + // Instance is provisioned with DWS Flex Start and has limited max run + // duration. + FLEX_START = 5; } // Location where compute resources should be allocated for the Job. diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 35a449052b46..d288c6de0d01 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.76.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.76.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.78.0 [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 diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index 36df0d9c4ab6..53f36b3e6be3 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.76.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.76.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.78.0 [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 diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index 91513cc03352..1c4a242712f3 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.76.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.76.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.78.0 [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 diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 649ea0ab1a0d..cbfd42df7c80 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.76.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.76.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.78.0 [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 diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index b7cfcffc570a..91bf5bb41aa9 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.76.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.76.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.78.0 [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 diff --git a/java-biglake/README.md b/java-biglake/README.md index 7f4b0783ccf2..0d7cc421d8c7 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.66.0 + 0.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.66.0' +implementation 'com.google.cloud:google-cloud-biglake:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.68.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.68.0 [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 diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 4adb501ea090..3c1d69ce9442 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.73.0 + 2.75.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.73.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.73.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.75.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.75.0 [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 diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index eae4cfef1bea..3d9eff99c0be 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.80.0 + 2.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.80.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.82.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.82.0 [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 diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 6478399d66f4..b4dc80731f60 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.75.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.75.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.77.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.77.0 [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 diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index 15d2ac1728f8..e8004651d548 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.78.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.80.0 [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 diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index d2d2ac0f0062..97ad77d0a419 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.81.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.81.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.83.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.83.0 [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 diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 3f406aabd58a..570806eabf77 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.79.0 + 2.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.79.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.81.0 [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 diff --git a/java-billing/README.md b/java-billing/README.md index 70c7bc7480f6..bfa9073f06e0 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.78.0' +implementation 'com.google.cloud:google-cloud-billing:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.80.0 [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 diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index b10a86f2d700..10f2fa4cb803 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.78.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.80.0 [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 diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 78d6d3f18102..2d12e89e9ebf 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.77.0 + 1.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.77.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.79.0 [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 diff --git a/java-capacityplanner/README.md b/java-capacityplanner/README.md index 86d2f7a88701..96aed84127da 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.1.0 + 0.3.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.1.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.3.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-capacityplanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.1.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.3.0 [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 diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index 1e8b08202569..688f8077d34f 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.81.0 + 0.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.81.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.83.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.83.0 [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 diff --git a/java-channel/README.md b/java-channel/README.md index e5d756e10a5e..f554acb4da3f 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.82.0 + 3.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.82.0' +implementation 'com.google.cloud:google-cloud-channel:3.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.84.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.84.0 [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 diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java index c905b1b1bb11..0cbdb62ae602 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceClient.java @@ -1218,7 +1218,7 @@ * * *

RegisterSubscriber - *

Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this Channel Services account. After you create a subscriber, you get the events through [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent] + *

Registers a service account with subscriber privileges on the Pub/Sub topic for this Channel Services account or integrator. After you create a subscriber, you get the events through [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent] *

Possible error codes: *

    *
  • PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. @@ -1240,7 +1240,7 @@ * * *

    UnregisterSubscriber - *

    Unregisters a service account with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account. If there are no service accounts left with subscriber privileges, this deletes the topic. You can call ListSubscribers to check for these accounts. + *

    Unregisters a service account with subscriber privileges on the Pub/Sub topic created for this Channel Services account or integrator. If there are no service accounts left with subscriber privileges, this deletes the topic. You can call ListSubscribers to check for these accounts. *

    Possible error codes: *

      *
    • PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. @@ -1263,7 +1263,7 @@ * * *

      ListSubscribers - *

      Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account. + *

      Lists service accounts with subscriber privileges on the Pub/Sub topic created for this Channel Services account or integrator. *

      Possible error codes: *

        *
      • PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. @@ -3521,6 +3521,7 @@ public final OperationFuture changeRenewalSettin * .setPurchaseOrderId("purchaseOrderId2029917384") * .setRequestId("requestId693933066") * .setBillingAccount("billingAccount708726578") + * .setPriceReferenceId("priceReferenceId-5103427") * .build(); * Entitlement response = cloudChannelServiceClient.changeOfferAsync(request).get(); * } @@ -3576,6 +3577,7 @@ public final OperationFuture changeOfferAsync( * .setPurchaseOrderId("purchaseOrderId2029917384") * .setRequestId("requestId693933066") * .setBillingAccount("billingAccount708726578") + * .setPriceReferenceId("priceReferenceId-5103427") * .build(); * OperationFuture future = * cloudChannelServiceClient.changeOfferOperationCallable().futureCall(request); @@ -3631,6 +3633,7 @@ public final OperationFuture changeOfferAsync( * .setPurchaseOrderId("purchaseOrderId2029917384") * .setRequestId("requestId693933066") * .setBillingAccount("billingAccount708726578") + * .setPriceReferenceId("priceReferenceId-5103427") * .build(); * ApiFuture future = * cloudChannelServiceClient.changeOfferCallable().futureCall(request); @@ -8716,8 +8719,8 @@ public final QueryEligibleBillingAccountsResponse queryEligibleBillingAccounts( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this - * Channel Services account. After you create a subscriber, you get the events through + * Registers a service account with subscriber privileges on the Pub/Sub topic for this Channel + * Services account or integrator. After you create a subscriber, you get the events through * [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent] * *

        Possible error codes: @@ -8745,8 +8748,9 @@ public final QueryEligibleBillingAccountsResponse queryEligibleBillingAccounts( * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { * RegisterSubscriberRequest request = * RegisterSubscriberRequest.newBuilder() - * .setAccount("account-1177318867") + * .setAccount(AccountName.of("[ACCOUNT]").toString()) * .setServiceAccount("serviceAccount1079137720") + * .setIntegrator("integrator-1902360937") * .build(); * RegisterSubscriberResponse response = cloudChannelServiceClient.registerSubscriber(request); * } @@ -8761,8 +8765,8 @@ public final RegisterSubscriberResponse registerSubscriber(RegisterSubscriberReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this - * Channel Services account. After you create a subscriber, you get the events through + * Registers a service account with subscriber privileges on the Pub/Sub topic for this Channel + * Services account or integrator. After you create a subscriber, you get the events through * [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent] * *

        Possible error codes: @@ -8790,8 +8794,9 @@ public final RegisterSubscriberResponse registerSubscriber(RegisterSubscriberReq * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { * RegisterSubscriberRequest request = * RegisterSubscriberRequest.newBuilder() - * .setAccount("account-1177318867") + * .setAccount(AccountName.of("[ACCOUNT]").toString()) * .setServiceAccount("serviceAccount1079137720") + * .setIntegrator("integrator-1902360937") * .build(); * ApiFuture future = * cloudChannelServiceClient.registerSubscriberCallable().futureCall(request); @@ -8807,8 +8812,8 @@ public final RegisterSubscriberResponse registerSubscriber(RegisterSubscriberReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Unregisters a service account with subscriber privileges on the Cloud Pub/Sub topic created for - * this Channel Services account. If there are no service accounts left with subscriber + * Unregisters a service account with subscriber privileges on the Pub/Sub topic created for this + * Channel Services account or integrator. If there are no service accounts left with subscriber * privileges, this deletes the topic. You can call ListSubscribers to check for these accounts. * *

        Possible error codes: @@ -8838,8 +8843,9 @@ public final RegisterSubscriberResponse registerSubscriber(RegisterSubscriberReq * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { * UnregisterSubscriberRequest request = * UnregisterSubscriberRequest.newBuilder() - * .setAccount("account-1177318867") + * .setAccount(AccountName.of("[ACCOUNT]").toString()) * .setServiceAccount("serviceAccount1079137720") + * .setIntegrator("integrator-1902360937") * .build(); * UnregisterSubscriberResponse response = * cloudChannelServiceClient.unregisterSubscriber(request); @@ -8856,8 +8862,8 @@ public final UnregisterSubscriberResponse unregisterSubscriber( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Unregisters a service account with subscriber privileges on the Cloud Pub/Sub topic created for - * this Channel Services account. If there are no service accounts left with subscriber + * Unregisters a service account with subscriber privileges on the Pub/Sub topic created for this + * Channel Services account or integrator. If there are no service accounts left with subscriber * privileges, this deletes the topic. You can call ListSubscribers to check for these accounts. * *

        Possible error codes: @@ -8887,8 +8893,9 @@ public final UnregisterSubscriberResponse unregisterSubscriber( * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { * UnregisterSubscriberRequest request = * UnregisterSubscriberRequest.newBuilder() - * .setAccount("account-1177318867") + * .setAccount(AccountName.of("[ACCOUNT]").toString()) * .setServiceAccount("serviceAccount1079137720") + * .setIntegrator("integrator-1902360937") * .build(); * ApiFuture future = * cloudChannelServiceClient.unregisterSubscriberCallable().futureCall(request); @@ -8904,8 +8911,8 @@ public final UnregisterSubscriberResponse unregisterSubscriber( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this - * Channel Services account. + * Lists service accounts with subscriber privileges on the Pub/Sub topic created for this Channel + * Services account or integrator. * *

        Possible error codes: * @@ -8933,9 +8940,10 @@ public final UnregisterSubscriberResponse unregisterSubscriber( * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { * ListSubscribersRequest request = * ListSubscribersRequest.newBuilder() - * .setAccount("account-1177318867") + * .setAccount(AccountName.of("[ACCOUNT]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setIntegrator("integrator-1902360937") * .build(); * for (String element : cloudChannelServiceClient.listSubscribers(request).iterateAll()) { * // doThingsWith(element); @@ -8952,8 +8960,8 @@ public final ListSubscribersPagedResponse listSubscribers(ListSubscribersRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this - * Channel Services account. + * Lists service accounts with subscriber privileges on the Pub/Sub topic created for this Channel + * Services account or integrator. * *

        Possible error codes: * @@ -8981,9 +8989,10 @@ public final ListSubscribersPagedResponse listSubscribers(ListSubscribersRequest * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { * ListSubscribersRequest request = * ListSubscribersRequest.newBuilder() - * .setAccount("account-1177318867") + * .setAccount(AccountName.of("[ACCOUNT]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setIntegrator("integrator-1902360937") * .build(); * ApiFuture future = * cloudChannelServiceClient.listSubscribersPagedCallable().futureCall(request); @@ -9001,8 +9010,8 @@ public final ListSubscribersPagedResponse listSubscribers(ListSubscribersRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this - * Channel Services account. + * Lists service accounts with subscriber privileges on the Pub/Sub topic created for this Channel + * Services account or integrator. * *

        Possible error codes: * @@ -9030,9 +9039,10 @@ public final ListSubscribersPagedResponse listSubscribers(ListSubscribersRequest * try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { * ListSubscribersRequest request = * ListSubscribersRequest.newBuilder() - * .setAccount("account-1177318867") + * .setAccount(AccountName.of("[ACCOUNT]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setIntegrator("integrator-1902360937") * .build(); * while (true) { * ListSubscribersResponse response = diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java index e968b35ab6a6..9a3dd193adf0 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/GrpcCloudChannelServiceStub.java @@ -1445,6 +1445,7 @@ protected GrpcCloudChannelServiceStub( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("account", String.valueOf(request.getAccount())); + builder.add("integrator", String.valueOf(request.getIntegrator())); return builder.build(); }) .build(); @@ -1456,6 +1457,7 @@ protected GrpcCloudChannelServiceStub( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("account", String.valueOf(request.getAccount())); + builder.add("integrator", String.valueOf(request.getIntegrator())); return builder.build(); }) .build(); @@ -1467,6 +1469,7 @@ protected GrpcCloudChannelServiceStub( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("account", String.valueOf(request.getAccount())); + builder.add("integrator", String.valueOf(request.getIntegrator())); return builder.build(); }) .build(); diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/HttpJsonCloudChannelServiceStub.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/HttpJsonCloudChannelServiceStub.java index 0d98d5ba5261..08fb08f90f7e 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/HttpJsonCloudChannelServiceStub.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/HttpJsonCloudChannelServiceStub.java @@ -1952,8 +1952,13 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub { ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "account", request.getAccount()); + if (request.hasIntegrator()) { + serializer.putPathParam( + fields, "integrator", request.getIntegrator()); + } return fields; }) + .setAdditionalPaths("/v1/{integrator=integrators/*}:registerSubscriber") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -1965,7 +1970,10 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearAccount().build(), true)) + .toBody( + "*", + request.toBuilder().clearAccount().clearIntegrator().build(), + true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -1991,8 +1999,13 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub { ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "account", request.getAccount()); + if (request.hasIntegrator()) { + serializer.putPathParam( + fields, "integrator", request.getIntegrator()); + } return fields; }) + .setAdditionalPaths("/v1/{integrator=integrators/*}:unregisterSubscriber") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -2004,7 +2017,10 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearAccount().build(), true)) + .toBody( + "*", + request.toBuilder().clearAccount().clearIntegrator().build(), + true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -2028,8 +2044,13 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub { ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "account", request.getAccount()); + if (request.hasIntegrator()) { + serializer.putPathParam( + fields, "integrator", request.getIntegrator()); + } return fields; }) + .setAdditionalPaths("/v1/{integrator=integrators/*}:listSubscribers") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -2853,6 +2874,7 @@ protected HttpJsonCloudChannelServiceStub( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("account", String.valueOf(request.getAccount())); + builder.add("integrator", String.valueOf(request.getIntegrator())); return builder.build(); }) .build(); @@ -2866,6 +2888,7 @@ protected HttpJsonCloudChannelServiceStub( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("account", String.valueOf(request.getAccount())); + builder.add("integrator", String.valueOf(request.getIntegrator())); return builder.build(); }) .build(); @@ -2878,6 +2901,7 @@ protected HttpJsonCloudChannelServiceStub( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("account", String.valueOf(request.getAccount())); + builder.add("integrator", String.valueOf(request.getIntegrator())); return builder.build(); }) .build(); diff --git a/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json b/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json index 48e99e97ce09..987a2b4843c9 100644 --- a/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json +++ b/java-channel/google-cloud-channel/src/main/resources/META-INF/native-image/com.google.cloud.channel.v1/reflect-config.json @@ -1079,6 +1079,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.channel.v1.DiscountComponent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.channel.v1.DiscountComponent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.channel.v1.DiscountType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.channel.v1.EduData", "queryAllDeclaredConstructors": true, diff --git a/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientHttpJsonTest.java b/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientHttpJsonTest.java index 018c503c0d60..df644614100d 100644 --- a/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientHttpJsonTest.java +++ b/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientHttpJsonTest.java @@ -914,6 +914,7 @@ public void getEntitlementTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); mockService.addResponse(expectedResponse); @@ -975,6 +976,7 @@ public void createEntitlementTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1045,6 +1047,7 @@ public void changeParametersTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1118,6 +1121,7 @@ public void changeRenewalSettingsTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1189,6 +1193,7 @@ public void changeOfferTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1206,6 +1211,7 @@ public void changeOfferTest() throws Exception { .setPurchaseOrderId("purchaseOrderId2029917384") .setRequestId("requestId693933066") .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Entitlement actualResponse = client.changeOfferAsync(request).get(); @@ -1243,6 +1249,7 @@ public void changeOfferExceptionTest() throws Exception { .setPurchaseOrderId("purchaseOrderId2029917384") .setRequestId("requestId693933066") .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); client.changeOfferAsync(request).get(); Assert.fail("No exception raised"); @@ -1266,6 +1273,7 @@ public void startPaidServiceTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1335,6 +1343,7 @@ public void suspendEntitlementTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1458,6 +1467,7 @@ public void activateEntitlementTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -3397,8 +3407,9 @@ public void registerSubscriberTest() throws Exception { RegisterSubscriberRequest request = RegisterSubscriberRequest.newBuilder() - .setAccount("accounts/account-7630") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); RegisterSubscriberResponse actualResponse = client.registerSubscriber(request); @@ -3429,8 +3440,9 @@ public void registerSubscriberExceptionTest() throws Exception { try { RegisterSubscriberRequest request = RegisterSubscriberRequest.newBuilder() - .setAccount("accounts/account-7630") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); client.registerSubscriber(request); Assert.fail("No exception raised"); @@ -3447,8 +3459,9 @@ public void unregisterSubscriberTest() throws Exception { UnregisterSubscriberRequest request = UnregisterSubscriberRequest.newBuilder() - .setAccount("accounts/account-7630") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); UnregisterSubscriberResponse actualResponse = client.unregisterSubscriber(request); @@ -3479,8 +3492,9 @@ public void unregisterSubscriberExceptionTest() throws Exception { try { UnregisterSubscriberRequest request = UnregisterSubscriberRequest.newBuilder() - .setAccount("accounts/account-7630") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); client.unregisterSubscriber(request); Assert.fail("No exception raised"); @@ -3501,9 +3515,10 @@ public void listSubscribersTest() throws Exception { ListSubscribersRequest request = ListSubscribersRequest.newBuilder() - .setAccount("accounts/account-7630") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setIntegrator("integrator-1902360937") .build(); ListSubscribersPagedResponse pagedListResponse = client.listSubscribers(request); @@ -3538,9 +3553,10 @@ public void listSubscribersExceptionTest() throws Exception { try { ListSubscribersRequest request = ListSubscribersRequest.newBuilder() - .setAccount("accounts/account-7630") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setIntegrator("integrator-1902360937") .build(); client.listSubscribers(request); Assert.fail("No exception raised"); diff --git a/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java b/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java index 743f6e0dda64..8e022a496521 100644 --- a/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java +++ b/java-channel/google-cloud-channel/src/test/java/com/google/cloud/channel/v1/CloudChannelServiceClientTest.java @@ -849,6 +849,7 @@ public void getEntitlementTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); mockCloudChannelService.addResponse(expectedResponse); @@ -904,6 +905,7 @@ public void createEntitlementTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -973,6 +975,7 @@ public void changeParametersTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1045,6 +1048,7 @@ public void changeRenewalSettingsTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1115,6 +1119,7 @@ public void changeOfferTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1132,6 +1137,7 @@ public void changeOfferTest() throws Exception { .setPurchaseOrderId("purchaseOrderId2029917384") .setRequestId("requestId693933066") .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Entitlement actualResponse = client.changeOfferAsync(request).get(); @@ -1147,6 +1153,7 @@ public void changeOfferTest() throws Exception { Assert.assertEquals(request.getPurchaseOrderId(), actualRequest.getPurchaseOrderId()); Assert.assertEquals(request.getRequestId(), actualRequest.getRequestId()); Assert.assertEquals(request.getBillingAccount(), actualRequest.getBillingAccount()); + Assert.assertEquals(request.getPriceReferenceId(), actualRequest.getPriceReferenceId()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -1167,6 +1174,7 @@ public void changeOfferExceptionTest() throws Exception { .setPurchaseOrderId("purchaseOrderId2029917384") .setRequestId("requestId693933066") .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); client.changeOfferAsync(request).get(); Assert.fail("No exception raised"); @@ -1193,6 +1201,7 @@ public void startPaidServiceTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1259,6 +1268,7 @@ public void suspendEntitlementTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -1376,6 +1386,7 @@ public void activateEntitlementTest() throws Exception { .setAssociationInfo(AssociationInfo.newBuilder().build()) .addAllParameters(new ArrayList()) .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Operation resultOperation = Operation.newBuilder() @@ -3149,8 +3160,9 @@ public void registerSubscriberTest() throws Exception { RegisterSubscriberRequest request = RegisterSubscriberRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); RegisterSubscriberResponse actualResponse = client.registerSubscriber(request); @@ -3162,6 +3174,7 @@ public void registerSubscriberTest() throws Exception { Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); Assert.assertEquals(request.getServiceAccount(), actualRequest.getServiceAccount()); + Assert.assertEquals(request.getIntegrator(), actualRequest.getIntegrator()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3176,8 +3189,9 @@ public void registerSubscriberExceptionTest() throws Exception { try { RegisterSubscriberRequest request = RegisterSubscriberRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); client.registerSubscriber(request); Assert.fail("No exception raised"); @@ -3194,8 +3208,9 @@ public void unregisterSubscriberTest() throws Exception { UnregisterSubscriberRequest request = UnregisterSubscriberRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); UnregisterSubscriberResponse actualResponse = client.unregisterSubscriber(request); @@ -3208,6 +3223,7 @@ public void unregisterSubscriberTest() throws Exception { Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); Assert.assertEquals(request.getServiceAccount(), actualRequest.getServiceAccount()); + Assert.assertEquals(request.getIntegrator(), actualRequest.getIntegrator()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3222,8 +3238,9 @@ public void unregisterSubscriberExceptionTest() throws Exception { try { UnregisterSubscriberRequest request = UnregisterSubscriberRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); client.unregisterSubscriber(request); Assert.fail("No exception raised"); @@ -3244,9 +3261,10 @@ public void listSubscribersTest() throws Exception { ListSubscribersRequest request = ListSubscribersRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setIntegrator("integrator-1902360937") .build(); ListSubscribersPagedResponse pagedListResponse = client.listSubscribers(request); @@ -3263,6 +3281,7 @@ public void listSubscribersTest() throws Exception { Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getIntegrator(), actualRequest.getIntegrator()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3277,9 +3296,10 @@ public void listSubscribersExceptionTest() throws Exception { try { ListSubscribersRequest request = ListSubscribersRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setIntegrator("integrator-1902360937") .build(); client.listSubscribers(request); Assert.fail("No exception raised"); diff --git a/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java b/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java index 86f93e5c8cef..87c2d3cf8b40 100644 --- a/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java +++ b/java-channel/grpc-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudChannelServiceGrpc.java @@ -3845,8 +3845,8 @@ default void queryEligibleBillingAccounts( * * *

        -     * Registers a service account with subscriber privileges on the Cloud Pub/Sub
        -     * topic for this Channel Services account. After you create a
        +     * Registers a service account with subscriber privileges on the Pub/Sub
        +     * topic for this Channel Services account or integrator. After you create a
              * subscriber, you get the events through
              * [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
              * Possible error codes:
        @@ -3874,10 +3874,10 @@ default void registerSubscriber(
              *
              *
              * 
        -     * Unregisters a service account with subscriber privileges on the Cloud
        -     * Pub/Sub topic created for this Channel Services account. If there are no
        -     * service accounts left with subscriber privileges, this deletes the topic.
        -     * You can call ListSubscribers to check for these accounts.
        +     * Unregisters a service account with subscriber privileges on the Pub/Sub
        +     * topic created for this Channel Services account or integrator. If there are
        +     * no service accounts left with subscriber privileges, this deletes the
        +     * topic. You can call ListSubscribers to check for these accounts.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        @@ -3906,8 +3906,8 @@ default void unregisterSubscriber(
              *
              *
              * 
        -     * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
        -     * topic created for this Channel Services account.
        +     * Lists service accounts with subscriber privileges on the Pub/Sub topic
        +     * created for this Channel Services account or integrator.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        @@ -5447,8 +5447,8 @@ public void queryEligibleBillingAccounts(
              *
              *
              * 
        -     * Registers a service account with subscriber privileges on the Cloud Pub/Sub
        -     * topic for this Channel Services account. After you create a
        +     * Registers a service account with subscriber privileges on the Pub/Sub
        +     * topic for this Channel Services account or integrator. After you create a
              * subscriber, you get the events through
              * [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
              * Possible error codes:
        @@ -5478,10 +5478,10 @@ public void registerSubscriber(
              *
              *
              * 
        -     * Unregisters a service account with subscriber privileges on the Cloud
        -     * Pub/Sub topic created for this Channel Services account. If there are no
        -     * service accounts left with subscriber privileges, this deletes the topic.
        -     * You can call ListSubscribers to check for these accounts.
        +     * Unregisters a service account with subscriber privileges on the Pub/Sub
        +     * topic created for this Channel Services account or integrator. If there are
        +     * no service accounts left with subscriber privileges, this deletes the
        +     * topic. You can call ListSubscribers to check for these accounts.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        @@ -5512,8 +5512,8 @@ public void unregisterSubscriber(
              *
              *
              * 
        -     * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
        -     * topic created for this Channel Services account.
        +     * Lists service accounts with subscriber privileges on the Pub/Sub topic
        +     * created for this Channel Services account or integrator.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        @@ -6906,8 +6906,8 @@ public com.google.cloud.channel.v1.ListPurchasableOffersResponse listPurchasable
              *
              *
              * 
        -     * Registers a service account with subscriber privileges on the Cloud Pub/Sub
        -     * topic for this Channel Services account. After you create a
        +     * Registers a service account with subscriber privileges on the Pub/Sub
        +     * topic for this Channel Services account or integrator. After you create a
              * subscriber, you get the events through
              * [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
              * Possible error codes:
        @@ -6934,10 +6934,10 @@ public com.google.cloud.channel.v1.RegisterSubscriberResponse registerSubscriber
              *
              *
              * 
        -     * Unregisters a service account with subscriber privileges on the Cloud
        -     * Pub/Sub topic created for this Channel Services account. If there are no
        -     * service accounts left with subscriber privileges, this deletes the topic.
        -     * You can call ListSubscribers to check for these accounts.
        +     * Unregisters a service account with subscriber privileges on the Pub/Sub
        +     * topic created for this Channel Services account or integrator. If there are
        +     * no service accounts left with subscriber privileges, this deletes the
        +     * topic. You can call ListSubscribers to check for these accounts.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        @@ -6965,8 +6965,8 @@ public com.google.cloud.channel.v1.UnregisterSubscriberResponse unregisterSubscr
              *
              *
              * 
        -     * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
        -     * topic created for this Channel Services account.
        +     * Lists service accounts with subscriber privileges on the Pub/Sub topic
        +     * created for this Channel Services account or integrator.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        @@ -8320,8 +8320,8 @@ public com.google.cloud.channel.v1.ListPurchasableOffersResponse listPurchasable
              *
              *
              * 
        -     * Registers a service account with subscriber privileges on the Cloud Pub/Sub
        -     * topic for this Channel Services account. After you create a
        +     * Registers a service account with subscriber privileges on the Pub/Sub
        +     * topic for this Channel Services account or integrator. After you create a
              * subscriber, you get the events through
              * [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
              * Possible error codes:
        @@ -8347,10 +8347,10 @@ public com.google.cloud.channel.v1.RegisterSubscriberResponse registerSubscriber
              *
              *
              * 
        -     * Unregisters a service account with subscriber privileges on the Cloud
        -     * Pub/Sub topic created for this Channel Services account. If there are no
        -     * service accounts left with subscriber privileges, this deletes the topic.
        -     * You can call ListSubscribers to check for these accounts.
        +     * Unregisters a service account with subscriber privileges on the Pub/Sub
        +     * topic created for this Channel Services account or integrator. If there are
        +     * no service accounts left with subscriber privileges, this deletes the
        +     * topic. You can call ListSubscribers to check for these accounts.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        @@ -8377,8 +8377,8 @@ public com.google.cloud.channel.v1.UnregisterSubscriberResponse unregisterSubscr
              *
              *
              * 
        -     * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
        -     * topic created for this Channel Services account.
        +     * Lists service accounts with subscriber privileges on the Pub/Sub topic
        +     * created for this Channel Services account or integrator.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        @@ -9776,8 +9776,8 @@ protected CloudChannelServiceFutureStub build(
              *
              *
              * 
        -     * Registers a service account with subscriber privileges on the Cloud Pub/Sub
        -     * topic for this Channel Services account. After you create a
        +     * Registers a service account with subscriber privileges on the Pub/Sub
        +     * topic for this Channel Services account or integrator. After you create a
              * subscriber, you get the events through
              * [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent]
              * Possible error codes:
        @@ -9804,10 +9804,10 @@ protected CloudChannelServiceFutureStub build(
              *
              *
              * 
        -     * Unregisters a service account with subscriber privileges on the Cloud
        -     * Pub/Sub topic created for this Channel Services account. If there are no
        -     * service accounts left with subscriber privileges, this deletes the topic.
        -     * You can call ListSubscribers to check for these accounts.
        +     * Unregisters a service account with subscriber privileges on the Pub/Sub
        +     * topic created for this Channel Services account or integrator. If there are
        +     * no service accounts left with subscriber privileges, this deletes the
        +     * topic. You can call ListSubscribers to check for these accounts.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        @@ -9835,8 +9835,8 @@ protected CloudChannelServiceFutureStub build(
              *
              *
              * 
        -     * Lists service accounts with subscriber privileges on the Cloud Pub/Sub
        -     * topic created for this Channel Services account.
        +     * Lists service accounts with subscriber privileges on the Pub/Sub topic
        +     * created for this Channel Services account or integrator.
              * Possible error codes:
              * * PERMISSION_DENIED: The reseller account making the request and the
              * provided reseller account are different, or the impersonated user
        diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java
        new file mode 100644
        index 000000000000..20fd01576b3d
        --- /dev/null
        +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/AccountName.java
        @@ -0,0 +1,168 @@
        +/*
        + * Copyright 2025 Google LLC
        + *
        + * Licensed under the Apache License, Version 2.0 (the "License");
        + * you may not use this file except in compliance with the License.
        + * You may obtain a copy of the License at
        + *
        + *      https://www.apache.org/licenses/LICENSE-2.0
        + *
        + * Unless required by applicable law or agreed to in writing, software
        + * distributed under the License is distributed on an "AS IS" BASIS,
        + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        + * See the License for the specific language governing permissions and
        + * limitations under the License.
        + */
        +
        +package com.google.cloud.channel.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 AccountName implements ResourceName {
        +  private static final PathTemplate ACCOUNT =
        +      PathTemplate.createWithoutUrlEncoding("accounts/{account}");
        +  private volatile Map fieldValuesMap;
        +  private final String account;
        +
        +  @Deprecated
        +  protected AccountName() {
        +    account = null;
        +  }
        +
        +  private AccountName(Builder builder) {
        +    account = Preconditions.checkNotNull(builder.getAccount());
        +  }
        +
        +  public String getAccount() {
        +    return account;
        +  }
        +
        +  public static Builder newBuilder() {
        +    return new Builder();
        +  }
        +
        +  public Builder toBuilder() {
        +    return new Builder(this);
        +  }
        +
        +  public static AccountName of(String account) {
        +    return newBuilder().setAccount(account).build();
        +  }
        +
        +  public static String format(String account) {
        +    return newBuilder().setAccount(account).build().toString();
        +  }
        +
        +  public static AccountName parse(String formattedString) {
        +    if (formattedString.isEmpty()) {
        +      return null;
        +    }
        +    Map matchMap =
        +        ACCOUNT.validatedMatch(
        +            formattedString, "AccountName.parse: formattedString not in valid format");
        +    return of(matchMap.get("account"));
        +  }
        +
        +  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 (AccountName value : values) {
        +      if (value == null) {
        +        list.add("");
        +      } else {
        +        list.add(value.toString());
        +      }
        +    }
        +    return list;
        +  }
        +
        +  public static boolean isParsableFrom(String formattedString) {
        +    return ACCOUNT.matches(formattedString);
        +  }
        +
        +  @Override
        +  public Map getFieldValuesMap() {
        +    if (fieldValuesMap == null) {
        +      synchronized (this) {
        +        if (fieldValuesMap == null) {
        +          ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
        +          if (account != null) {
        +            fieldMapBuilder.put("account", account);
        +          }
        +          fieldValuesMap = fieldMapBuilder.build();
        +        }
        +      }
        +    }
        +    return fieldValuesMap;
        +  }
        +
        +  public String getFieldValue(String fieldName) {
        +    return getFieldValuesMap().get(fieldName);
        +  }
        +
        +  @Override
        +  public String toString() {
        +    return ACCOUNT.instantiate("account", account);
        +  }
        +
        +  @Override
        +  public boolean equals(Object o) {
        +    if (o == this) {
        +      return true;
        +    }
        +    if (o != null && getClass() == o.getClass()) {
        +      AccountName that = ((AccountName) o);
        +      return Objects.equals(this.account, that.account);
        +    }
        +    return false;
        +  }
        +
        +  @Override
        +  public int hashCode() {
        +    int h = 1;
        +    h *= 1000003;
        +    h ^= Objects.hashCode(account);
        +    return h;
        +  }
        +
        +  /** Builder for accounts/{account}. */
        +  public static class Builder {
        +    private String account;
        +
        +    protected Builder() {}
        +
        +    public String getAccount() {
        +      return account;
        +    }
        +
        +    public Builder setAccount(String account) {
        +      this.account = account;
        +      return this;
        +    }
        +
        +    private Builder(AccountName accountName) {
        +      this.account = accountName.account;
        +    }
        +
        +    public AccountName build() {
        +      return new AccountName(this);
        +    }
        +  }
        +}
        diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java
        index 578817c4806f..f7e2230f2387 100644
        --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java
        +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequest.java
        @@ -47,6 +47,7 @@ private ChangeOfferRequest() {
             purchaseOrderId_ = "";
             requestId_ = "";
             billingAccount_ = "";
        +    priceReferenceId_ = "";
           }
         
           @java.lang.Override
        @@ -476,6 +477,63 @@ public com.google.protobuf.ByteString getBillingAccountBytes() {
             }
           }
         
        +  public static final int PRICE_REFERENCE_ID_FIELD_NUMBER = 8;
        +
        +  @SuppressWarnings("serial")
        +  private volatile java.lang.Object priceReferenceId_ = "";
        +
        +  /**
        +   *
        +   *
        +   * 
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + @java.lang.Override + public java.lang.String getPriceReferenceId() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + priceReferenceId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPriceReferenceIdBytes() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + priceReferenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -508,6 +566,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, billingAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, priceReferenceId_); + } getUnknownFields().writeTo(output); } @@ -535,6 +596,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, billingAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, priceReferenceId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -557,6 +621,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPurchaseOrderId().equals(other.getPurchaseOrderId())) return false; if (!getRequestId().equals(other.getRequestId())) return false; if (!getBillingAccount().equals(other.getBillingAccount())) return false; + if (!getPriceReferenceId().equals(other.getPriceReferenceId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -582,6 +647,8 @@ public int hashCode() { hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + BILLING_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getBillingAccount().hashCode(); + hash = (37 * hash) + PRICE_REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPriceReferenceId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -735,6 +802,7 @@ public Builder clear() { purchaseOrderId_ = ""; requestId_ = ""; billingAccount_ = ""; + priceReferenceId_ = ""; return this; } @@ -799,6 +867,9 @@ private void buildPartial0(com.google.cloud.channel.v1.ChangeOfferRequest result if (((from_bitField0_ & 0x00000020) != 0)) { result.billingAccount_ = billingAccount_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.priceReferenceId_ = priceReferenceId_; + } } @java.lang.Override @@ -898,6 +969,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.ChangeOfferRequest other) { bitField0_ |= 0x00000020; onChanged(); } + if (!other.getPriceReferenceId().isEmpty()) { + priceReferenceId_ = other.priceReferenceId_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -967,6 +1043,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 58 + case 66: + { + priceReferenceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2097,6 +2179,127 @@ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object priceReferenceId_ = ""; + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + public java.lang.String getPriceReferenceId() { + java.lang.Object ref = priceReferenceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + priceReferenceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + public com.google.protobuf.ByteString getPriceReferenceIdBytes() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + priceReferenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The priceReferenceId to set. + * @return This builder for chaining. + */ + public Builder setPriceReferenceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + priceReferenceId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPriceReferenceId() { + priceReferenceId_ = getDefaultInstance().getPriceReferenceId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for priceReferenceId to set. + * @return This builder for chaining. + */ + public Builder setPriceReferenceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + priceReferenceId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java index f790bb02ff0f..dc46c31f0fa1 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeOfferRequestOrBuilder.java @@ -274,4 +274,34 @@ public interface ChangeOfferRequestOrBuilder * @return The bytes for billingAccount. */ com.google.protobuf.ByteString getBillingAccountBytes(); + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + java.lang.String getPriceReferenceId(); + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + com.google.protobuf.ByteString getPriceReferenceIdBytes(); } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeParametersRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeParametersRequest.java index 5ff4b26b4260..cf6924b81d67 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeParametersRequest.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ChangeParametersRequest.java @@ -23,7 +23,8 @@ * * *
        - * Request message for [CloudChannelService.ChangeParametersRequest][].
        + * Request message for
        + * [CloudChannelService.ChangeParameters][google.cloud.channel.v1.CloudChannelService.ChangeParameters].
          * 
        * * Protobuf type {@code google.cloud.channel.v1.ChangeParametersRequest} @@ -556,7 +557,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
        -   * Request message for [CloudChannelService.ChangeParametersRequest][].
        +   * Request message for
        +   * [CloudChannelService.ChangeParameters][google.cloud.channel.v1.CloudChannelService.ChangeParameters].
            * 
        * * Protobuf type {@code google.cloud.channel.v1.ChangeParametersRequest} diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccount.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccount.java index 2ba0ca7b2169..cd0ee32cf0f7 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccount.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccount.java @@ -95,7 +95,8 @@ public boolean getExisting() { * *
            * Returns true if the Cloud Identity account is associated with a customer
        -   * of the Channel Services partner.
        +   * of the Channel Services partner (with active subscriptions or purchase
        +   * consents).
            * 
        * * bool owned = 2; @@ -842,7 +843,8 @@ public Builder clearExisting() { * *
              * Returns true if the Cloud Identity account is associated with a customer
        -     * of the Channel Services partner.
        +     * of the Channel Services partner (with active subscriptions or purchase
        +     * consents).
              * 
        * * bool owned = 2; @@ -859,7 +861,8 @@ public boolean getOwned() { * *
              * Returns true if the Cloud Identity account is associated with a customer
        -     * of the Channel Services partner.
        +     * of the Channel Services partner (with active subscriptions or purchase
        +     * consents).
              * 
        * * bool owned = 2; @@ -880,7 +883,8 @@ public Builder setOwned(boolean value) { * *
              * Returns true if the Cloud Identity account is associated with a customer
        -     * of the Channel Services partner.
        +     * of the Channel Services partner (with active subscriptions or purchase
        +     * consents).
              * 
        * * bool owned = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccountOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccountOrBuilder.java index 53c9bfbef7f0..dde589c1096e 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccountOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CloudIdentityCustomerAccountOrBuilder.java @@ -42,7 +42,8 @@ public interface CloudIdentityCustomerAccountOrBuilder * *
            * Returns true if the Cloud Identity account is associated with a customer
        -   * of the Channel Services partner.
        +   * of the Channel Services partner (with active subscriptions or purchase
        +   * consents).
            * 
        * * bool owned = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java index e9a348a7c4af..d4a71a8ab985 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Customer.java @@ -76,7 +76,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * The enum represents whether a customer belongs to public sector
        +   * The enum represents if a customer belongs to public sector
            * 
        * * Protobuf enum {@code google.cloud.channel.v1.Customer.CustomerAttestationState} @@ -981,7 +981,7 @@ public com.google.protobuf.ByteString getCorrelationIdBytes() { * * *
        -   * Optional. Indicate whether a customer is attesting about the correctness of
        +   * Optional. Indicate if a customer is attesting about the correctness of
            * provided information. Only required if creating a GCP Entitlement.
            * 
        * @@ -1000,7 +1000,7 @@ public int getCustomerAttestationStateValue() { * * *
        -   * Optional. Indicate whether a customer is attesting about the correctness of
        +   * Optional. Indicate if a customer is attesting about the correctness of
            * provided information. Only required if creating a GCP Entitlement.
            * 
        * @@ -3772,7 +3772,7 @@ public Builder setCorrelationIdBytes(com.google.protobuf.ByteString value) { * * *
        -     * Optional. Indicate whether a customer is attesting about the correctness of
        +     * Optional. Indicate if a customer is attesting about the correctness of
              * provided information. Only required if creating a GCP Entitlement.
              * 
        * @@ -3791,7 +3791,7 @@ public int getCustomerAttestationStateValue() { * * *
        -     * Optional. Indicate whether a customer is attesting about the correctness of
        +     * Optional. Indicate if a customer is attesting about the correctness of
              * provided information. Only required if creating a GCP Entitlement.
              * 
        * @@ -3813,7 +3813,7 @@ public Builder setCustomerAttestationStateValue(int value) { * * *
        -     * Optional. Indicate whether a customer is attesting about the correctness of
        +     * Optional. Indicate if a customer is attesting about the correctness of
              * provided information. Only required if creating a GCP Entitlement.
              * 
        * @@ -3838,7 +3838,7 @@ public Builder setCustomerAttestationStateValue(int value) { * * *
        -     * Optional. Indicate whether a customer is attesting about the correctness of
        +     * Optional. Indicate if a customer is attesting about the correctness of
              * provided information. Only required if creating a GCP Entitlement.
              * 
        * @@ -3864,7 +3864,7 @@ public Builder setCustomerAttestationState( * * *
        -     * Optional. Indicate whether a customer is attesting about the correctness of
        +     * Optional. Indicate if a customer is attesting about the correctness of
              * provided information. Only required if creating a GCP Entitlement.
              * 
        * diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEvent.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEvent.java index 6f4937335ac8..bfb345fa2965 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEvent.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEvent.java @@ -286,7 +286,7 @@ public com.google.protobuf.ByteString getCustomerBytes() { * * *
        -   * Type of event which happened on the customer.
        +   * Type of event which happened for the customer.
            * 
        * * .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; @@ -302,7 +302,7 @@ public int getEventTypeValue() { * * *
        -   * Type of event which happened on the customer.
        +   * Type of event which happened for the customer.
            * 
        * * .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; @@ -802,7 +802,7 @@ public Builder setCustomerBytes(com.google.protobuf.ByteString value) { * * *
        -     * Type of event which happened on the customer.
        +     * Type of event which happened for the customer.
              * 
        * * .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; @@ -818,7 +818,7 @@ public int getEventTypeValue() { * * *
        -     * Type of event which happened on the customer.
        +     * Type of event which happened for the customer.
              * 
        * * .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; @@ -837,7 +837,7 @@ public Builder setEventTypeValue(int value) { * * *
        -     * Type of event which happened on the customer.
        +     * Type of event which happened for the customer.
              * 
        * * .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; @@ -855,7 +855,7 @@ public com.google.cloud.channel.v1.CustomerEvent.Type getEventType() { * * *
        -     * Type of event which happened on the customer.
        +     * Type of event which happened for the customer.
              * 
        * * .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; @@ -877,7 +877,7 @@ public Builder setEventType(com.google.cloud.channel.v1.CustomerEvent.Type value * * *
        -     * Type of event which happened on the customer.
        +     * Type of event which happened for the customer.
              * 
        * * .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEventOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEventOrBuilder.java index d447bead8357..9eb4c1185bc4 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEventOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerEventOrBuilder.java @@ -56,7 +56,7 @@ public interface CustomerEventOrBuilder * * *
        -   * Type of event which happened on the customer.
        +   * Type of event which happened for the customer.
            * 
        * * .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; @@ -69,7 +69,7 @@ public interface CustomerEventOrBuilder * * *
        -   * Type of event which happened on the customer.
        +   * Type of event which happened for the customer.
            * 
        * * .google.cloud.channel.v1.CustomerEvent.Type event_type = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java index b4277d6beb57..4cb192842ae5 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/CustomerOrBuilder.java @@ -473,7 +473,7 @@ public interface CustomerOrBuilder * * *
        -   * Optional. Indicate whether a customer is attesting about the correctness of
        +   * Optional. Indicate if a customer is attesting about the correctness of
            * provided information. Only required if creating a GCP Entitlement.
            * 
        * @@ -489,7 +489,7 @@ public interface CustomerOrBuilder * * *
        -   * Optional. Indicate whether a customer is attesting about the correctness of
        +   * Optional. Indicate if a customer is attesting about the correctness of
            * provided information. Only required if creating a GCP Entitlement.
            * 
        * diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponent.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponent.java new file mode 100644 index 000000000000..7f87e94b32c8 --- /dev/null +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponent.java @@ -0,0 +1,1131 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/channel/v1/offers.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.channel.v1; + +/** + * + * + *
        + * Represents a single component of the total discount applicable on a Price.
        + * 
        + * + * Protobuf type {@code google.cloud.channel.v1.DiscountComponent} + */ +public final class DiscountComponent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.channel.v1.DiscountComponent) + DiscountComponentOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DiscountComponent.newBuilder() to construct. + private DiscountComponent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DiscountComponent() { + discountType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DiscountComponent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.channel.v1.OffersProto + .internal_static_google_cloud_channel_v1_DiscountComponent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.channel.v1.OffersProto + .internal_static_google_cloud_channel_v1_DiscountComponent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.channel.v1.DiscountComponent.class, + com.google.cloud.channel.v1.DiscountComponent.Builder.class); + } + + private int discountValueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object discountValue_; + + public enum DiscountValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DISCOUNT_PERCENTAGE(3), + DISCOUNT_ABSOLUTE(4), + DISCOUNTVALUE_NOT_SET(0); + private final int value; + + private DiscountValueCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DiscountValueCase valueOf(int value) { + return forNumber(value); + } + + public static DiscountValueCase forNumber(int value) { + switch (value) { + case 3: + return DISCOUNT_PERCENTAGE; + case 4: + return DISCOUNT_ABSOLUTE; + case 0: + return DISCOUNTVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DiscountValueCase getDiscountValueCase() { + return DiscountValueCase.forNumber(discountValueCase_); + } + + public static final int DISCOUNT_PERCENTAGE_FIELD_NUMBER = 3; + + /** + * + * + *
        +   * Discount percentage, represented as decimal.
        +   * For example, a 20% discount will be represented as 0.2.
        +   * 
        + * + * double discount_percentage = 3; + * + * @return Whether the discountPercentage field is set. + */ + @java.lang.Override + public boolean hasDiscountPercentage() { + return discountValueCase_ == 3; + } + + /** + * + * + *
        +   * Discount percentage, represented as decimal.
        +   * For example, a 20% discount will be represented as 0.2.
        +   * 
        + * + * double discount_percentage = 3; + * + * @return The discountPercentage. + */ + @java.lang.Override + public double getDiscountPercentage() { + if (discountValueCase_ == 3) { + return (java.lang.Double) discountValue_; + } + return 0D; + } + + public static final int DISCOUNT_ABSOLUTE_FIELD_NUMBER = 4; + + /** + * + * + *
        +   * Fixed value discount.
        +   * 
        + * + * .google.type.Money discount_absolute = 4; + * + * @return Whether the discountAbsolute field is set. + */ + @java.lang.Override + public boolean hasDiscountAbsolute() { + return discountValueCase_ == 4; + } + + /** + * + * + *
        +   * Fixed value discount.
        +   * 
        + * + * .google.type.Money discount_absolute = 4; + * + * @return The discountAbsolute. + */ + @java.lang.Override + public com.google.type.Money getDiscountAbsolute() { + if (discountValueCase_ == 4) { + return (com.google.type.Money) discountValue_; + } + return com.google.type.Money.getDefaultInstance(); + } + + /** + * + * + *
        +   * Fixed value discount.
        +   * 
        + * + * .google.type.Money discount_absolute = 4; + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getDiscountAbsoluteOrBuilder() { + if (discountValueCase_ == 4) { + return (com.google.type.Money) discountValue_; + } + return com.google.type.Money.getDefaultInstance(); + } + + public static final int DISCOUNT_TYPE_FIELD_NUMBER = 2; + private int discountType_ = 0; + + /** + * + * + *
        +   * Type of the discount.
        +   * 
        + * + * .google.cloud.channel.v1.DiscountType discount_type = 2; + * + * @return The enum numeric value on the wire for discountType. + */ + @java.lang.Override + public int getDiscountTypeValue() { + return discountType_; + } + + /** + * + * + *
        +   * Type of the discount.
        +   * 
        + * + * .google.cloud.channel.v1.DiscountType discount_type = 2; + * + * @return The discountType. + */ + @java.lang.Override + public com.google.cloud.channel.v1.DiscountType getDiscountType() { + com.google.cloud.channel.v1.DiscountType result = + com.google.cloud.channel.v1.DiscountType.forNumber(discountType_); + return result == null ? com.google.cloud.channel.v1.DiscountType.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 (discountType_ + != com.google.cloud.channel.v1.DiscountType.DISCOUNT_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, discountType_); + } + if (discountValueCase_ == 3) { + output.writeDouble(3, (double) ((java.lang.Double) discountValue_)); + } + if (discountValueCase_ == 4) { + output.writeMessage(4, (com.google.type.Money) discountValue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (discountType_ + != com.google.cloud.channel.v1.DiscountType.DISCOUNT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, discountType_); + } + if (discountValueCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 3, (double) ((java.lang.Double) discountValue_)); + } + if (discountValueCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.type.Money) discountValue_); + } + 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.channel.v1.DiscountComponent)) { + return super.equals(obj); + } + com.google.cloud.channel.v1.DiscountComponent other = + (com.google.cloud.channel.v1.DiscountComponent) obj; + + if (discountType_ != other.discountType_) return false; + if (!getDiscountValueCase().equals(other.getDiscountValueCase())) return false; + switch (discountValueCase_) { + case 3: + if (java.lang.Double.doubleToLongBits(getDiscountPercentage()) + != java.lang.Double.doubleToLongBits(other.getDiscountPercentage())) return false; + break; + case 4: + if (!getDiscountAbsolute().equals(other.getDiscountAbsolute())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISCOUNT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + discountType_; + switch (discountValueCase_) { + case 3: + hash = (37 * hash) + DISCOUNT_PERCENTAGE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDiscountPercentage())); + break; + case 4: + hash = (37 * hash) + DISCOUNT_ABSOLUTE_FIELD_NUMBER; + hash = (53 * hash) + getDiscountAbsolute().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.channel.v1.DiscountComponent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.channel.v1.DiscountComponent 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.channel.v1.DiscountComponent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.channel.v1.DiscountComponent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.channel.v1.DiscountComponent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.channel.v1.DiscountComponent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.channel.v1.DiscountComponent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.channel.v1.DiscountComponent 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.channel.v1.DiscountComponent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.channel.v1.DiscountComponent 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.channel.v1.DiscountComponent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.channel.v1.DiscountComponent 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.channel.v1.DiscountComponent 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 single component of the total discount applicable on a Price.
        +   * 
        + * + * Protobuf type {@code google.cloud.channel.v1.DiscountComponent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.channel.v1.DiscountComponent) + com.google.cloud.channel.v1.DiscountComponentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.channel.v1.OffersProto + .internal_static_google_cloud_channel_v1_DiscountComponent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.channel.v1.OffersProto + .internal_static_google_cloud_channel_v1_DiscountComponent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.channel.v1.DiscountComponent.class, + com.google.cloud.channel.v1.DiscountComponent.Builder.class); + } + + // Construct using com.google.cloud.channel.v1.DiscountComponent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (discountAbsoluteBuilder_ != null) { + discountAbsoluteBuilder_.clear(); + } + discountType_ = 0; + discountValueCase_ = 0; + discountValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.channel.v1.OffersProto + .internal_static_google_cloud_channel_v1_DiscountComponent_descriptor; + } + + @java.lang.Override + public com.google.cloud.channel.v1.DiscountComponent getDefaultInstanceForType() { + return com.google.cloud.channel.v1.DiscountComponent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.channel.v1.DiscountComponent build() { + com.google.cloud.channel.v1.DiscountComponent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.channel.v1.DiscountComponent buildPartial() { + com.google.cloud.channel.v1.DiscountComponent result = + new com.google.cloud.channel.v1.DiscountComponent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.channel.v1.DiscountComponent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.discountType_ = discountType_; + } + } + + private void buildPartialOneofs(com.google.cloud.channel.v1.DiscountComponent result) { + result.discountValueCase_ = discountValueCase_; + result.discountValue_ = this.discountValue_; + if (discountValueCase_ == 4 && discountAbsoluteBuilder_ != null) { + result.discountValue_ = discountAbsoluteBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.channel.v1.DiscountComponent) { + return mergeFrom((com.google.cloud.channel.v1.DiscountComponent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.channel.v1.DiscountComponent other) { + if (other == com.google.cloud.channel.v1.DiscountComponent.getDefaultInstance()) return this; + if (other.discountType_ != 0) { + setDiscountTypeValue(other.getDiscountTypeValue()); + } + switch (other.getDiscountValueCase()) { + case DISCOUNT_PERCENTAGE: + { + setDiscountPercentage(other.getDiscountPercentage()); + break; + } + case DISCOUNT_ABSOLUTE: + { + mergeDiscountAbsolute(other.getDiscountAbsolute()); + break; + } + case DISCOUNTVALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + discountType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 16 + case 25: + { + discountValue_ = input.readDouble(); + discountValueCase_ = 3; + break; + } // case 25 + case 34: + { + input.readMessage( + getDiscountAbsoluteFieldBuilder().getBuilder(), extensionRegistry); + discountValueCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int discountValueCase_ = 0; + private java.lang.Object discountValue_; + + public DiscountValueCase getDiscountValueCase() { + return DiscountValueCase.forNumber(discountValueCase_); + } + + public Builder clearDiscountValue() { + discountValueCase_ = 0; + discountValue_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
        +     * Discount percentage, represented as decimal.
        +     * For example, a 20% discount will be represented as 0.2.
        +     * 
        + * + * double discount_percentage = 3; + * + * @return Whether the discountPercentage field is set. + */ + public boolean hasDiscountPercentage() { + return discountValueCase_ == 3; + } + + /** + * + * + *
        +     * Discount percentage, represented as decimal.
        +     * For example, a 20% discount will be represented as 0.2.
        +     * 
        + * + * double discount_percentage = 3; + * + * @return The discountPercentage. + */ + public double getDiscountPercentage() { + if (discountValueCase_ == 3) { + return (java.lang.Double) discountValue_; + } + return 0D; + } + + /** + * + * + *
        +     * Discount percentage, represented as decimal.
        +     * For example, a 20% discount will be represented as 0.2.
        +     * 
        + * + * double discount_percentage = 3; + * + * @param value The discountPercentage to set. + * @return This builder for chaining. + */ + public Builder setDiscountPercentage(double value) { + + discountValueCase_ = 3; + discountValue_ = value; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Discount percentage, represented as decimal.
        +     * For example, a 20% discount will be represented as 0.2.
        +     * 
        + * + * double discount_percentage = 3; + * + * @return This builder for chaining. + */ + public Builder clearDiscountPercentage() { + if (discountValueCase_ == 3) { + discountValueCase_ = 0; + discountValue_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + discountAbsoluteBuilder_; + + /** + * + * + *
        +     * Fixed value discount.
        +     * 
        + * + * .google.type.Money discount_absolute = 4; + * + * @return Whether the discountAbsolute field is set. + */ + @java.lang.Override + public boolean hasDiscountAbsolute() { + return discountValueCase_ == 4; + } + + /** + * + * + *
        +     * Fixed value discount.
        +     * 
        + * + * .google.type.Money discount_absolute = 4; + * + * @return The discountAbsolute. + */ + @java.lang.Override + public com.google.type.Money getDiscountAbsolute() { + if (discountAbsoluteBuilder_ == null) { + if (discountValueCase_ == 4) { + return (com.google.type.Money) discountValue_; + } + return com.google.type.Money.getDefaultInstance(); + } else { + if (discountValueCase_ == 4) { + return discountAbsoluteBuilder_.getMessage(); + } + return com.google.type.Money.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Fixed value discount.
        +     * 
        + * + * .google.type.Money discount_absolute = 4; + */ + public Builder setDiscountAbsolute(com.google.type.Money value) { + if (discountAbsoluteBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + discountValue_ = value; + onChanged(); + } else { + discountAbsoluteBuilder_.setMessage(value); + } + discountValueCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Fixed value discount.
        +     * 
        + * + * .google.type.Money discount_absolute = 4; + */ + public Builder setDiscountAbsolute(com.google.type.Money.Builder builderForValue) { + if (discountAbsoluteBuilder_ == null) { + discountValue_ = builderForValue.build(); + onChanged(); + } else { + discountAbsoluteBuilder_.setMessage(builderForValue.build()); + } + discountValueCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Fixed value discount.
        +     * 
        + * + * .google.type.Money discount_absolute = 4; + */ + public Builder mergeDiscountAbsolute(com.google.type.Money value) { + if (discountAbsoluteBuilder_ == null) { + if (discountValueCase_ == 4 + && discountValue_ != com.google.type.Money.getDefaultInstance()) { + discountValue_ = + com.google.type.Money.newBuilder((com.google.type.Money) discountValue_) + .mergeFrom(value) + .buildPartial(); + } else { + discountValue_ = value; + } + onChanged(); + } else { + if (discountValueCase_ == 4) { + discountAbsoluteBuilder_.mergeFrom(value); + } else { + discountAbsoluteBuilder_.setMessage(value); + } + } + discountValueCase_ = 4; + return this; + } + + /** + * + * + *
        +     * Fixed value discount.
        +     * 
        + * + * .google.type.Money discount_absolute = 4; + */ + public Builder clearDiscountAbsolute() { + if (discountAbsoluteBuilder_ == null) { + if (discountValueCase_ == 4) { + discountValueCase_ = 0; + discountValue_ = null; + onChanged(); + } + } else { + if (discountValueCase_ == 4) { + discountValueCase_ = 0; + discountValue_ = null; + } + discountAbsoluteBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Fixed value discount.
        +     * 
        + * + * .google.type.Money discount_absolute = 4; + */ + public com.google.type.Money.Builder getDiscountAbsoluteBuilder() { + return getDiscountAbsoluteFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Fixed value discount.
        +     * 
        + * + * .google.type.Money discount_absolute = 4; + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getDiscountAbsoluteOrBuilder() { + if ((discountValueCase_ == 4) && (discountAbsoluteBuilder_ != null)) { + return discountAbsoluteBuilder_.getMessageOrBuilder(); + } else { + if (discountValueCase_ == 4) { + return (com.google.type.Money) discountValue_; + } + return com.google.type.Money.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Fixed value discount.
        +     * 
        + * + * .google.type.Money discount_absolute = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getDiscountAbsoluteFieldBuilder() { + if (discountAbsoluteBuilder_ == null) { + if (!(discountValueCase_ == 4)) { + discountValue_ = com.google.type.Money.getDefaultInstance(); + } + discountAbsoluteBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>( + (com.google.type.Money) discountValue_, getParentForChildren(), isClean()); + discountValue_ = null; + } + discountValueCase_ = 4; + onChanged(); + return discountAbsoluteBuilder_; + } + + private int discountType_ = 0; + + /** + * + * + *
        +     * Type of the discount.
        +     * 
        + * + * .google.cloud.channel.v1.DiscountType discount_type = 2; + * + * @return The enum numeric value on the wire for discountType. + */ + @java.lang.Override + public int getDiscountTypeValue() { + return discountType_; + } + + /** + * + * + *
        +     * Type of the discount.
        +     * 
        + * + * .google.cloud.channel.v1.DiscountType discount_type = 2; + * + * @param value The enum numeric value on the wire for discountType to set. + * @return This builder for chaining. + */ + public Builder setDiscountTypeValue(int value) { + discountType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Type of the discount.
        +     * 
        + * + * .google.cloud.channel.v1.DiscountType discount_type = 2; + * + * @return The discountType. + */ + @java.lang.Override + public com.google.cloud.channel.v1.DiscountType getDiscountType() { + com.google.cloud.channel.v1.DiscountType result = + com.google.cloud.channel.v1.DiscountType.forNumber(discountType_); + return result == null ? com.google.cloud.channel.v1.DiscountType.UNRECOGNIZED : result; + } + + /** + * + * + *
        +     * Type of the discount.
        +     * 
        + * + * .google.cloud.channel.v1.DiscountType discount_type = 2; + * + * @param value The discountType to set. + * @return This builder for chaining. + */ + public Builder setDiscountType(com.google.cloud.channel.v1.DiscountType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + discountType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Type of the discount.
        +     * 
        + * + * .google.cloud.channel.v1.DiscountType discount_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearDiscountType() { + bitField0_ = (bitField0_ & ~0x00000004); + discountType_ = 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.channel.v1.DiscountComponent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.channel.v1.DiscountComponent) + private static final com.google.cloud.channel.v1.DiscountComponent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.channel.v1.DiscountComponent(); + } + + public static com.google.cloud.channel.v1.DiscountComponent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DiscountComponent 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.channel.v1.DiscountComponent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponentOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponentOrBuilder.java new file mode 100644 index 000000000000..8eaa56c7cddd --- /dev/null +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountComponentOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/channel/v1/offers.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.channel.v1; + +public interface DiscountComponentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.channel.v1.DiscountComponent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Discount percentage, represented as decimal.
        +   * For example, a 20% discount will be represented as 0.2.
        +   * 
        + * + * double discount_percentage = 3; + * + * @return Whether the discountPercentage field is set. + */ + boolean hasDiscountPercentage(); + + /** + * + * + *
        +   * Discount percentage, represented as decimal.
        +   * For example, a 20% discount will be represented as 0.2.
        +   * 
        + * + * double discount_percentage = 3; + * + * @return The discountPercentage. + */ + double getDiscountPercentage(); + + /** + * + * + *
        +   * Fixed value discount.
        +   * 
        + * + * .google.type.Money discount_absolute = 4; + * + * @return Whether the discountAbsolute field is set. + */ + boolean hasDiscountAbsolute(); + + /** + * + * + *
        +   * Fixed value discount.
        +   * 
        + * + * .google.type.Money discount_absolute = 4; + * + * @return The discountAbsolute. + */ + com.google.type.Money getDiscountAbsolute(); + + /** + * + * + *
        +   * Fixed value discount.
        +   * 
        + * + * .google.type.Money discount_absolute = 4; + */ + com.google.type.MoneyOrBuilder getDiscountAbsoluteOrBuilder(); + + /** + * + * + *
        +   * Type of the discount.
        +   * 
        + * + * .google.cloud.channel.v1.DiscountType discount_type = 2; + * + * @return The enum numeric value on the wire for discountType. + */ + int getDiscountTypeValue(); + + /** + * + * + *
        +   * Type of the discount.
        +   * 
        + * + * .google.cloud.channel.v1.DiscountType discount_type = 2; + * + * @return The discountType. + */ + com.google.cloud.channel.v1.DiscountType getDiscountType(); + + com.google.cloud.channel.v1.DiscountComponent.DiscountValueCase getDiscountValueCase(); +} diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountType.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountType.java new file mode 100644 index 000000000000..d3a4ebcfecb2 --- /dev/null +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/DiscountType.java @@ -0,0 +1,248 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/channel/v1/offers.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.channel.v1; + +/** + * + * + *
        + * Discount Type.
        + * 
        + * + * Protobuf enum {@code google.cloud.channel.v1.DiscountType} + */ +public enum DiscountType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +   * Not used.
        +   * 
        + * + * DISCOUNT_TYPE_UNSPECIFIED = 0; + */ + DISCOUNT_TYPE_UNSPECIFIED(0), + /** + * + * + *
        +   * Regional discount.
        +   * 
        + * + * REGIONAL_DISCOUNT = 1; + */ + REGIONAL_DISCOUNT(1), + /** + * + * + *
        +   * Promotional discount.
        +   * 
        + * + * PROMOTIONAL_DISCOUNT = 2; + */ + PROMOTIONAL_DISCOUNT(2), + /** + * + * + *
        +   * Sales-provided discount.
        +   * 
        + * + * SALES_DISCOUNT = 3; + */ + SALES_DISCOUNT(3), + /** + * + * + *
        +   * Reseller margin.
        +   * 
        + * + * RESELLER_MARGIN = 4; + */ + RESELLER_MARGIN(4), + /** + * + * + *
        +   * Deal code discount.
        +   * 
        + * + * DEAL_CODE = 5; + */ + DEAL_CODE(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
        +   * Not used.
        +   * 
        + * + * DISCOUNT_TYPE_UNSPECIFIED = 0; + */ + public static final int DISCOUNT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +   * Regional discount.
        +   * 
        + * + * REGIONAL_DISCOUNT = 1; + */ + public static final int REGIONAL_DISCOUNT_VALUE = 1; + + /** + * + * + *
        +   * Promotional discount.
        +   * 
        + * + * PROMOTIONAL_DISCOUNT = 2; + */ + public static final int PROMOTIONAL_DISCOUNT_VALUE = 2; + + /** + * + * + *
        +   * Sales-provided discount.
        +   * 
        + * + * SALES_DISCOUNT = 3; + */ + public static final int SALES_DISCOUNT_VALUE = 3; + + /** + * + * + *
        +   * Reseller margin.
        +   * 
        + * + * RESELLER_MARGIN = 4; + */ + public static final int RESELLER_MARGIN_VALUE = 4; + + /** + * + * + *
        +   * Deal code discount.
        +   * 
        + * + * DEAL_CODE = 5; + */ + public static final int DEAL_CODE_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 DiscountType 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 DiscountType forNumber(int value) { + switch (value) { + case 0: + return DISCOUNT_TYPE_UNSPECIFIED; + case 1: + return REGIONAL_DISCOUNT; + case 2: + return PROMOTIONAL_DISCOUNT; + case 3: + return SALES_DISCOUNT; + case 4: + return RESELLER_MARGIN; + case 5: + return DEAL_CODE; + 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 DiscountType findValueByNumber(int number) { + return DiscountType.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.channel.v1.OffersProto.getDescriptor().getEnumTypes().get(5); + } + + private static final DiscountType[] VALUES = values(); + + public static DiscountType 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 DiscountType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.channel.v1.DiscountType) +} diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Entitlement.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Entitlement.java index 5ae52348dee9..d16c7302334a 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Entitlement.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Entitlement.java @@ -47,6 +47,7 @@ private Entitlement() { purchaseOrderId_ = ""; parameters_ = java.util.Collections.emptyList(); billingAccount_ = ""; + priceReferenceId_ = ""; } @java.lang.Override @@ -1364,6 +1365,63 @@ public com.google.protobuf.ByteString getBillingAccountBytes() { } } + public static final int PRICE_REFERENCE_ID_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private volatile java.lang.Object priceReferenceId_ = ""; + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + @java.lang.Override + public java.lang.String getPriceReferenceId() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + priceReferenceId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPriceReferenceIdBytes() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + priceReferenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1424,6 +1482,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 28, billingAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 29, priceReferenceId_); + } getUnknownFields().writeTo(output); } @@ -1484,6 +1545,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(billingAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(28, billingAccount_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(29, priceReferenceId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1530,6 +1594,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getParametersList().equals(other.getParametersList())) return false; if (!getBillingAccount().equals(other.getBillingAccount())) return false; + if (!getPriceReferenceId().equals(other.getPriceReferenceId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1583,6 +1648,8 @@ public int hashCode() { } hash = (37 * hash) + BILLING_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getBillingAccount().hashCode(); + hash = (37 * hash) + PRICE_REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPriceReferenceId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1782,6 +1849,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000800); billingAccount_ = ""; + priceReferenceId_ = ""; return this; } @@ -1884,6 +1952,9 @@ private void buildPartial0(com.google.cloud.channel.v1.Entitlement result) { if (((from_bitField0_ & 0x00001000) != 0)) { result.billingAccount_ = billingAccount_; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.priceReferenceId_ = priceReferenceId_; + } result.bitField0_ |= to_bitField0_; } @@ -2010,6 +2081,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.Entitlement other) { bitField0_ |= 0x00001000; onChanged(); } + if (!other.getPriceReferenceId().isEmpty()) { + priceReferenceId_ = other.priceReferenceId_; + bitField0_ |= 0x00002000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2136,6 +2212,12 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 226 + case 234: + { + priceReferenceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 234 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4989,6 +5071,127 @@ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object priceReferenceId_ = ""; + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + public java.lang.String getPriceReferenceId() { + java.lang.Object ref = priceReferenceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + priceReferenceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + public com.google.protobuf.ByteString getPriceReferenceIdBytes() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + priceReferenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The priceReferenceId to set. + * @return This builder for chaining. + */ + public Builder setPriceReferenceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + priceReferenceId_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPriceReferenceId() { + priceReferenceId_ = getDefaultInstance().getPriceReferenceId(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for priceReferenceId to set. + * @return This builder for chaining. + */ + public Builder setPriceReferenceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + priceReferenceId_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java index 4eea06947111..fa62d037b6be 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEvent.java @@ -522,7 +522,7 @@ public com.google.protobuf.ByteString getEntitlementBytes() { * * *
        -   * Type of event which happened on the entitlement.
        +   * Type of event which happened for the entitlement.
            * 
        * * .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; @@ -538,7 +538,7 @@ public int getEventTypeValue() { * * *
        -   * Type of event which happened on the entitlement.
        +   * Type of event which happened for the entitlement.
            * 
        * * .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; @@ -1040,7 +1040,7 @@ public Builder setEntitlementBytes(com.google.protobuf.ByteString value) { * * *
        -     * Type of event which happened on the entitlement.
        +     * Type of event which happened for the entitlement.
              * 
        * * .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; @@ -1056,7 +1056,7 @@ public int getEventTypeValue() { * * *
        -     * Type of event which happened on the entitlement.
        +     * Type of event which happened for the entitlement.
              * 
        * * .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; @@ -1075,7 +1075,7 @@ public Builder setEventTypeValue(int value) { * * *
        -     * Type of event which happened on the entitlement.
        +     * Type of event which happened for the entitlement.
              * 
        * * .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; @@ -1095,7 +1095,7 @@ public com.google.cloud.channel.v1.EntitlementEvent.Type getEventType() { * * *
        -     * Type of event which happened on the entitlement.
        +     * Type of event which happened for the entitlement.
              * 
        * * .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; @@ -1117,7 +1117,7 @@ public Builder setEventType(com.google.cloud.channel.v1.EntitlementEvent.Type va * * *
        -     * Type of event which happened on the entitlement.
        +     * Type of event which happened for the entitlement.
              * 
        * * .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEventOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEventOrBuilder.java index a0f52f92efbb..b700a3ea6512 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEventOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementEventOrBuilder.java @@ -56,7 +56,7 @@ public interface EntitlementEventOrBuilder * * *
        -   * Type of event which happened on the entitlement.
        +   * Type of event which happened for the entitlement.
            * 
        * * .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; @@ -69,7 +69,7 @@ public interface EntitlementEventOrBuilder * * *
        -   * Type of event which happened on the entitlement.
        +   * Type of event which happened for the entitlement.
            * 
        * * .google.cloud.channel.v1.EntitlementEvent.Type event_type = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementOrBuilder.java index 046786a70d16..452c3fc08591 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementOrBuilder.java @@ -652,4 +652,34 @@ public interface EntitlementOrBuilder * @return The bytes for billingAccount. */ com.google.protobuf.ByteString getBillingAccountBytes(); + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + java.lang.String getPriceReferenceId(); + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + com.google.protobuf.ByteString getPriceReferenceIdBytes(); } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java index 41034521f4d8..4b1d4b038be2 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/EntitlementsProto.java @@ -79,7 +79,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "i/field_behavior.proto\032\031google/api/resou" + "rce.proto\032$google/cloud/channel/v1/common.proto\032$google/cloud/channel/v1/offers." + "proto\032&google/cloud/channel/v1/products." - + "proto\032\037google/protobuf/timestamp.proto\"\373\010\n" + + "proto\032\037google/protobuf/timestamp.proto\"\234\t\n" + "\013Entitlement\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -101,7 +101,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020association_info\030\027" + " \001(\0132(.google.cloud.channel.v1.AssociationInfo\0226\n\n" + "parameters\030\032 \003(\0132\".google.cloud.channel.v1.Parameter\022\034\n" - + "\017billing_account\030\034 \001(\tB\003\340A\001\"R\n" + + "\017billing_account\030\034 \001(\tB\003\340A\001\022\037\n" + + "\022price_reference_id\030\035 \001(\tB\003\340A\001\"R\n" + "\021ProvisioningState\022\"\n" + "\036PROVISIONING_STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\r\n" @@ -113,8 +114,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030RENEWAL_WITH_TYPE_CANCEL\020\003\022\032\n" + "\026PENDING_TOS_ACCEPTANCE\020\004\022\t\n" + "\005OTHER\020d:p\352Am\n" - + "\'cloudchannel.googleapis.com/Entitlement" - + "\022Baccounts/{account}/customers/{customer}/entitlements/{entitlement}\"_\n" + + "\'cloudchannel.googleapis.com/Entitlement\022Baccou" + + "nts/{account}/customers/{customer}/entitlements/{entitlement}\"_\n" + "\tParameter\022\014\n" + "\004name\030\001 \001(\t\022-\n" + "\005value\030\002 \001(\0132\036.google.cloud.channel.v1.Value\022\025\n" @@ -136,8 +137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021resize_unit_count\030\002 \001(\010\022:\n" + "\014payment_plan\030\005 \001(\0162$.google.cloud.channel.v1.PaymentPlan\0226\n\r" + "payment_cycle\030\006 \001(\0132\037.google.cloud.channel.v1.Period\"L\n\r" - + "TrialSettings\022\r" - + "\n" + + "TrialSettings\022\r\n" + "\005trial\030\001 \001(\010\022,\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\277\001\n" + "\017TransferableSku\022J\n" @@ -149,16 +149,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023TransferEligibility\022\023\n" + "\013is_eligible\030\001 \001(\010\022\023\n" + "\013description\030\002 \001(\t\022Q\n" - + "\024ineligibility_reason\030\003 \001(\01623.google.c" - + "loud.channel.v1.TransferEligibility.Reason\"\221\001\n" + + "\024ineligibility_reason\030\003" + + " \001(\01623.google.cloud.channel.v1.TransferEligibility.Reason\"\221\001\n" + "\006Reason\022\026\n" + "\022REASON_UNSPECIFIED\020\000\022\032\n" + "\026PENDING_TOS_ACCEPTANCE\020\001\022\024\n" + "\020SKU_NOT_ELIGIBLE\020\002\022\021\n\r" + "SKU_SUSPENDED\020\003\022*\n" + "&CHANNEL_PARTNER_NOT_AUTHORIZED_FOR_SKU\020\004Bi\n" - + "\033com.google.cloud.channel.v1B\021EntitlementsProto" - + "P\001Z5cloud.google.com/go/channel/apiv1/channelpb;channelpbb\006proto3" + + "\033com.google.cloud.channel.v1B\021EntitlementsProtoP\001Z5clo" + + "ud.google.com/go/channel/apiv1/channelpb;channelpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -190,6 +190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AssociationInfo", "Parameters", "BillingAccount", + "PriceReferenceId", }); internal_static_google_cloud_channel_v1_Parameter_descriptor = getDescriptor().getMessageTypes().get(1); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponse.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponse.java index 9e3de969d222..f68aea9c90bc 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponse.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponse.java @@ -75,6 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -89,6 +92,9 @@ public java.util.List getOffersList() { * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -104,6 +110,9 @@ public java.util.List getOffersList() { * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -118,6 +127,9 @@ public int getOffersCount() { * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -132,6 +144,9 @@ public com.google.cloud.channel.v1.Offer getOffers(int index) { * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -628,6 +643,9 @@ private void ensureOffersIsMutable() { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -645,6 +663,9 @@ public java.util.List getOffersList() { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -662,6 +683,9 @@ public int getOffersCount() { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -679,6 +703,9 @@ public com.google.cloud.channel.v1.Offer getOffers(int index) { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -702,6 +729,9 @@ public Builder setOffers(int index, com.google.cloud.channel.v1.Offer value) { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -722,6 +752,9 @@ public Builder setOffers(int index, com.google.cloud.channel.v1.Offer.Builder bu * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -745,6 +778,9 @@ public Builder addOffers(com.google.cloud.channel.v1.Offer value) { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -768,6 +804,9 @@ public Builder addOffers(int index, com.google.cloud.channel.v1.Offer value) { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -788,6 +827,9 @@ public Builder addOffers(com.google.cloud.channel.v1.Offer.Builder builderForVal * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -808,6 +850,9 @@ public Builder addOffers(int index, com.google.cloud.channel.v1.Offer.Builder bu * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -829,6 +874,9 @@ public Builder addAllOffers( * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -849,6 +897,9 @@ public Builder clearOffers() { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -869,6 +920,9 @@ public Builder removeOffers(int index) { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -882,6 +936,9 @@ public com.google.cloud.channel.v1.Offer.Builder getOffersBuilder(int index) { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -899,6 +956,9 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOffersOrBuilder(int index) * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -917,6 +977,9 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOffersOrBuilder(int index) * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -931,6 +994,9 @@ public com.google.cloud.channel.v1.Offer.Builder addOffersBuilder() { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -945,6 +1011,9 @@ public com.google.cloud.channel.v1.Offer.Builder addOffersBuilder(int index) { * *
              * The list of Offers requested.
        +     *
        +     * The pricing information for each Offer only includes the base price.
        +     * Effective prices and discounts aren't populated.
              * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponseOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponseOrBuilder.java index 02992de282ed..36ba1e2448fd 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponseOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListOffersResponseOrBuilder.java @@ -29,6 +29,9 @@ public interface ListOffersResponseOrBuilder * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -40,6 +43,9 @@ public interface ListOffersResponseOrBuilder * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -51,6 +57,9 @@ public interface ListOffersResponseOrBuilder * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -62,6 +71,9 @@ public interface ListOffersResponseOrBuilder * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; @@ -73,6 +85,9 @@ public interface ListOffersResponseOrBuilder * *
            * The list of Offers requested.
        +   *
        +   * The pricing information for each Offer only includes the base price.
        +   * Effective prices and discounts aren't populated.
            * 
        * * repeated .google.cloud.channel.v1.Offer offers = 1; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequest.java index 70e7fdbcbd3f..4ad73cf71242 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequest.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequest.java @@ -157,7 +157,8 @@ public int getPageSize() { *
            * Optional. A token identifying a page of results beyond the first page.
            * Obtained through
        -   * [ListSkuGroupBillableSkus.next_page_token][] of the previous
        +   * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
        +   * of the previous
            * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
            * call.
            * 
        @@ -185,7 +186,8 @@ public java.lang.String getPageToken() { *
            * Optional. A token identifying a page of results beyond the first page.
            * Obtained through
        -   * [ListSkuGroupBillableSkus.next_page_token][] of the previous
        +   * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
        +   * of the previous
            * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
            * call.
            * 
        @@ -793,7 +795,8 @@ public Builder clearPageSize() { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroupBillableSkus.next_page_token][] of the previous
        +     * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
              * call.
              * 
        @@ -820,7 +823,8 @@ public java.lang.String getPageToken() { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroupBillableSkus.next_page_token][] of the previous
        +     * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
              * call.
              * 
        @@ -847,7 +851,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroupBillableSkus.next_page_token][] of the previous
        +     * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
              * call.
              * 
        @@ -873,7 +878,8 @@ public Builder setPageToken(java.lang.String value) { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroupBillableSkus.next_page_token][] of the previous
        +     * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
              * call.
              * 
        @@ -895,7 +901,8 @@ public Builder clearPageToken() { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroupBillableSkus.next_page_token][] of the previous
        +     * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
              * call.
              * 
        diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequestOrBuilder.java index a8591dab69b4..d68d6c28fde3 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequestOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusRequestOrBuilder.java @@ -77,7 +77,8 @@ public interface ListSkuGroupBillableSkusRequestOrBuilder *
            * Optional. A token identifying a page of results beyond the first page.
            * Obtained through
        -   * [ListSkuGroupBillableSkus.next_page_token][] of the previous
        +   * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
        +   * of the previous
            * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
            * call.
            * 
        @@ -94,7 +95,8 @@ public interface ListSkuGroupBillableSkusRequestOrBuilder *
            * Optional. A token identifying a page of results beyond the first page.
            * Obtained through
        -   * [ListSkuGroupBillableSkus.next_page_token][] of the previous
        +   * [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token]
        +   * of the previous
            * [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus]
            * call.
            * 
        diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponse.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponse.java index 8747a9ef8219..58d1a0f67275 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponse.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponse.java @@ -152,8 +152,9 @@ public com.google.cloud.channel.v1.BillableSkuOrBuilder getBillableSkusOrBuilder * *
            * A token to retrieve the next page of results.
        -   * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
        -   * page.
        +   * Pass to
        +   * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
        +   * to obtain that page.
            * 
        * * string next_page_token = 2; @@ -178,8 +179,9 @@ public java.lang.String getNextPageToken() { * *
            * A token to retrieve the next page of results.
        -   * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
        -   * page.
        +   * Pass to
        +   * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
        +   * to obtain that page.
            * 
        * * string next_page_token = 2; @@ -993,8 +995,9 @@ public com.google.cloud.channel.v1.BillableSku.Builder addBillableSkusBuilder(in * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; @@ -1018,8 +1021,9 @@ public java.lang.String getNextPageToken() { * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; @@ -1043,8 +1047,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; @@ -1067,8 +1072,9 @@ public Builder setNextPageToken(java.lang.String value) { * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; @@ -1087,8 +1093,9 @@ public Builder clearNextPageToken() { * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponseOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponseOrBuilder.java index c8ac995b9b16..266815aaf089 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponseOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupBillableSkusResponseOrBuilder.java @@ -85,8 +85,9 @@ public interface ListSkuGroupBillableSkusResponseOrBuilder * *
            * A token to retrieve the next page of results.
        -   * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
        -   * page.
        +   * Pass to
        +   * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
        +   * to obtain that page.
            * 
        * * string next_page_token = 2; @@ -100,8 +101,9 @@ public interface ListSkuGroupBillableSkusResponseOrBuilder * *
            * A token to retrieve the next page of results.
        -   * Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that
        -   * page.
        +   * Pass to
        +   * [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token]
        +   * to obtain that page.
            * 
        * * string next_page_token = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequest.java index f18165d1b355..70a35e569d76 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequest.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequest.java @@ -153,7 +153,8 @@ public int getPageSize() { *
            * Optional. A token identifying a page of results beyond the first page.
            * Obtained through
        -   * [ListSkuGroups.next_page_token][] of the previous
        +   * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
        +   * of the previous
            * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
            * call.
            * 
        @@ -181,7 +182,8 @@ public java.lang.String getPageToken() { *
            * Optional. A token identifying a page of results beyond the first page.
            * Obtained through
        -   * [ListSkuGroups.next_page_token][] of the previous
        +   * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
        +   * of the previous
            * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
            * call.
            * 
        @@ -781,7 +783,8 @@ public Builder clearPageSize() { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroups.next_page_token][] of the previous
        +     * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
              * call.
              * 
        @@ -808,7 +811,8 @@ public java.lang.String getPageToken() { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroups.next_page_token][] of the previous
        +     * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
              * call.
              * 
        @@ -835,7 +839,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroups.next_page_token][] of the previous
        +     * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
              * call.
              * 
        @@ -861,7 +866,8 @@ public Builder setPageToken(java.lang.String value) { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroups.next_page_token][] of the previous
        +     * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
              * call.
              * 
        @@ -883,7 +889,8 @@ public Builder clearPageToken() { *
              * Optional. A token identifying a page of results beyond the first page.
              * Obtained through
        -     * [ListSkuGroups.next_page_token][] of the previous
        +     * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
        +     * of the previous
              * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
              * call.
              * 
        diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequestOrBuilder.java index 1a812e4f1f35..f0412d590613 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequestOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsRequestOrBuilder.java @@ -74,7 +74,8 @@ public interface ListSkuGroupsRequestOrBuilder *
            * Optional. A token identifying a page of results beyond the first page.
            * Obtained through
        -   * [ListSkuGroups.next_page_token][] of the previous
        +   * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
        +   * of the previous
            * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
            * call.
            * 
        @@ -91,7 +92,8 @@ public interface ListSkuGroupsRequestOrBuilder *
            * Optional. A token identifying a page of results beyond the first page.
            * Obtained through
        -   * [ListSkuGroups.next_page_token][] of the previous
        +   * [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token]
        +   * of the previous
            * [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups]
            * call.
            * 
        diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponse.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponse.java index 306436aa250d..ac2d7799e33d 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponse.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponse.java @@ -151,8 +151,9 @@ public com.google.cloud.channel.v1.SkuGroupOrBuilder getSkuGroupsOrBuilder(int i * *
            * A token to retrieve the next page of results.
        -   * Pass to [ListSkuGroups.page_token][] to obtain that
        -   * page.
        +   * Pass to
        +   * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
        +   * to obtain that page.
            * 
        * * string next_page_token = 2; @@ -177,8 +178,9 @@ public java.lang.String getNextPageToken() { * *
            * A token to retrieve the next page of results.
        -   * Pass to [ListSkuGroups.page_token][] to obtain that
        -   * page.
        +   * Pass to
        +   * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
        +   * to obtain that page.
            * 
        * * string next_page_token = 2; @@ -985,8 +987,9 @@ public java.util.List getSkuGroups * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroups.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; @@ -1010,8 +1013,9 @@ public java.lang.String getNextPageToken() { * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroups.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; @@ -1035,8 +1039,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroups.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; @@ -1059,8 +1064,9 @@ public Builder setNextPageToken(java.lang.String value) { * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroups.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; @@ -1079,8 +1085,9 @@ public Builder clearNextPageToken() { * *
              * A token to retrieve the next page of results.
        -     * Pass to [ListSkuGroups.page_token][] to obtain that
        -     * page.
        +     * Pass to
        +     * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
        +     * to obtain that page.
              * 
        * * string next_page_token = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponseOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponseOrBuilder.java index 5fd9f6403ee3..0bb8a0ee0808 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponseOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSkuGroupsResponseOrBuilder.java @@ -85,8 +85,9 @@ public interface ListSkuGroupsResponseOrBuilder * *
            * A token to retrieve the next page of results.
        -   * Pass to [ListSkuGroups.page_token][] to obtain that
        -   * page.
        +   * Pass to
        +   * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
        +   * to obtain that page.
            * 
        * * string next_page_token = 2; @@ -100,8 +101,9 @@ public interface ListSkuGroupsResponseOrBuilder * *
            * A token to retrieve the next page of results.
        -   * Pass to [ListSkuGroups.page_token][] to obtain that
        -   * page.
        +   * Pass to
        +   * [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token]
        +   * to obtain that page.
            * 
        * * string next_page_token = 2; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequest.java index 9ad9244f2b1b..40847c89d62a 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequest.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequest.java @@ -42,6 +42,7 @@ private ListSubscribersRequest(com.google.protobuf.GeneratedMessageV3.Builder private ListSubscribersRequest() { account_ = ""; pageToken_ = ""; + integrator_ = ""; } @java.lang.Override @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.channel.v1.ListSubscribersRequest.Builder.class); } + private int bitField0_; public static final int ACCOUNT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -74,10 +76,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The account. */ @@ -98,10 +103,13 @@ public java.lang.String getAccount() { * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for account. */ @@ -201,6 +209,78 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int INTEGRATOR_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object integrator_ = ""; + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the integrator field is set. + */ + @java.lang.Override + public boolean hasIntegrator() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The integrator. + */ + @java.lang.Override + public java.lang.String getIntegrator() { + java.lang.Object ref = integrator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + integrator_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for integrator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIntegratorBytes() { + java.lang.Object ref = integrator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + integrator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -224,6 +304,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, integrator_); + } getUnknownFields().writeTo(output); } @@ -242,6 +325,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, integrator_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -261,6 +347,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAccount().equals(other.getAccount())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (hasIntegrator() != other.hasIntegrator()) return false; + if (hasIntegrator()) { + if (!getIntegrator().equals(other.getIntegrator())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -278,6 +368,10 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + if (hasIntegrator()) { + hash = (37 * hash) + INTEGRATOR_FIELD_NUMBER; + hash = (53 * hash) + getIntegrator().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -421,6 +515,7 @@ public Builder clear() { account_ = ""; pageSize_ = 0; pageToken_ = ""; + integrator_ = ""; return this; } @@ -466,6 +561,12 @@ private void buildPartial0(com.google.cloud.channel.v1.ListSubscribersRequest re if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.integrator_ = integrator_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -527,6 +628,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.ListSubscribersRequest othe bitField0_ |= 0x00000004; onChanged(); } + if (other.hasIntegrator()) { + integrator_ = other.integrator_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -571,6 +677,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + integrator_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -596,10 +708,13 @@ public Builder mergeFrom( * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The account. */ @@ -619,10 +734,13 @@ public java.lang.String getAccount() { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for account. */ @@ -642,10 +760,13 @@ public com.google.protobuf.ByteString getAccountBytes() { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The account to set. * @return This builder for chaining. @@ -664,10 +785,13 @@ public Builder setAccount(java.lang.String value) { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -682,10 +806,13 @@ public Builder clearAccount() { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for account to set. * @return This builder for chaining. @@ -897,6 +1024,138 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object integrator_ = ""; + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the integrator field is set. + */ + public boolean hasIntegrator() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The integrator. + */ + public java.lang.String getIntegrator() { + java.lang.Object ref = integrator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + integrator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for integrator. + */ + public com.google.protobuf.ByteString getIntegratorBytes() { + java.lang.Object ref = integrator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + integrator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The integrator to set. + * @return This builder for chaining. + */ + public Builder setIntegrator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + integrator_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIntegrator() { + integrator_ = getDefaultInstance().getIntegrator(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for integrator to set. + * @return This builder for chaining. + */ + public Builder setIntegratorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + integrator_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequestOrBuilder.java index f3d16463843e..cf96b03032ac 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequestOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ListSubscribersRequestOrBuilder.java @@ -28,10 +28,13 @@ public interface ListSubscribersRequestOrBuilder * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The account. */ @@ -41,10 +44,13 @@ public interface ListSubscribersRequestOrBuilder * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for account. */ @@ -99,4 +105,46 @@ public interface ListSubscribersRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the integrator field is set. + */ + boolean hasIntegrator(); + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The integrator. + */ + java.lang.String getIntegrator(); + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for integrator. + */ + com.google.protobuf.ByteString getIntegratorBytes(); } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java index 1f24b846b6ab..bae6716244f5 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/OffersProto.java @@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_channel_v1_Period_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_channel_v1_Period_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_channel_v1_DiscountComponent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_channel_v1_DiscountComponent_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -129,12 +133,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017PriceByResource\022<\n\r" + "resource_type\030\001 \001(\0162%.google.cloud.channel.v1.ResourceType\022-\n" + "\005price\030\002 \001(\0132\036.google.cloud.channel.v1.Price\0229\n" - + "\014price_phases\030\003 \003(\0132#.google.cloud.channel.v1.PricePhase\"\212\001\n" + + "\014price_phases\030\003 \003(\0132#.google.cloud.channel.v1.PricePhase\"\212\002\n" + "\005Price\022&\n\n" + "base_price\030\001 \001(\0132\022.google.type.Money\022\020\n" + "\010discount\030\002 \001(\001\022+\n" - + "\017effective_price\030\003 \001(\0132\022.google.type.Money\022\032\n" - + "\022external_price_uri\030\004 \001(\t\"\331\001\n\n" + + "\017effective_price\030\003 \001(\0132\022.google.type.Money\0225\n" + + "\014price_period\030\006 \001(\0132\037.google.cloud.channel.v1.Period\022\032\n" + + "\022external_price_uri\030\004 \001(\t\022G\n" + + "\023discount_components\030\005" + + " \003(\0132*.google.cloud.channel.v1.DiscountComponent\"\331\001\n\n" + "PricePhase\0228\n" + "\013period_type\030\001 \001(\0162#.google.cloud.channel.v1.PeriodType\022\024\n" + "\014first_period\030\002 \001(\005\022\023\n" @@ -142,12 +149,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005price\030\004 \001(\0132\036.google.cloud.channel.v1.Price\0227\n" + "\013price_tiers\030\005 \003(\0132\".google.cloud.channel.v1.PriceTier\"i\n" + "\tPriceTier\022\026\n" - + "\016first_resource\030\001 \001(\005\022\025\n\r" + + "\016first_resource\030\001 \001(\005\022\025\n" + + "\r" + "last_resource\030\002 \001(\005\022-\n" + "\005price\030\003 \001(\0132\036.google.cloud.channel.v1.Price\"T\n" + "\006Period\022\020\n" + "\010duration\030\001 \001(\005\0228\n" - + "\013period_type\030\002 \001(\0162#.google.cloud.channel.v1.PeriodType*m\n" + + "\013period_type\030\002 \001(\0162#.google.cloud.channel.v1.PeriodType\"\263\001\n" + + "\021DiscountComponent\022\035\n" + + "\023discount_percentage\030\003 \001(\001H\000\022/\n" + + "\021discount_absolute\030\004 \001(\0132\022.google.type.MoneyH\000\022<\n\r" + + "discount_type\030\002 \001(\0162%.google.cloud.channel.v1.DiscountTypeB\020\n" + + "\016discount_value*m\n" + "\024PromotionalOrderType\022 \n" + "\034PROMOTIONAL_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013NEW_UPGRADE\020\001\022\014\n" @@ -177,9 +190,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027PERIOD_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003DAY\020\001\022\t\n" + "\005MONTH\020\002\022\010\n" - + "\004YEAR\020\003Bc\n" - + "\033com.google.cloud.channel.v1B\013OffersProtoP\001Z5cloud.google.com/go/cha" - + "nnel/apiv1/channelpb;channelpbb\006proto3" + + "\004YEAR\020\003*\226\001\n" + + "\014DiscountType\022\035\n" + + "\031DISCOUNT_TYPE_UNSPECIFIED\020\000\022\025\n" + + "\021REGIONAL_DISCOUNT\020\001\022\030\n" + + "\024PROMOTIONAL_DISCOUNT\020\002\022\022\n" + + "\016SALES_DISCOUNT\020\003\022\023\n" + + "\017RESELLER_MARGIN\020\004\022\r\n" + + "\tDEAL_CODE\020\005Bc\n" + + "\033com.google.cloud.channel.v1B\013OffersProtoP\001Z5" + + "cloud.google.com/go/channel/apiv1/channelpb;channelpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -255,7 +275,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_channel_v1_Price_descriptor, new java.lang.String[] { - "BasePrice", "Discount", "EffectivePrice", "ExternalPriceUri", + "BasePrice", + "Discount", + "EffectivePrice", + "PricePeriod", + "ExternalPriceUri", + "DiscountComponents", }); internal_static_google_cloud_channel_v1_PricePhase_descriptor = getDescriptor().getMessageTypes().get(7); @@ -281,6 +306,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Duration", "PeriodType", }); + internal_static_google_cloud_channel_v1_DiscountComponent_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_channel_v1_DiscountComponent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_channel_v1_DiscountComponent_descriptor, + new java.lang.String[] { + "DiscountPercentage", "DiscountAbsolute", "DiscountType", "DiscountValue", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Price.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Price.java index ed74dd1b5240..d0650bef04cb 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Price.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/Price.java @@ -41,6 +41,7 @@ private Price(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Price() { externalPriceUri_ = ""; + discountComponents_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -183,6 +184,65 @@ public com.google.type.MoneyOrBuilder getEffectivePriceOrBuilder() { return effectivePrice_ == null ? com.google.type.Money.getDefaultInstance() : effectivePrice_; } + public static final int PRICE_PERIOD_FIELD_NUMBER = 6; + private com.google.cloud.channel.v1.Period pricePeriod_; + + /** + * + * + *
        +   * The time period with respect to which base and effective prices are
        +   * defined.
        +   * Example: 1 month, 6 months, 1 year, etc.
        +   * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + * + * @return Whether the pricePeriod field is set. + */ + @java.lang.Override + public boolean hasPricePeriod() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +   * The time period with respect to which base and effective prices are
        +   * defined.
        +   * Example: 1 month, 6 months, 1 year, etc.
        +   * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + * + * @return The pricePeriod. + */ + @java.lang.Override + public com.google.cloud.channel.v1.Period getPricePeriod() { + return pricePeriod_ == null + ? com.google.cloud.channel.v1.Period.getDefaultInstance() + : pricePeriod_; + } + + /** + * + * + *
        +   * The time period with respect to which base and effective prices are
        +   * defined.
        +   * Example: 1 month, 6 months, 1 year, etc.
        +   * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + */ + @java.lang.Override + public com.google.cloud.channel.v1.PeriodOrBuilder getPricePeriodOrBuilder() { + return pricePeriod_ == null + ? com.google.cloud.channel.v1.Period.getDefaultInstance() + : pricePeriod_; + } + public static final int EXTERNAL_PRICE_URI_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -236,6 +296,88 @@ public com.google.protobuf.ByteString getExternalPriceUriBytes() { } } + public static final int DISCOUNT_COMPONENTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List discountComponents_; + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + @java.lang.Override + public java.util.List getDiscountComponentsList() { + return discountComponents_; + } + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + @java.lang.Override + public java.util.List + getDiscountComponentsOrBuilderList() { + return discountComponents_; + } + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + @java.lang.Override + public int getDiscountComponentsCount() { + return discountComponents_.size(); + } + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + @java.lang.Override + public com.google.cloud.channel.v1.DiscountComponent getDiscountComponents(int index) { + return discountComponents_.get(index); + } + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + @java.lang.Override + public com.google.cloud.channel.v1.DiscountComponentOrBuilder getDiscountComponentsOrBuilder( + int index) { + return discountComponents_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -262,6 +404,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalPriceUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, externalPriceUri_); } + for (int i = 0; i < discountComponents_.size(); i++) { + output.writeMessage(5, discountComponents_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getPricePeriod()); + } getUnknownFields().writeTo(output); } @@ -283,6 +431,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(externalPriceUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, externalPriceUri_); } + for (int i = 0; i < discountComponents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, discountComponents_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPricePeriod()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -308,7 +463,12 @@ public boolean equals(final java.lang.Object obj) { if (hasEffectivePrice()) { if (!getEffectivePrice().equals(other.getEffectivePrice())) return false; } + if (hasPricePeriod() != other.hasPricePeriod()) return false; + if (hasPricePeriod()) { + if (!getPricePeriod().equals(other.getPricePeriod())) return false; + } if (!getExternalPriceUri().equals(other.getExternalPriceUri())) return false; + if (!getDiscountComponentsList().equals(other.getDiscountComponentsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -333,8 +493,16 @@ public int hashCode() { hash = (37 * hash) + EFFECTIVE_PRICE_FIELD_NUMBER; hash = (53 * hash) + getEffectivePrice().hashCode(); } + if (hasPricePeriod()) { + hash = (37 * hash) + PRICE_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getPricePeriod().hashCode(); + } hash = (37 * hash) + EXTERNAL_PRICE_URI_FIELD_NUMBER; hash = (53 * hash) + getExternalPriceUri().hashCode(); + if (getDiscountComponentsCount() > 0) { + hash = (37 * hash) + DISCOUNT_COMPONENTS_FIELD_NUMBER; + hash = (53 * hash) + getDiscountComponentsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -477,6 +645,8 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBasePriceFieldBuilder(); getEffectivePriceFieldBuilder(); + getPricePeriodFieldBuilder(); + getDiscountComponentsFieldBuilder(); } } @@ -495,7 +665,19 @@ public Builder clear() { effectivePriceBuilder_.dispose(); effectivePriceBuilder_ = null; } + pricePeriod_ = null; + if (pricePeriodBuilder_ != null) { + pricePeriodBuilder_.dispose(); + pricePeriodBuilder_ = null; + } externalPriceUri_ = ""; + if (discountComponentsBuilder_ == null) { + discountComponents_ = java.util.Collections.emptyList(); + } else { + discountComponents_ = null; + discountComponentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -522,6 +704,7 @@ public com.google.cloud.channel.v1.Price build() { @java.lang.Override public com.google.cloud.channel.v1.Price buildPartial() { com.google.cloud.channel.v1.Price result = new com.google.cloud.channel.v1.Price(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -529,6 +712,18 @@ public com.google.cloud.channel.v1.Price buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.channel.v1.Price result) { + if (discountComponentsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + discountComponents_ = java.util.Collections.unmodifiableList(discountComponents_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.discountComponents_ = discountComponents_; + } else { + result.discountComponents_ = discountComponentsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.channel.v1.Price result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; @@ -545,6 +740,11 @@ private void buildPartial0(com.google.cloud.channel.v1.Price result) { to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.pricePeriod_ = + pricePeriodBuilder_ == null ? pricePeriod_ : pricePeriodBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.externalPriceUri_ = externalPriceUri_; } result.bitField0_ |= to_bitField0_; @@ -604,11 +804,41 @@ public Builder mergeFrom(com.google.cloud.channel.v1.Price other) { if (other.hasEffectivePrice()) { mergeEffectivePrice(other.getEffectivePrice()); } + if (other.hasPricePeriod()) { + mergePricePeriod(other.getPricePeriod()); + } if (!other.getExternalPriceUri().isEmpty()) { externalPriceUri_ = other.externalPriceUri_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } + if (discountComponentsBuilder_ == null) { + if (!other.discountComponents_.isEmpty()) { + if (discountComponents_.isEmpty()) { + discountComponents_ = other.discountComponents_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureDiscountComponentsIsMutable(); + discountComponents_.addAll(other.discountComponents_); + } + onChanged(); + } + } else { + if (!other.discountComponents_.isEmpty()) { + if (discountComponentsBuilder_.isEmpty()) { + discountComponentsBuilder_.dispose(); + discountComponentsBuilder_ = null; + discountComponents_ = other.discountComponents_; + bitField0_ = (bitField0_ & ~0x00000020); + discountComponentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDiscountComponentsFieldBuilder() + : null; + } else { + discountComponentsBuilder_.addAllMessages(other.discountComponents_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -656,9 +886,28 @@ public Builder mergeFrom( case 34: { externalPriceUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 + case 42: + { + com.google.cloud.channel.v1.DiscountComponent m = + input.readMessage( + com.google.cloud.channel.v1.DiscountComponent.parser(), extensionRegistry); + if (discountComponentsBuilder_ == null) { + ensureDiscountComponentsIsMutable(); + discountComponents_.add(m); + } else { + discountComponentsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getPricePeriodFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1112,6 +1361,218 @@ public com.google.type.MoneyOrBuilder getEffectivePriceOrBuilder() { return effectivePriceBuilder_; } + private com.google.cloud.channel.v1.Period pricePeriod_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.channel.v1.Period, + com.google.cloud.channel.v1.Period.Builder, + com.google.cloud.channel.v1.PeriodOrBuilder> + pricePeriodBuilder_; + + /** + * + * + *
        +     * The time period with respect to which base and effective prices are
        +     * defined.
        +     * Example: 1 month, 6 months, 1 year, etc.
        +     * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + * + * @return Whether the pricePeriod field is set. + */ + public boolean hasPricePeriod() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +     * The time period with respect to which base and effective prices are
        +     * defined.
        +     * Example: 1 month, 6 months, 1 year, etc.
        +     * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + * + * @return The pricePeriod. + */ + public com.google.cloud.channel.v1.Period getPricePeriod() { + if (pricePeriodBuilder_ == null) { + return pricePeriod_ == null + ? com.google.cloud.channel.v1.Period.getDefaultInstance() + : pricePeriod_; + } else { + return pricePeriodBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * The time period with respect to which base and effective prices are
        +     * defined.
        +     * Example: 1 month, 6 months, 1 year, etc.
        +     * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + */ + public Builder setPricePeriod(com.google.cloud.channel.v1.Period value) { + if (pricePeriodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pricePeriod_ = value; + } else { + pricePeriodBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The time period with respect to which base and effective prices are
        +     * defined.
        +     * Example: 1 month, 6 months, 1 year, etc.
        +     * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + */ + public Builder setPricePeriod(com.google.cloud.channel.v1.Period.Builder builderForValue) { + if (pricePeriodBuilder_ == null) { + pricePeriod_ = builderForValue.build(); + } else { + pricePeriodBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * The time period with respect to which base and effective prices are
        +     * defined.
        +     * Example: 1 month, 6 months, 1 year, etc.
        +     * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + */ + public Builder mergePricePeriod(com.google.cloud.channel.v1.Period value) { + if (pricePeriodBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && pricePeriod_ != null + && pricePeriod_ != com.google.cloud.channel.v1.Period.getDefaultInstance()) { + getPricePeriodBuilder().mergeFrom(value); + } else { + pricePeriod_ = value; + } + } else { + pricePeriodBuilder_.mergeFrom(value); + } + if (pricePeriod_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * The time period with respect to which base and effective prices are
        +     * defined.
        +     * Example: 1 month, 6 months, 1 year, etc.
        +     * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + */ + public Builder clearPricePeriod() { + bitField0_ = (bitField0_ & ~0x00000008); + pricePeriod_ = null; + if (pricePeriodBuilder_ != null) { + pricePeriodBuilder_.dispose(); + pricePeriodBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * The time period with respect to which base and effective prices are
        +     * defined.
        +     * Example: 1 month, 6 months, 1 year, etc.
        +     * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + */ + public com.google.cloud.channel.v1.Period.Builder getPricePeriodBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPricePeriodFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * The time period with respect to which base and effective prices are
        +     * defined.
        +     * Example: 1 month, 6 months, 1 year, etc.
        +     * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + */ + public com.google.cloud.channel.v1.PeriodOrBuilder getPricePeriodOrBuilder() { + if (pricePeriodBuilder_ != null) { + return pricePeriodBuilder_.getMessageOrBuilder(); + } else { + return pricePeriod_ == null + ? com.google.cloud.channel.v1.Period.getDefaultInstance() + : pricePeriod_; + } + } + + /** + * + * + *
        +     * The time period with respect to which base and effective prices are
        +     * defined.
        +     * Example: 1 month, 6 months, 1 year, etc.
        +     * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.channel.v1.Period, + com.google.cloud.channel.v1.Period.Builder, + com.google.cloud.channel.v1.PeriodOrBuilder> + getPricePeriodFieldBuilder() { + if (pricePeriodBuilder_ == null) { + pricePeriodBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.channel.v1.Period, + com.google.cloud.channel.v1.Period.Builder, + com.google.cloud.channel.v1.PeriodOrBuilder>( + getPricePeriod(), getParentForChildren(), isClean()); + pricePeriod_ = null; + } + return pricePeriodBuilder_; + } + private java.lang.Object externalPriceUri_ = ""; /** @@ -1177,7 +1638,7 @@ public Builder setExternalPriceUri(java.lang.String value) { throw new NullPointerException(); } externalPriceUri_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1195,7 +1656,7 @@ public Builder setExternalPriceUri(java.lang.String value) { */ public Builder clearExternalPriceUri() { externalPriceUri_ = getDefaultInstance().getExternalPriceUri(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1218,11 +1679,407 @@ public Builder setExternalPriceUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); externalPriceUri_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } + private java.util.List discountComponents_ = + java.util.Collections.emptyList(); + + private void ensureDiscountComponentsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + discountComponents_ = + new java.util.ArrayList( + discountComponents_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.channel.v1.DiscountComponent, + com.google.cloud.channel.v1.DiscountComponent.Builder, + com.google.cloud.channel.v1.DiscountComponentOrBuilder> + discountComponentsBuilder_; + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public java.util.List + getDiscountComponentsList() { + if (discountComponentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(discountComponents_); + } else { + return discountComponentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public int getDiscountComponentsCount() { + if (discountComponentsBuilder_ == null) { + return discountComponents_.size(); + } else { + return discountComponentsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public com.google.cloud.channel.v1.DiscountComponent getDiscountComponents(int index) { + if (discountComponentsBuilder_ == null) { + return discountComponents_.get(index); + } else { + return discountComponentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public Builder setDiscountComponents( + int index, com.google.cloud.channel.v1.DiscountComponent value) { + if (discountComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscountComponentsIsMutable(); + discountComponents_.set(index, value); + onChanged(); + } else { + discountComponentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public Builder setDiscountComponents( + int index, com.google.cloud.channel.v1.DiscountComponent.Builder builderForValue) { + if (discountComponentsBuilder_ == null) { + ensureDiscountComponentsIsMutable(); + discountComponents_.set(index, builderForValue.build()); + onChanged(); + } else { + discountComponentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public Builder addDiscountComponents(com.google.cloud.channel.v1.DiscountComponent value) { + if (discountComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscountComponentsIsMutable(); + discountComponents_.add(value); + onChanged(); + } else { + discountComponentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public Builder addDiscountComponents( + int index, com.google.cloud.channel.v1.DiscountComponent value) { + if (discountComponentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDiscountComponentsIsMutable(); + discountComponents_.add(index, value); + onChanged(); + } else { + discountComponentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public Builder addDiscountComponents( + com.google.cloud.channel.v1.DiscountComponent.Builder builderForValue) { + if (discountComponentsBuilder_ == null) { + ensureDiscountComponentsIsMutable(); + discountComponents_.add(builderForValue.build()); + onChanged(); + } else { + discountComponentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public Builder addDiscountComponents( + int index, com.google.cloud.channel.v1.DiscountComponent.Builder builderForValue) { + if (discountComponentsBuilder_ == null) { + ensureDiscountComponentsIsMutable(); + discountComponents_.add(index, builderForValue.build()); + onChanged(); + } else { + discountComponentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public Builder addAllDiscountComponents( + java.lang.Iterable values) { + if (discountComponentsBuilder_ == null) { + ensureDiscountComponentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, discountComponents_); + onChanged(); + } else { + discountComponentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public Builder clearDiscountComponents() { + if (discountComponentsBuilder_ == null) { + discountComponents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + discountComponentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public Builder removeDiscountComponents(int index) { + if (discountComponentsBuilder_ == null) { + ensureDiscountComponentsIsMutable(); + discountComponents_.remove(index); + onChanged(); + } else { + discountComponentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public com.google.cloud.channel.v1.DiscountComponent.Builder getDiscountComponentsBuilder( + int index) { + return getDiscountComponentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public com.google.cloud.channel.v1.DiscountComponentOrBuilder getDiscountComponentsOrBuilder( + int index) { + if (discountComponentsBuilder_ == null) { + return discountComponents_.get(index); + } else { + return discountComponentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public java.util.List + getDiscountComponentsOrBuilderList() { + if (discountComponentsBuilder_ != null) { + return discountComponentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(discountComponents_); + } + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public com.google.cloud.channel.v1.DiscountComponent.Builder addDiscountComponentsBuilder() { + return getDiscountComponentsFieldBuilder() + .addBuilder(com.google.cloud.channel.v1.DiscountComponent.getDefaultInstance()); + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public com.google.cloud.channel.v1.DiscountComponent.Builder addDiscountComponentsBuilder( + int index) { + return getDiscountComponentsFieldBuilder() + .addBuilder(index, com.google.cloud.channel.v1.DiscountComponent.getDefaultInstance()); + } + + /** + * + * + *
        +     * Breakdown of the discount into its components.
        +     * This will be empty if there is no discount present.
        +     * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + public java.util.List + getDiscountComponentsBuilderList() { + return getDiscountComponentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.channel.v1.DiscountComponent, + com.google.cloud.channel.v1.DiscountComponent.Builder, + com.google.cloud.channel.v1.DiscountComponentOrBuilder> + getDiscountComponentsFieldBuilder() { + if (discountComponentsBuilder_ == null) { + discountComponentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.channel.v1.DiscountComponent, + com.google.cloud.channel.v1.DiscountComponent.Builder, + com.google.cloud.channel.v1.DiscountComponentOrBuilder>( + discountComponents_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + discountComponents_ = null; + } + return discountComponentsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PriceOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PriceOrBuilder.java index 0a95116fb7fb..a8824e89ccaa 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PriceOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PriceOrBuilder.java @@ -112,6 +112,49 @@ public interface PriceOrBuilder */ com.google.type.MoneyOrBuilder getEffectivePriceOrBuilder(); + /** + * + * + *
        +   * The time period with respect to which base and effective prices are
        +   * defined.
        +   * Example: 1 month, 6 months, 1 year, etc.
        +   * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + * + * @return Whether the pricePeriod field is set. + */ + boolean hasPricePeriod(); + + /** + * + * + *
        +   * The time period with respect to which base and effective prices are
        +   * defined.
        +   * Example: 1 month, 6 months, 1 year, etc.
        +   * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + * + * @return The pricePeriod. + */ + com.google.cloud.channel.v1.Period getPricePeriod(); + + /** + * + * + *
        +   * The time period with respect to which base and effective prices are
        +   * defined.
        +   * Example: 1 month, 6 months, 1 year, etc.
        +   * 
        + * + * .google.cloud.channel.v1.Period price_period = 6; + */ + com.google.cloud.channel.v1.PeriodOrBuilder getPricePeriodOrBuilder(); + /** * * @@ -137,4 +180,65 @@ public interface PriceOrBuilder * @return The bytes for externalPriceUri. */ com.google.protobuf.ByteString getExternalPriceUriBytes(); + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + java.util.List getDiscountComponentsList(); + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + com.google.cloud.channel.v1.DiscountComponent getDiscountComponents(int index); + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + int getDiscountComponentsCount(); + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + java.util.List + getDiscountComponentsOrBuilderList(); + + /** + * + * + *
        +   * Breakdown of the discount into its components.
        +   * This will be empty if there is no discount present.
        +   * 
        + * + * repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; + */ + com.google.cloud.channel.v1.DiscountComponentOrBuilder getDiscountComponentsOrBuilder(int index); } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOffer.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOffer.java index 7f990e732c3b..bff8b12ef2eb 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOffer.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOffer.java @@ -40,7 +40,9 @@ private PurchasableOffer(com.google.protobuf.GeneratedMessageV3.Builder build super(builder); } - private PurchasableOffer() {} + private PurchasableOffer() { + priceReferenceId_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -113,6 +115,63 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder() { return offer_ == null ? com.google.cloud.channel.v1.Offer.getDefaultInstance() : offer_; } + public static final int PRICE_REFERENCE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object priceReferenceId_ = ""; + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + @java.lang.Override + public java.lang.String getPriceReferenceId() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + priceReferenceId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPriceReferenceIdBytes() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + priceReferenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -130,6 +189,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOffer()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, priceReferenceId_); + } getUnknownFields().writeTo(output); } @@ -142,6 +204,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOffer()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, priceReferenceId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -162,6 +227,7 @@ public boolean equals(final java.lang.Object obj) { if (hasOffer()) { if (!getOffer().equals(other.getOffer())) return false; } + if (!getPriceReferenceId().equals(other.getPriceReferenceId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,6 +243,8 @@ public int hashCode() { hash = (37 * hash) + OFFER_FIELD_NUMBER; hash = (53 * hash) + getOffer().hashCode(); } + hash = (37 * hash) + PRICE_REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPriceReferenceId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -332,6 +400,7 @@ public Builder clear() { offerBuilder_.dispose(); offerBuilder_ = null; } + priceReferenceId_ = ""; return this; } @@ -373,6 +442,9 @@ private void buildPartial0(com.google.cloud.channel.v1.PurchasableOffer result) result.offer_ = offerBuilder_ == null ? offer_ : offerBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.priceReferenceId_ = priceReferenceId_; + } result.bitField0_ |= to_bitField0_; } @@ -424,6 +496,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.PurchasableOffer other) { if (other.hasOffer()) { mergeOffer(other.getOffer()); } + if (!other.getPriceReferenceId().isEmpty()) { + priceReferenceId_ = other.priceReferenceId_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -456,6 +533,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + priceReferenceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -665,6 +748,127 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder() { return offerBuilder_; } + private java.lang.Object priceReferenceId_ = ""; + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + public java.lang.String getPriceReferenceId() { + java.lang.Object ref = priceReferenceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + priceReferenceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + public com.google.protobuf.ByteString getPriceReferenceIdBytes() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + priceReferenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The priceReferenceId to set. + * @return This builder for chaining. + */ + public Builder setPriceReferenceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + priceReferenceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPriceReferenceId() { + priceReferenceId_ = getDefaultInstance().getPriceReferenceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for priceReferenceId to set. + * @return This builder for chaining. + */ + public Builder setPriceReferenceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + priceReferenceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOfferOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOfferOrBuilder.java index 8a05b280b8eb..af9a3d959cf9 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOfferOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/PurchasableOfferOrBuilder.java @@ -60,4 +60,34 @@ public interface PurchasableOfferOrBuilder * .google.cloud.channel.v1.Offer offer = 1; */ com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder(); + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + java.lang.String getPriceReferenceId(); + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + com.google.protobuf.ByteString getPriceReferenceIdBytes(); } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequest.java index 5279ac40fcf7..e38d47f7b136 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequest.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequest.java @@ -42,6 +42,7 @@ private RegisterSubscriberRequest(com.google.protobuf.GeneratedMessageV3.Builder private RegisterSubscriberRequest() { account_ = ""; serviceAccount_ = ""; + integrator_ = ""; } @java.lang.Override @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.channel.v1.RegisterSubscriberRequest.Builder.class); } + private int bitField0_; public static final int ACCOUNT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -74,10 +76,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The account. */ @@ -98,10 +103,13 @@ public java.lang.String getAccount() { * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for account. */ @@ -173,6 +181,78 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int INTEGRATOR_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object integrator_ = ""; + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the integrator field is set. + */ + @java.lang.Override + public boolean hasIntegrator() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The integrator. + */ + @java.lang.Override + public java.lang.String getIntegrator() { + java.lang.Object ref = integrator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + integrator_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for integrator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIntegratorBytes() { + java.lang.Object ref = integrator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + integrator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -193,6 +273,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, integrator_); + } getUnknownFields().writeTo(output); } @@ -208,6 +291,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, integrator_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -226,6 +312,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAccount().equals(other.getAccount())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasIntegrator() != other.hasIntegrator()) return false; + if (hasIntegrator()) { + if (!getIntegrator().equals(other.getIntegrator())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,6 +331,10 @@ public int hashCode() { hash = (53 * hash) + getAccount().hashCode(); hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasIntegrator()) { + hash = (37 * hash) + INTEGRATOR_FIELD_NUMBER; + hash = (53 * hash) + getIntegrator().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -384,6 +478,7 @@ public Builder clear() { bitField0_ = 0; account_ = ""; serviceAccount_ = ""; + integrator_ = ""; return this; } @@ -426,6 +521,12 @@ private void buildPartial0(com.google.cloud.channel.v1.RegisterSubscriberRequest if (((from_bitField0_ & 0x00000002) != 0)) { result.serviceAccount_ = serviceAccount_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.integrator_ = integrator_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -484,6 +585,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.RegisterSubscriberRequest o bitField0_ |= 0x00000002; onChanged(); } + if (other.hasIntegrator()) { + integrator_ = other.integrator_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -522,6 +628,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + integrator_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -547,10 +659,13 @@ public Builder mergeFrom( * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The account. */ @@ -570,10 +685,13 @@ public java.lang.String getAccount() { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for account. */ @@ -593,10 +711,13 @@ public com.google.protobuf.ByteString getAccountBytes() { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The account to set. * @return This builder for chaining. @@ -615,10 +736,13 @@ public Builder setAccount(java.lang.String value) { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -633,10 +757,13 @@ public Builder clearAccount() { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for account to set. * @return This builder for chaining. @@ -768,6 +895,138 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object integrator_ = ""; + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the integrator field is set. + */ + public boolean hasIntegrator() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The integrator. + */ + public java.lang.String getIntegrator() { + java.lang.Object ref = integrator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + integrator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for integrator. + */ + public com.google.protobuf.ByteString getIntegratorBytes() { + java.lang.Object ref = integrator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + integrator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The integrator to set. + * @return This builder for chaining. + */ + public Builder setIntegrator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + integrator_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIntegrator() { + integrator_ = getDefaultInstance().getIntegrator(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for integrator to set. + * @return This builder for chaining. + */ + public Builder setIntegratorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + integrator_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequestOrBuilder.java index 5bf243079b7d..a59994952e90 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequestOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RegisterSubscriberRequestOrBuilder.java @@ -28,10 +28,13 @@ public interface RegisterSubscriberRequestOrBuilder * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The account. */ @@ -41,10 +44,13 @@ public interface RegisterSubscriberRequestOrBuilder * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for account. */ @@ -77,4 +83,46 @@ public interface RegisterSubscriberRequestOrBuilder * @return The bytes for serviceAccount. */ com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the integrator field is set. + */ + boolean hasIntegrator(); + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The integrator. + */ + java.lang.String getIntegrator(); + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for integrator. + */ + com.google.protobuf.ByteString getIntegratorBytes(); } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java index 34e71f4c8f3e..cef43dd870e0 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfig.java @@ -1257,7 +1257,7 @@ public GranularityCase getGranularityCase() { * * *
        -   * Applies the repricing configuration at the entitlement level.
        +   * Required. Applies the repricing configuration at the entitlement level.
            *
            * Note: If a
            * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -1274,7 +1274,7 @@ public GranularityCase getGranularityCase() {
            * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the entitlementGranularity field is set. @@ -1288,7 +1288,7 @@ public boolean hasEntitlementGranularity() { * * *
        -   * Applies the repricing configuration at the entitlement level.
        +   * Required. Applies the repricing configuration at the entitlement level.
            *
            * Note: If a
            * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -1305,7 +1305,7 @@ public boolean hasEntitlementGranularity() {
            * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return The entitlementGranularity. @@ -1323,7 +1323,7 @@ public boolean hasEntitlementGranularity() { * * *
        -   * Applies the repricing configuration at the entitlement level.
        +   * Required. Applies the repricing configuration at the entitlement level.
            *
            * Note: If a
            * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -1340,7 +1340,7 @@ public boolean hasEntitlementGranularity() {
            * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -1371,7 +1371,7 @@ public boolean hasEntitlementGranularity() { * * * @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated. - * See google/cloud/channel/v1/repricing.proto;l=139 + * See google/cloud/channel/v1/repricing.proto;l=140 * @return Whether the channelPartnerGranularity field is set. */ @java.lang.Override @@ -1397,7 +1397,7 @@ public boolean hasChannelPartnerGranularity() { * * * @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated. - * See google/cloud/channel/v1/repricing.proto;l=139 + * See google/cloud/channel/v1/repricing.proto;l=140 * @return The channelPartnerGranularity. */ @java.lang.Override @@ -2303,7 +2303,7 @@ public Builder clearGranularity() { * * *
        -     * Applies the repricing configuration at the entitlement level.
        +     * Required. Applies the repricing configuration at the entitlement level.
              *
              * Note: If a
              * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -2320,7 +2320,7 @@ public Builder clearGranularity() {
              * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the entitlementGranularity field is set. @@ -2334,7 +2334,7 @@ public boolean hasEntitlementGranularity() { * * *
        -     * Applies the repricing configuration at the entitlement level.
        +     * Required. Applies the repricing configuration at the entitlement level.
              *
              * Note: If a
              * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -2351,7 +2351,7 @@ public boolean hasEntitlementGranularity() {
              * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return The entitlementGranularity. @@ -2378,7 +2378,7 @@ public boolean hasEntitlementGranularity() { * * *
        -     * Applies the repricing configuration at the entitlement level.
        +     * Required. Applies the repricing configuration at the entitlement level.
              *
              * Note: If a
              * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -2395,7 +2395,7 @@ public boolean hasEntitlementGranularity() {
              * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setEntitlementGranularity( @@ -2417,7 +2417,7 @@ public Builder setEntitlementGranularity( * * *
        -     * Applies the repricing configuration at the entitlement level.
        +     * Required. Applies the repricing configuration at the entitlement level.
              *
              * Note: If a
              * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -2434,7 +2434,7 @@ public Builder setEntitlementGranularity(
              * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setEntitlementGranularity( @@ -2454,7 +2454,7 @@ public Builder setEntitlementGranularity( * * *
        -     * Applies the repricing configuration at the entitlement level.
        +     * Required. Applies the repricing configuration at the entitlement level.
              *
              * Note: If a
              * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -2471,7 +2471,7 @@ public Builder setEntitlementGranularity(
              * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder mergeEntitlementGranularity( @@ -2506,7 +2506,7 @@ public Builder mergeEntitlementGranularity( * * *
        -     * Applies the repricing configuration at the entitlement level.
        +     * Required. Applies the repricing configuration at the entitlement level.
              *
              * Note: If a
              * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -2523,7 +2523,7 @@ public Builder mergeEntitlementGranularity(
              * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearEntitlementGranularity() { @@ -2547,7 +2547,7 @@ public Builder clearEntitlementGranularity() { * * *
        -     * Applies the repricing configuration at the entitlement level.
        +     * Required. Applies the repricing configuration at the entitlement level.
              *
              * Note: If a
              * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -2564,7 +2564,7 @@ public Builder clearEntitlementGranularity() {
              * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.cloud.channel.v1.RepricingConfig.EntitlementGranularity.Builder @@ -2576,7 +2576,7 @@ public Builder clearEntitlementGranularity() { * * *
        -     * Applies the repricing configuration at the entitlement level.
        +     * Required. Applies the repricing configuration at the entitlement level.
              *
              * Note: If a
              * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -2593,7 +2593,7 @@ public Builder clearEntitlementGranularity() {
              * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override @@ -2614,7 +2614,7 @@ public Builder clearEntitlementGranularity() { * * *
        -     * Applies the repricing configuration at the entitlement level.
        +     * Required. Applies the repricing configuration at the entitlement level.
              *
              * Note: If a
              * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -2631,7 +2631,7 @@ public Builder clearEntitlementGranularity() {
              * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< @@ -2683,7 +2683,7 @@ public Builder clearEntitlementGranularity() { * * * @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is - * deprecated. See google/cloud/channel/v1/repricing.proto;l=139 + * deprecated. See google/cloud/channel/v1/repricing.proto;l=140 * @return Whether the channelPartnerGranularity field is set. */ @java.lang.Override @@ -2709,7 +2709,7 @@ public boolean hasChannelPartnerGranularity() { * * * @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is - * deprecated. See google/cloud/channel/v1/repricing.proto;l=139 + * deprecated. See google/cloud/channel/v1/repricing.proto;l=140 * @return The channelPartnerGranularity. */ @java.lang.Override diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java index 20d0e7cf6502..373512788160 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingConfigOrBuilder.java @@ -28,7 +28,7 @@ public interface RepricingConfigOrBuilder * * *
        -   * Applies the repricing configuration at the entitlement level.
        +   * Required. Applies the repricing configuration at the entitlement level.
            *
            * Note: If a
            * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -45,7 +45,7 @@ public interface RepricingConfigOrBuilder
            * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return Whether the entitlementGranularity field is set. @@ -56,7 +56,7 @@ public interface RepricingConfigOrBuilder * * *
        -   * Applies the repricing configuration at the entitlement level.
        +   * Required. Applies the repricing configuration at the entitlement level.
            *
            * Note: If a
            * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -73,7 +73,7 @@ public interface RepricingConfigOrBuilder
            * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * * * @return The entitlementGranularity. @@ -84,7 +84,7 @@ public interface RepricingConfigOrBuilder * * *
        -   * Applies the repricing configuration at the entitlement level.
        +   * Required. Applies the repricing configuration at the entitlement level.
            *
            * Note: If a
            * [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]
        @@ -101,7 +101,7 @@ public interface RepricingConfigOrBuilder
            * 
        * * - * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4; + * .google.cloud.channel.v1.RepricingConfig.EntitlementGranularity entitlement_granularity = 4 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.cloud.channel.v1.RepricingConfig.EntitlementGranularityOrBuilder @@ -124,7 +124,7 @@ public interface RepricingConfigOrBuilder * * * @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated. - * See google/cloud/channel/v1/repricing.proto;l=139 + * See google/cloud/channel/v1/repricing.proto;l=140 * @return Whether the channelPartnerGranularity field is set. */ @java.lang.Deprecated @@ -147,7 +147,7 @@ public interface RepricingConfigOrBuilder * * * @deprecated google.cloud.channel.v1.RepricingConfig.channel_partner_granularity is deprecated. - * See google/cloud/channel/v1/repricing.proto;l=139 + * See google/cloud/channel/v1/repricing.proto;l=140 * @return The channelPartnerGranularity. */ @java.lang.Deprecated diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingProto.java index c52d0a3f3490..e2053c468ef9 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingProto.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/RepricingProto.java @@ -99,43 +99,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "elPartnerRepricingConfig\022zaccounts/{acco" + "unt}/channelPartnerLinks/{channel_partne" + "r}/channelPartnerRepricingConfigs/{chann" - + "el_partner_repricing_config}\"\205\005\n\017Reprici" - + "ngConfig\022b\n\027entitlement_granularity\030\004 \001(" + + "el_partner_repricing_config}\"\212\005\n\017Reprici" + + "ngConfig\022g\n\027entitlement_granularity\030\004 \001(" + "\0132?.google.cloud.channel.v1.RepricingCon" - + "fig.EntitlementGranularityH\000\022m\n\033channel_" - + "partner_granularity\030\005 \001(\0132B.google.cloud" - + ".channel.v1.RepricingConfig.ChannelPartn" - + "erGranularityB\002\030\001H\000\0227\n\027effective_invoice" - + "_month\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022E\n\n" - + "adjustment\030\002 \001(\0132,.google.cloud.channel." - + "v1.RepricingAdjustmentB\003\340A\002\022E\n\017rebilling" - + "_basis\030\003 \001(\0162\'.google.cloud.channel.v1.R" - + "ebillingBasisB\003\340A\002\022K\n\025conditional_overri" - + "des\030\006 \003(\0132,.google.cloud.channel.v1.Cond" - + "itionalOverride\032[\n\026EntitlementGranularit" - + "y\022A\n\013entitlement\030\001 \001(\tB,\372A)\n\'cloudchanne" - + "l.googleapis.com/Entitlement\032\037\n\031ChannelP" - + "artnerGranularity:\002\030\001B\r\n\013granularity\"s\n\023" - + "RepricingAdjustment\022N\n\025percentage_adjust" - + "ment\030\002 \001(\0132-.google.cloud.channel.v1.Per" - + "centageAdjustmentH\000B\014\n\nadjustment\"@\n\024Per" - + "centageAdjustment\022(\n\npercentage\030\002 \001(\0132\024." - + "google.type.Decimal\"\362\001\n\023ConditionalOverr" - + "ide\022E\n\nadjustment\030\001 \001(\0132,.google.cloud.c" - + "hannel.v1.RepricingAdjustmentB\003\340A\002\022E\n\017re" - + "billing_basis\030\002 \001(\0162\'.google.cloud.chann" - + "el.v1.RebillingBasisB\003\340A\002\022M\n\023repricing_c" - + "ondition\030\003 \001(\0132+.google.cloud.channel.v1" - + ".RepricingConditionB\003\340A\002\"l\n\022RepricingCon" - + "dition\022I\n\023sku_group_condition\030\001 \001(\0132*.go" - + "ogle.cloud.channel.v1.SkuGroupConditionH" - + "\000B\013\n\tcondition\"&\n\021SkuGroupCondition\022\021\n\ts" - + "ku_group\030\001 \001(\t*]\n\016RebillingBasis\022\037\n\033REBI" - + "LLING_BASIS_UNSPECIFIED\020\000\022\020\n\014COST_AT_LIS" - + "T\020\001\022\030\n\024DIRECT_CUSTOMER_COST\020\002Bf\n\033com.goo" - + "gle.cloud.channel.v1B\016RepricingProtoP\001Z5" - + "cloud.google.com/go/channel/apiv1/channe" - + "lpb;channelpbb\006proto3" + + "fig.EntitlementGranularityB\003\340A\002H\000\022m\n\033cha" + + "nnel_partner_granularity\030\005 \001(\0132B.google." + + "cloud.channel.v1.RepricingConfig.Channel" + + "PartnerGranularityB\002\030\001H\000\0227\n\027effective_in" + + "voice_month\030\001 \001(\0132\021.google.type.DateB\003\340A" + + "\002\022E\n\nadjustment\030\002 \001(\0132,.google.cloud.cha" + + "nnel.v1.RepricingAdjustmentB\003\340A\002\022E\n\017rebi" + + "lling_basis\030\003 \001(\0162\'.google.cloud.channel" + + ".v1.RebillingBasisB\003\340A\002\022K\n\025conditional_o" + + "verrides\030\006 \003(\0132,.google.cloud.channel.v1" + + ".ConditionalOverride\032[\n\026EntitlementGranu" + + "larity\022A\n\013entitlement\030\001 \001(\tB,\372A)\n\'cloudc" + + "hannel.googleapis.com/Entitlement\032\037\n\031Cha" + + "nnelPartnerGranularity:\002\030\001B\r\n\013granularit" + + "y\"s\n\023RepricingAdjustment\022N\n\025percentage_a" + + "djustment\030\002 \001(\0132-.google.cloud.channel.v" + + "1.PercentageAdjustmentH\000B\014\n\nadjustment\"@" + + "\n\024PercentageAdjustment\022(\n\npercentage\030\002 \001" + + "(\0132\024.google.type.Decimal\"\362\001\n\023Conditional" + + "Override\022E\n\nadjustment\030\001 \001(\0132,.google.cl" + + "oud.channel.v1.RepricingAdjustmentB\003\340A\002\022" + + "E\n\017rebilling_basis\030\002 \001(\0162\'.google.cloud." + + "channel.v1.RebillingBasisB\003\340A\002\022M\n\023repric" + + "ing_condition\030\003 \001(\0132+.google.cloud.chann" + + "el.v1.RepricingConditionB\003\340A\002\"l\n\022Reprici" + + "ngCondition\022I\n\023sku_group_condition\030\001 \001(\013" + + "2*.google.cloud.channel.v1.SkuGroupCondi" + + "tionH\000B\013\n\tcondition\"&\n\021SkuGroupCondition" + + "\022\021\n\tsku_group\030\001 \001(\t*]\n\016RebillingBasis\022\037\n" + + "\033REBILLING_BASIS_UNSPECIFIED\020\000\022\020\n\014COST_A" + + "T_LIST\020\001\022\030\n\024DIRECT_CUSTOMER_COST\020\002Bf\n\033co" + + "m.google.cloud.channel.v1B\016RepricingProt" + + "oP\001Z5cloud.google.com/go/channel/apiv1/c" + + "hannelpb;channelpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java index 56abdced3ab0..b53f96b5751c 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/ServiceProto.java @@ -468,9 +468,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036ListTransferableOffersResponse\022G\n" + "\023transferable_offers\030\001 " + "\003(\0132*.google.cloud.channel.v1.TransferableOffer\022\027\n" - + "\017next_page_token\030\002 \001(\t\"B\n" + + "\017next_page_token\030\002 \001(\t\"c\n" + "\021TransferableOffer\022-\n" - + "\005offer\030\001 \001(\0132\036.google.cloud.channel.v1.Offer\"V\n" + + "\005offer\030\001 \001(\0132\036.google.cloud.channel.v1.Offer\022\037\n" + + "\022price_reference_id\030\002 \001(\tB\003\340A\001\"V\n" + "\025GetEntitlementRequest\022=\n" + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + "\'cloudchannel.googleapis.com/Entitlement\"\252\001\n" @@ -478,24 +479,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB\003\340A\002\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022B\n" - + "\004view\030\004 \001(\0162/.google.clo" - + "ud.channel.v1.ChannelPartnerLinkViewB\003\340A\001\"\206\001\n" + + "\004view\030\004" + + " \001(\0162/.google.cloud.channel.v1.ChannelPartnerLinkViewB\003\340A\001\"\206\001\n" + "\037ListChannelPartnerLinksResponse\022J\n" + "\025channel_partner_links\030\001" + " \003(\0132+.google.cloud.channel.v1.ChannelPartnerLink\022\027\n" + "\017next_page_token\030\002 \001(\t\"u\n" + "\034GetChannelPartnerLinkRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022B\n" - + "\004view\030\002 " - + "\001(\0162/.google.cloud.channel.v1.ChannelPartnerLinkViewB\003\340A\001\"\206\001\n" + + "\004view\030\002 \001(\0162/.g" + + "oogle.cloud.channel.v1.ChannelPartnerLinkViewB\003\340A\001\"\206\001\n" + "\037CreateChannelPartnerLinkRequest\022\023\n" + "\006parent\030\001 \001(\tB\003\340A\002\022N\n" + "\024channel_partner_link\030\002" + " \001(\0132+.google.cloud.channel.v1.ChannelPartnerLinkB\003\340A\002\"\272\001\n" + "\037UpdateChannelPartnerLinkRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022N\n" - + "\024channel_partner_link\030\002 \001(\0132" - + "+.google.cloud.channel.v1.ChannelPartnerLinkB\003\340A\002\0224\n" + + "\024channel_partner_link\030\002 \001(\0132+.googl" + + "e.cloud.channel.v1.ChannelPartnerLinkB\003\340A\002\0224\n" + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"n\n" + "!GetCustomerRepricingConfigRequest\022I\n" + "\004name\030\001 \001(\tB;\340A\002\372A5\n" @@ -513,11 +514,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$CreateCustomerRepricingConfigRequest\022<\n" + "\006parent\030\001 \001(\tB,\340A\002\372A&\n" + "$cloudchannel.googleapis.com/Customer\022X\n" - + "\031customer_repricing_config\030\002 \001(\01320." - + "google.cloud.channel.v1.CustomerRepricingConfigB\003\340A\002\"\200\001\n" + + "\031customer_repricing_config\030\002 \001(\01320.google." + + "cloud.channel.v1.CustomerRepricingConfigB\003\340A\002\"\200\001\n" + "$UpdateCustomerRepricingConfigRequest\022X\n" - + "\031customer_repricing_config\030\001" - + " \001(\01320.google.cloud.channel.v1.CustomerRepricingConfigB\003\340A\002\"q\n" + + "\031customer_repricing_config\030\001 \001(" + + "\01320.google.cloud.channel.v1.CustomerRepricingConfigB\003\340A\002\"q\n" + "$DeleteCustomerRepricingConfigRequest\022I\n" + "\004name\030\001 \001(\tB;\340A\002\372A5\n" + "3cloudchannel.googleapis.com/CustomerRepricingConfig\"z\n" @@ -527,7 +528,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")ListChannelPartnerRepricingConfigsRequest\022F\n" + "\006parent\030\001 \001(\tB6\340A\002\372A0\n" + ".cloudchannel.googleapis.com/ChannelPartnerLink\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\250\001\n" + "*ListChannelPartnerRepricingConfigsResponse\022a\n" @@ -537,8 +539,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*CreateChannelPartnerRepricingConfigRequest\022F\n" + "\006parent\030\001 \001(\tB6\340A\002\372A0\n" + ".cloudchannel.googleapis.com/ChannelPartnerLink\022e\n" - + " channel_partner_repricing_config\030\002 \001(\01326.google.cloud.ch" - + "annel.v1.ChannelPartnerRepricingConfigB\003\340A\002\"\223\001\n" + + " channel_partner_repricing_config\030\002" + + " \001(\01326.google.cloud.channel.v1.ChannelPartnerRepricingConfigB\003\340A\002\"\223\001\n" + "*UpdateChannelPartnerRepricingConfigRequest\022e\n" + " channel_partner_repricing_config\030\001" + " \001(\01326.google.cloud.channel.v1.ChannelPartnerRepricingConfigB\003\340A\002\"}\n" @@ -563,8 +565,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010SkuGroup\022\014\n" + "\004name\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t:S\352AP\n" - + "$cloudchannel.googleapis.com/SkuGroup" - + "\022(accounts/{account}/skuGroups/{sku_group}\"c\n" + + "$cloudchannel.googleapis.com/SkuGroup\022(accounts/{account}/skuGroups/{sku_group}\"c\n" + "\013BillableSku\022\013\n" + "\003sku\030\001 \001(\t\022\030\n" + "\020sku_display_name\030\002 \001(\t\022\017\n" @@ -578,8 +579,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\005 \001(\tB\003\340A\001\"\240\001\n" + "\033TransferEntitlementsRequest\022\023\n" + "\006parent\030\001 \001(\tB\003\340A\002\022?\n" - + "\014entitlements\030\002 \003(\0132$" - + ".google.cloud.channel.v1.EntitlementB\003\340A\002\022\022\n\n" + + "\014entitlements\030\002" + + " \003(\0132$.google.cloud.channel.v1.EntitlementB\003\340A\002\022\022\n\n" + "auth_token\030\004 \001(\t\022\027\n\n" + "request_id\030\006 \001(\tB\003\340A\001\"Z\n" + "\034TransferEntitlementsResponse\022:\n" @@ -592,25 +593,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027ChangeParametersRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022;\n\n" + "parameters\030\002" - + " \003(\0132\".google.cloud.channel.v1.ParameterB\003\340A\002\022\027\n" - + "\n" + + " \003(\0132\".google.cloud.channel.v1.ParameterB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022\036\n" + "\021purchase_order_id\030\005 \001(\tB\003\340A\001\"\223\001\n" + "\034ChangeRenewalSettingsRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022G\n" + "\020renewal_settings\030\004" + " \001(\0132(.google.cloud.channel.v1.RenewalSettingsB\003\340A\002\022\027\n\n" - + "request_id\030\005 \001(\tB\003\340A\001\"\365\001\n" + + "request_id\030\005 \001(\tB\003\340A\001\"\226\002\n" + "\022ChangeOfferRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\0228\n" + "\005offer\030\002 \001(\tB)\340A\002\372A#\n" + "!cloudchannel.googleapis.com/Offer\022;\n\n" - + "parameters\030\003" - + " \003(\0132\".google.cloud.channel.v1.ParameterB\003\340A\001\022\036\n" - + "\021purchase_order_id\030\005 \001(\tB\003\340A\001\022\027\n" - + "\n" + + "parameters\030\003 \003(\0132\"." + + "google.cloud.channel.v1.ParameterB\003\340A\001\022\036\n" + + "\021purchase_order_id\030\005 \001(\tB\003\340A\001\022\027\n\n" + "request_id\030\006 \001(\tB\003\340A\001\022\034\n" - + "\017billing_account\030\007 \001(\tB\003\340A\001\"E\n" + + "\017billing_account\030\007 \001(\tB\003\340A\001\022\037\n" + + "\022price_reference_id\030\010 \001(\tB\003\340A\001\"E\n" + "\027StartPaidServiceRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"F\n" @@ -621,8 +621,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"H\n" + "\032ActivateEntitlementRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022\027\n" - + "\n" + + "\004name\030\001 \001(\tB\003\340A\002\022\027\n\n" + "request_id\030\003 \001(\tB\003\340A\001\"Z\n" + "\022LookupOfferRequest\022D\n" + "\013entitlement\030\001 \001(\tB/\340A\002\372A)\n" @@ -656,10 +655,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006offers\030\001 \003(\0132\036.google.cloud.channel.v1.Offer\022\027\n" + "\017next_page_token\030\002 \001(\t\"\266\005\n" + "\032ListPurchasableSkusRequest\022t\n" - + "\033create_entitlement_purchase\030\002 \001(\0132M.google.cloud.c" - + "hannel.v1.ListPurchasableSkusRequest.CreateEntitlementPurchaseH\000\022h\n" - + "\025change_offer_purchase\030\003 \001(\0132G.google.cloud.channel.v" - + "1.ListPurchasableSkusRequest.ChangeOfferPurchaseH\000\022>\n" + + "\033create_entitlement_purchase\030\002 \001(\0132M.google.cloud.channel.v1.List" + + "PurchasableSkusRequest.CreateEntitlementPurchaseH\000\022h\n" + + "\025change_offer_purchase\030\003 \001(" + + "\0132G.google.cloud.channel.v1.ListPurchasableSkusRequest.ChangeOfferPurchaseH\000\022>\n" + "\010customer\030\001 \001(\tB,\340A\002\372A&\n" + "$cloudchannel.googleapis.com/Customer\022\026\n" + "\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\n" @@ -669,8 +668,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007product\030\001 \001(\tB\003\340A\002\032\344\001\n" + "\023ChangeOfferPurchase\022\030\n" + "\013entitlement\030\001 \001(\tB\003\340A\002\022l\n" - + "\013change_type\030\002 \001(\0162R.google.cloud.channel.v1.ListPurchasableSkusR" - + "equest.ChangeOfferPurchase.ChangeTypeB\003\340A\002\"E\n\n" + + "\013change_type\030\002 \001(\0162R.google.cloud.chann" + + "el.v1.ListPurchasableSkusRequest.ChangeOfferPurchase.ChangeTypeB\003\340A\002\"E\n\n" + "ChangeType\022\033\n" + "\027CHANGE_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007UPGRADE\020\001\022\r\n" @@ -683,10 +682,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016PurchasableSku\022)\n" + "\003sku\030\001 \001(\0132\034.google.cloud.channel.v1.Sku\"\324\004\n" + "\034ListPurchasableOffersRequest\022v\n" - + "\033create_entitlement_purchase\030\002 \001(\0132O.google.clou" - + "d.channel.v1.ListPurchasableOffersRequest.CreateEntitlementPurchaseH\000\022j\n" - + "\025change_offer_purchase\030\003 \001(\0132I.google.cloud.chan" - + "nel.v1.ListPurchasableOffersRequest.ChangeOfferPurchaseH\000\022>\n" + + "\033create_entitlement_purchase\030\002 \001(\0132O.google.cloud.channel.v1.L" + + "istPurchasableOffersRequest.CreateEntitlementPurchaseH\000\022j\n" + + "\025change_offer_purchase\030\003 \001(\0132I.google.cloud.channel.v1.ListPur" + + "chasableOffersRequest.ChangeOfferPurchaseH\000\022>\n" + "\010customer\030\001 \001(\tB,\340A\002\372A&\n" + "$cloudchannel.googleapis.com/Customer\022\026\n" + "\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\n" @@ -701,38 +700,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017billing_account\030\003 \001(\tB\003\340A\001B\021\n" + "\017purchase_option\"\177\n" + "\035ListPurchasableOffersResponse\022E\n" - + "\022purchasable_offers\030\001" - + " \003(\0132).google.cloud.channel.v1.PurchasableOffer\022\027\n" - + "\017next_page_token\030\002 \001(\t\"A\n" + + "\022purchasable_offers\030\001 \003" + + "(\0132).google.cloud.channel.v1.PurchasableOffer\022\027\n" + + "\017next_page_token\030\002 \001(\t\"b\n" + "\020PurchasableOffer\022-\n" - + "\005offer\030\001 \001(\0132\036.google.cloud.channel.v1.Offer\"x\n" + + "\005offer\030\001 \001(\0132\036.google.cloud.channel.v1.Offer\022\037\n" + + "\022price_reference_id\030\002 \001(\tB\003\340A\001\"x\n" + "#QueryEligibleBillingAccountsRequest\022>\n" + "\010customer\030\001 \001(\tB,\340A\002\372A&\n" + "$cloudchannel.googleapis.com/Customer\022\021\n" + "\004skus\030\002 \003(\tB\003\340A\002\"n\n" + "$QueryEligibleBillingAccountsResponse\022F\n" - + "\023sku_purchase_groups\030\001" - + " \003(\0132).google.cloud.channel.v1.SkuPurchaseGroup\"}\n" + + "\023sku_purchase_groups\030\001 \003(" + + "\0132).google.cloud.channel.v1.SkuPurchaseGroup\"}\n" + "\020SkuPurchaseGroup\022\014\n" + "\004skus\030\001 \003(\t\022[\n" - + "\036billing_account_purchase_infos\030\002" - + " \003(\01323.google.cloud.channel.v1.BillingAccountPurchaseInfo\"^\n" + + "\036billing_account_purchase_infos\030\002 \003(\01323" + + ".google.cloud.channel.v1.BillingAccountPurchaseInfo\"^\n" + "\032BillingAccountPurchaseInfo\022@\n" - + "\017billing_account\030\001 \001(\0132\'.google.cloud.channel.v1.BillingAccount\"O\n" - + "\031RegisterSubscriberRequest\022\024\n" - + "\007account\030\001 \001(\tB\003\340A\002\022\034\n" - + "\017service_account\030\002 \001(\tB\003\340A\002\"+\n" + + "\017billing_account\030\001" + + " \001(\0132\'.google.cloud.channel.v1.BillingAccount\"\244\001\n" + + "\031RegisterSubscriberRequest\022<\n" + + "\007account\030\001 \001(\tB+\340A\001\372A%\n" + + "#cloudchannel.googleapis.com/Account\022\034\n" + + "\017service_account\030\002 \001(\tB\003\340A\002\022\034\n\n" + + "integrator\030\003 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + + "\013_integrator\"+\n" + "\032RegisterSubscriberResponse\022\r\n" - + "\005topic\030\001 \001(\t\"Q\n" - + "\033UnregisterSubscriberRequest\022\024\n" - + "\007account\030\001 \001(\tB\003\340A\002\022\034\n" - + "\017service_account\030\002 \001(\tB\003\340A\002\"-\n" + + "\005topic\030\001 \001(\t\"\246\001\n" + + "\033UnregisterSubscriberRequest\022<\n" + + "\007account\030\001 \001(\tB+\340A\001\372A%\n" + + "#cloudchannel.googleapis.com/Account\022\034\n" + + "\017service_account\030\002 \001(\tB\003\340A\002\022\034\n\n" + + "integrator\030\003 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + + "\013_integrator\"-\n" + "\034UnregisterSubscriberResponse\022\r\n" - + "\005topic\030\001 \001(\t\"_\n" - + "\026ListSubscribersRequest\022\024\n" - + "\007account\030\001 \001(\tB\003\340A\002\022\026\n" + + "\005topic\030\001 \001(\t\"\264\001\n" + + "\026ListSubscribersRequest\022<\n" + + "\007account\030\001 \001(\tB+\340A\001\372A%\n" + + "#cloudchannel.googleapis.com/Account\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"[\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\034\n\n" + + "integrator\030\004 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + + "\013_integrator\"[\n" + "\027ListSubscribersResponse\022\r\n" + "\005topic\030\001 \001(\t\022\030\n" + "\020service_accounts\030\002 \003(\t\022\027\n" @@ -746,255 +756,261 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036ListEntitlementChangesResponse\022G\n" + "\023entitlement_changes\030\001" + " \003(\0132*.google.cloud.channel.v1.EntitlementChange\022\027\n" - + "\017next_page_token\030\002 \001(\t2\305R\n" + + "\017next_page_token\030\002 \001(\t2\351S\n" + "\023CloudChannelService\022\324\001\n\r" - + "ListCustomers\022-.google.cloud.channel.v1.ListCustomersRe" - + "quest\032..google.cloud.channel.v1.ListCust" - + "omersResponse\"d\202\323\344\223\002^\022!/v1/{parent=accou" - + "nts/*}/customersZ9\0227/v1/{parent=accounts/*/channelPartnerLinks/*}/customers\022\312\001\n" - + "\013GetCustomer\022+.google.cloud.channel.v1.Ge" - + "tCustomerRequest\032!.google.cloud.channel." - + "v1.Customer\"k\332A\004name\202\323\344\223\002^\022!/v1/{name=ac" - + "counts/*/customers/*}Z9\0227/v1/{name=accou" - + "nts/*/channelPartnerLinks/*/customers/*}\022\350\001\n" - + "\037CheckCloudIdentityAccountsExist\022?.google.cloud.channel.v1.CheckCloudIdentit" - + "yAccountsExistRequest\032@.google.cloud.channel.v1.CheckCloudIdentityAccountsExistR" - + "esponse\"B\202\323\344\223\002<\"7/v1/{parent=accounts/*}:checkCloudIdentityAccountsExist:\001*\022\335\001\n" - + "\016CreateCustomer\022..google.cloud.channel.v1" - + ".CreateCustomerRequest\032!.google.cloud.ch" - + "annel.v1.Customer\"x\202\323\344\223\002r\"!/v1/{parent=a" - + "ccounts/*}/customers:\010customerZC\"7/v1/{p" - + "arent=accounts/*/channelPartnerLinks/*}/customers:\010customer\022\361\001\n" - + "\016UpdateCustomer\022..google.cloud.channel.v1.UpdateCustomerR" - + "equest\032!.google.cloud.channel.v1.Custome" - + "r\"\213\001\202\323\344\223\002\204\0012*/v1/{customer.name=accounts" - + "/*/customers/*}:\010customerZL2@/v1/{custom" - + "er.name=accounts/*/channelPartnerLinks/*/customers/*}:\010customer\022\305\001\n" - + "\016DeleteCustomer\022..google.cloud.channel.v1.DeleteCusto" - + "merRequest\032\026.google.protobuf.Empty\"k\332A\004n" - + "ame\202\323\344\223\002^*!/v1/{name=accounts/*/customer" - + "s/*}Z9*7/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}\022\335\001\n" - + "\016ImportCustomer\022..google.cloud.channel.v1.ImportCusto" - + "merRequest\032!.google.cloud.channel.v1.Cus" - + "tomer\"x\202\323\344\223\002r\"(/v1/{parent=accounts/*}/c" - + "ustomers:import:\001*ZC\">/v1/{parent=accoun" - + "ts/*/channelPartnerLinks/*}/customers:import:\001*\022\330\001\n" - + "\026ProvisionCloudIdentity\0226.google.cloud.channel.v1.ProvisionCloudIdent" - + "ityRequest\032\035.google.longrunning.Operation\"g\312A\035\n" - + "\010Customer\022\021OperationMetadata\202\323\344\223\002" - + "A\"\"9/" - + "v1/{name=accounts/*/customers/*/entitlem" - + "ents/*}:activate:\001*\022\344\001\n\024TransferEntitlem" - + "ents\0224.google.cloud.channel.v1.TransferE" - + "ntitlementsRequest\032\035.google.longrunning." - + "Operation\"w\312A1\n\034TransferEntitlementsResp" - + "onse\022\021OperationMetadata\202\323\344\223\002=\"8/v1/{pare" - + "nt=accounts/*/customers/*}:transferEntit" - + "lements:\001*\022\365\001\n\034TransferEntitlementsToGoo" - + "gle\022<.google.cloud.channel.v1.TransferEn" - + "titlementsToGoogleRequest\032\035.google.longr" - + "unning.Operation\"x\312A*\n\025google.protobuf.E" - + "mpty\022\021OperationMetadata\202\323\344\223\002E\"@/v1/{pare" - + "nt=accounts/*/customers/*}:transferEntit" - + "lementsToGoogle:\001*\022\301\001\n\027ListChannelPartne" - + "rLinks\0227.google.cloud.channel.v1.ListCha" - + "nnelPartnerLinksRequest\0328.google.cloud.c" - + "hannel.v1.ListChannelPartnerLinksRespons" - + "e\"3\202\323\344\223\002-\022+/v1/{parent=accounts/*}/chann" - + "elPartnerLinks\022\260\001\n\025GetChannelPartnerLink" - + "\0225.google.cloud.channel.v1.GetChannelPar" - + "tnerLinkRequest\032+.google.cloud.channel.v" - + "1.ChannelPartnerLink\"3\202\323\344\223\002-\022+/v1/{name=" - + "accounts/*/channelPartnerLinks/*}\022\314\001\n\030Cr" - + "eateChannelPartnerLink\0228.google.cloud.ch" - + "annel.v1.CreateChannelPartnerLinkRequest" - + "\032+.google.cloud.channel.v1.ChannelPartne" - + "rLink\"I\202\323\344\223\002C\"+/v1/{parent=accounts/*}/c" - + "hannelPartnerLinks:\024channel_partner_link" - + "\022\271\001\n\030UpdateChannelPartnerLink\0228.google.c" - + "loud.channel.v1.UpdateChannelPartnerLink" - + "Request\032+.google.cloud.channel.v1.Channe" - + "lPartnerLink\"6\202\323\344\223\00202+/v1/{name=accounts" - + "/*/channelPartnerLinks/*}:\001*\022\327\001\n\032GetCust" - + "omerRepricingConfig\022:.google.cloud.chann" - + "el.v1.GetCustomerRepricingConfigRequest\032" - + "0.google.cloud.channel.v1.CustomerRepric" - + "ingConfig\"K\332A\004name\202\323\344\223\002>\022\022*<" - + "/v1/{name=accounts/*/customers/*/custome" - + "rRepricingConfigs/*}\022\371\001\n GetChannelPartn" - + "erRepricingConfig\022@.google.cloud.channel" - + ".v1.GetChannelPartnerRepricingConfigRequ" - + "est\0326.google.cloud.channel.v1.ChannelPar" - + "tnerRepricingConfig\"[\332A\004name\202\323\344\223\002N\022L/v1/" - + "{name=accounts/*/channelPartnerLinks/*/c" - + "hannelPartnerRepricingConfigs/*}\022\214\002\n\"Lis" - + "tChannelPartnerRepricingConfigs\022B.google" - + ".cloud.channel.v1.ListChannelPartnerRepr" - + "icingConfigsRequest\032C.google.cloud.chann" - + "el.v1.ListChannelPartnerRepricingConfigs" - + "Response\"]\332A\006parent\202\323\344\223\002N\022L/v1/{parent=a" - + "ccounts/*/channelPartnerLinks/*}/channel" - + "PartnerRepricingConfigs\022\305\002\n#CreateChanne" + + "ListCustomers\022-.google.cloud.channel.v1.ListCustomersReque" + + "st\032..google.cloud.channel.v1.ListCustome" + + "rsResponse\"d\202\323\344\223\002^\022!/v1/{parent=accounts" + + "/*}/customersZ9\0227/v1/{parent=accounts/*/channelPartnerLinks/*}/customers\022\312\001\n" + + "\013GetCustomer\022+.google.cloud.channel.v1.GetCu" + + "stomerRequest\032!.google.cloud.channel.v1." + + "Customer\"k\332A\004name\202\323\344\223\002^\022!/v1/{name=accou" + + "nts/*/customers/*}Z9\0227/v1/{name=accounts" + + "/*/channelPartnerLinks/*/customers/*}\022\350\001\n" + + "\037CheckCloudIdentityAccountsExist\022?.google.cloud.channel.v1.CheckCloudIdentityAc" + + "countsExistRequest\032@.google.cloud.channel.v1.CheckCloudIdentityAccountsExistResp" + + "onse\"B\202\323\344\223\002<\"7/v1/{parent=accounts/*}:checkCloudIdentityAccountsExist:\001*\022\335\001\n" + + "\016CreateCustomer\022..google.cloud.channel.v1.Cr" + + "eateCustomerRequest\032!.google.cloud.chann" + + "el.v1.Customer\"x\202\323\344\223\002r\"!/v1/{parent=acco" + + "unts/*}/customers:\010customerZC\"7/v1/{pare" + + "nt=accounts/*/channelPartnerLinks/*}/customers:\010customer\022\361\001\n" + + "\016UpdateCustomer\022..google.cloud.channel.v1.UpdateCustomerRequ" + + "est\032!.google.cloud.channel.v1.Customer\"\213" + + "\001\202\323\344\223\002\204\0012*/v1/{customer.name=accounts/*/" + + "customers/*}:\010customerZL2@/v1/{customer." + + "name=accounts/*/channelPartnerLinks/*/customers/*}:\010customer\022\305\001\n" + + "\016DeleteCustomer\022..google.cloud.channel.v1.DeleteCustomer" + + "Request\032\026.google.protobuf.Empty\"k\332A\004name" + + "\202\323\344\223\002^*!/v1/{name=accounts/*/customers/*" + + "}Z9*7/v1/{name=accounts/*/channelPartnerLinks/*/customers/*}\022\335\001\n" + + "\016ImportCustomer\022..google.cloud.channel.v1.ImportCustomer" + + "Request\032!.google.cloud.channel.v1.Custom" + + "er\"x\202\323\344\223\002r\"(/v1/{parent=accounts/*}/cust" + + "omers:import:\001*ZC\">/v1/{parent=accounts/" + + "*/channelPartnerLinks/*}/customers:import:\001*\022\330\001\n" + + "\026ProvisionCloudIdentity\0226.google.cloud.channel.v1.ProvisionCloudIdentity" + + "Request\032\035.google.longrunning.Operation\"g\312A\035\n" + + "\010Customer\022\021OperationMetadata\202\323\344\223\002A\"<" + + "/v1/{customer=accounts/*/customers/*}:provisionCloudIdentity:\001*\022\261\001\n" + + "\020ListEntitlements\0220.google.cloud.channel.v1.ListEntit" + + "lementsRequest\0321.google.cloud.channel.v1" + + ".ListEntitlementsResponse\"8\202\323\344\223\0022\0220/v1/{" + + "parent=accounts/*/customers/*}/entitlements\022\274\001\n" + + "\024ListTransferableSkus\0224.google.cloud.channel.v1.ListTransferableSkusReque" + + "st\0325.google.cloud.channel.v1.ListTransfe" + + "rableSkusResponse\"7\202\323\344\223\0021\",/v1/{parent=accounts/*}:listTransferableSkus:\001*\022\304\001\n" + + "\026ListTransferableOffers\0226.google.cloud.cha" + + "nnel.v1.ListTransferableOffersRequest\0327.google.cloud.channel.v1.ListTransferable" + + "OffersResponse\"9\202\323\344\223\0023\"./v1/{parent=accounts/*}:listTransferableOffers:\001*\022\240\001\n" + + "\016GetEntitlement\022..google.cloud.channel.v1.G" + + "etEntitlementRequest\032$.google.cloud.chan" + + "nel.v1.Entitlement\"8\202\323\344\223\0022\0220/v1/{name=accounts/*/customers/*/entitlements/*}\022\305\001\n" + + "\021CreateEntitlement\0221.google.cloud.channe" + + "l.v1.CreateEntitlementRequest\032\035.google.longrunning.Operation\"^\312A \n" + + "\013Entitlement\022\021" + + "OperationMetadata\202\323\344\223\0025\"0/v1/{parent=accounts/*/customers/*}/entitlements:\001*\022\324\001\n" + + "\020ChangeParameters\0220.google.cloud.channel" + + ".v1.ChangeParametersRequest\032\035.google.longrunning.Operation\"o\312A \n" + + "\013Entitlement\022\021OperationMetadata\202\323\344\223\002F\"A/v1/{name=account" + + "s/*/customers/*/entitlements/*}:changeParameters:\001*\022\343\001\n" + + "\025ChangeRenewalSettings\0225.google.cloud.channel.v1.ChangeRenewalSet" + + "tingsRequest\032\035.google.longrunning.Operation\"t\312A \n" + + "\013Entitlement\022\021OperationMetadata" + + "\202\323\344\223\002K\"F/v1/{name=accounts/*/customers/*" + + "/entitlements/*}:changeRenewalSettings:\001*\022\305\001\n" + + "\013ChangeOffer\022+.google.cloud.channel" + + ".v1.ChangeOfferRequest\032\035.google.longrunning.Operation\"j\312A \n" + + "\013Entitlement\022\021OperationMetadata\202\323\344\223\002A\"\"9/v1/" + + "{name=accounts/*/customers/*/entitlement" + + "s/*}:activate:\001*\022\344\001\n\024TransferEntitlement" + + "s\0224.google.cloud.channel.v1.TransferEnti" + + "tlementsRequest\032\035.google.longrunning.Ope" + + "ration\"w\312A1\n\034TransferEntitlementsRespons" + + "e\022\021OperationMetadata\202\323\344\223\002=\"8/v1/{parent=" + + "accounts/*/customers/*}:transferEntitlem" + + "ents:\001*\022\365\001\n\034TransferEntitlementsToGoogle" + + "\022<.google.cloud.channel.v1.TransferEntit" + + "lementsToGoogleRequest\032\035.google.longrunn" + + "ing.Operation\"x\312A*\n\025google.protobuf.Empt" + + "y\022\021OperationMetadata\202\323\344\223\002E\"@/v1/{parent=" + + "accounts/*/customers/*}:transferEntitlem" + + "entsToGoogle:\001*\022\301\001\n\027ListChannelPartnerLi" + + "nks\0227.google.cloud.channel.v1.ListChanne" + + "lPartnerLinksRequest\0328.google.cloud.chan" + + "nel.v1.ListChannelPartnerLinksResponse\"3" + + "\202\323\344\223\002-\022+/v1/{parent=accounts/*}/channelP" + + "artnerLinks\022\260\001\n\025GetChannelPartnerLink\0225." + + "google.cloud.channel.v1.GetChannelPartne" + + "rLinkRequest\032+.google.cloud.channel.v1.C" + + "hannelPartnerLink\"3\202\323\344\223\002-\022+/v1/{name=acc" + + "ounts/*/channelPartnerLinks/*}\022\314\001\n\030Creat" + + "eChannelPartnerLink\0228.google.cloud.chann" + + "el.v1.CreateChannelPartnerLinkRequest\032+." + + "google.cloud.channel.v1.ChannelPartnerLi" + + "nk\"I\202\323\344\223\002C\"+/v1/{parent=accounts/*}/chan" + + "nelPartnerLinks:\024channel_partner_link\022\271\001" + + "\n\030UpdateChannelPartnerLink\0228.google.clou" + + "d.channel.v1.UpdateChannelPartnerLinkReq" + + "uest\032+.google.cloud.channel.v1.ChannelPa" + + "rtnerLink\"6\202\323\344\223\00202+/v1/{name=accounts/*/" + + "channelPartnerLinks/*}:\001*\022\327\001\n\032GetCustome" + + "rRepricingConfig\022:.google.cloud.channel." + + "v1.GetCustomerRepricingConfigRequest\0320.g" + + "oogle.cloud.channel.v1.CustomerRepricing" + + "Config\"K\332A\004name\202\323\344\223\002>\022\022* buil super(builder); } - private TransferableOffer() {} + private TransferableOffer() { + priceReferenceId_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -113,6 +115,63 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder() { return offer_ == null ? com.google.cloud.channel.v1.Offer.getDefaultInstance() : offer_; } + public static final int PRICE_REFERENCE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object priceReferenceId_ = ""; + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + @java.lang.Override + public java.lang.String getPriceReferenceId() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + priceReferenceId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPriceReferenceIdBytes() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + priceReferenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -130,6 +189,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getOffer()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, priceReferenceId_); + } getUnknownFields().writeTo(output); } @@ -142,6 +204,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getOffer()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(priceReferenceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, priceReferenceId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -162,6 +227,7 @@ public boolean equals(final java.lang.Object obj) { if (hasOffer()) { if (!getOffer().equals(other.getOffer())) return false; } + if (!getPriceReferenceId().equals(other.getPriceReferenceId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -177,6 +243,8 @@ public int hashCode() { hash = (37 * hash) + OFFER_FIELD_NUMBER; hash = (53 * hash) + getOffer().hashCode(); } + hash = (37 * hash) + PRICE_REFERENCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getPriceReferenceId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -332,6 +400,7 @@ public Builder clear() { offerBuilder_.dispose(); offerBuilder_ = null; } + priceReferenceId_ = ""; return this; } @@ -373,6 +442,9 @@ private void buildPartial0(com.google.cloud.channel.v1.TransferableOffer result) result.offer_ = offerBuilder_ == null ? offer_ : offerBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.priceReferenceId_ = priceReferenceId_; + } result.bitField0_ |= to_bitField0_; } @@ -424,6 +496,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.TransferableOffer other) { if (other.hasOffer()) { mergeOffer(other.getOffer()); } + if (!other.getPriceReferenceId().isEmpty()) { + priceReferenceId_ = other.priceReferenceId_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -456,6 +533,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + priceReferenceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -665,6 +748,127 @@ public com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder() { return offerBuilder_; } + private java.lang.Object priceReferenceId_ = ""; + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + public java.lang.String getPriceReferenceId() { + java.lang.Object ref = priceReferenceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + priceReferenceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + public com.google.protobuf.ByteString getPriceReferenceIdBytes() { + java.lang.Object ref = priceReferenceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + priceReferenceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The priceReferenceId to set. + * @return This builder for chaining. + */ + public Builder setPriceReferenceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + priceReferenceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPriceReferenceId() { + priceReferenceId_ = getDefaultInstance().getPriceReferenceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Price reference ID for the offer. Only for offers that require
        +     * additional price information. Used to guarantee that the pricing is
        +     * consistent between quoting the offer and placing the order.
        +     * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for priceReferenceId to set. + * @return This builder for chaining. + */ + public Builder setPriceReferenceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + priceReferenceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferableOfferOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferableOfferOrBuilder.java index 0d6ecd3e6343..0043413fa3f2 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferableOfferOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/TransferableOfferOrBuilder.java @@ -60,4 +60,34 @@ public interface TransferableOfferOrBuilder * .google.cloud.channel.v1.Offer offer = 1; */ com.google.cloud.channel.v1.OfferOrBuilder getOfferOrBuilder(); + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The priceReferenceId. + */ + java.lang.String getPriceReferenceId(); + + /** + * + * + *
        +   * Optional. Price reference ID for the offer. Only for offers that require
        +   * additional price information. Used to guarantee that the pricing is
        +   * consistent between quoting the offer and placing the order.
        +   * 
        + * + * string price_reference_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for priceReferenceId. + */ + com.google.protobuf.ByteString getPriceReferenceIdBytes(); } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequest.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequest.java index 8f583e25d4d9..3a627d8c0675 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequest.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequest.java @@ -42,6 +42,7 @@ private UnregisterSubscriberRequest(com.google.protobuf.GeneratedMessageV3.Build private UnregisterSubscriberRequest() { account_ = ""; serviceAccount_ = ""; + integrator_ = ""; } @java.lang.Override @@ -65,6 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.channel.v1.UnregisterSubscriberRequest.Builder.class); } + private int bitField0_; public static final int ACCOUNT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -74,10 +76,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The account. */ @@ -98,10 +103,13 @@ public java.lang.String getAccount() { * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for account. */ @@ -173,6 +181,78 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { } } + public static final int INTEGRATOR_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object integrator_ = ""; + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the integrator field is set. + */ + @java.lang.Override + public boolean hasIntegrator() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The integrator. + */ + @java.lang.Override + public java.lang.String getIntegrator() { + java.lang.Object ref = integrator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + integrator_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for integrator. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIntegratorBytes() { + java.lang.Object ref = integrator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + integrator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -193,6 +273,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, integrator_); + } getUnknownFields().writeTo(output); } @@ -208,6 +291,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, integrator_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -226,6 +312,10 @@ public boolean equals(final java.lang.Object obj) { if (!getAccount().equals(other.getAccount())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; + if (hasIntegrator() != other.hasIntegrator()) return false; + if (hasIntegrator()) { + if (!getIntegrator().equals(other.getIntegrator())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,6 +331,10 @@ public int hashCode() { hash = (53 * hash) + getAccount().hashCode(); hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getServiceAccount().hashCode(); + if (hasIntegrator()) { + hash = (37 * hash) + INTEGRATOR_FIELD_NUMBER; + hash = (53 * hash) + getIntegrator().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -384,6 +478,7 @@ public Builder clear() { bitField0_ = 0; account_ = ""; serviceAccount_ = ""; + integrator_ = ""; return this; } @@ -426,6 +521,12 @@ private void buildPartial0(com.google.cloud.channel.v1.UnregisterSubscriberReque if (((from_bitField0_ & 0x00000002) != 0)) { result.serviceAccount_ = serviceAccount_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.integrator_ = integrator_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -484,6 +585,11 @@ public Builder mergeFrom(com.google.cloud.channel.v1.UnregisterSubscriberRequest bitField0_ |= 0x00000002; onChanged(); } + if (other.hasIntegrator()) { + integrator_ = other.integrator_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -522,6 +628,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + integrator_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -547,10 +659,13 @@ public Builder mergeFrom( * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The account. */ @@ -570,10 +685,13 @@ public java.lang.String getAccount() { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for account. */ @@ -593,10 +711,13 @@ public com.google.protobuf.ByteString getAccountBytes() { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The account to set. * @return This builder for chaining. @@ -615,10 +736,13 @@ public Builder setAccount(java.lang.String value) { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -633,10 +757,13 @@ public Builder clearAccount() { * * *
        -     * Required. Resource name of the account.
        +     * Optional. Resource name of the account. Required if integrator is not
        +     * provided. Otherwise, leave this field empty/unset.
              * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for account to set. * @return This builder for chaining. @@ -768,6 +895,138 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object integrator_ = ""; + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the integrator field is set. + */ + public boolean hasIntegrator() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The integrator. + */ + public java.lang.String getIntegrator() { + java.lang.Object ref = integrator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + integrator_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for integrator. + */ + public com.google.protobuf.ByteString getIntegratorBytes() { + java.lang.Object ref = integrator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + integrator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The integrator to set. + * @return This builder for chaining. + */ + public Builder setIntegrator(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + integrator_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIntegrator() { + integrator_ = getDefaultInstance().getIntegrator(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Resource name of the integrator. Required if account is not
        +     * provided. Otherwise, leave this field empty/unset.
        +     * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for integrator to set. + * @return This builder for chaining. + */ + public Builder setIntegratorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + integrator_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequestOrBuilder.java b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequestOrBuilder.java index e52ac0c195f9..fe556a4cb72c 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequestOrBuilder.java +++ b/java-channel/proto-google-cloud-channel-v1/src/main/java/com/google/cloud/channel/v1/UnregisterSubscriberRequestOrBuilder.java @@ -28,10 +28,13 @@ public interface UnregisterSubscriberRequestOrBuilder * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The account. */ @@ -41,10 +44,13 @@ public interface UnregisterSubscriberRequestOrBuilder * * *
        -   * Required. Resource name of the account.
        +   * Optional. Resource name of the account. Required if integrator is not
        +   * provided. Otherwise, leave this field empty/unset.
            * 
        * - * string account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string account = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for account. */ @@ -77,4 +83,46 @@ public interface UnregisterSubscriberRequestOrBuilder * @return The bytes for serviceAccount. */ com.google.protobuf.ByteString getServiceAccountBytes(); + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the integrator field is set. + */ + boolean hasIntegrator(); + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The integrator. + */ + java.lang.String getIntegrator(); + + /** + * + * + *
        +   * Optional. Resource name of the integrator. Required if account is not
        +   * provided. Otherwise, leave this field empty/unset.
        +   * 
        + * + * optional string integrator = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for integrator. + */ + com.google.protobuf.ByteString getIntegratorBytes(); } diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto index 9c31f4195aaa..cc4088d8fa19 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto +++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/customers.proto @@ -34,7 +34,7 @@ message Customer { pattern: "accounts/{account}/customers/{customer}" }; - // The enum represents whether a customer belongs to public sector + // The enum represents if a customer belongs to public sector enum CustomerAttestationState { // Default value if not set yet CUSTOMER_ATTESTATION_STATE_UNSPECIFIED = 0; @@ -107,7 +107,7 @@ message Customer { // Populated only if a CRM ID exists for this customer. string correlation_id = 14 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Indicate whether a customer is attesting about the correctness of + // Optional. Indicate if a customer is attesting about the correctness of // provided information. Only required if creating a GCP Entitlement. CustomerAttestationState customer_attestation_state = 16 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto index 114e28e1c151..f2501bc2092d 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto +++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/entitlements.proto @@ -147,6 +147,11 @@ message Entitlement { // Optional. The billing account resource name that is used to pay for this // entitlement. string billing_account = 28 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Price reference ID for the offer. Only for offers that require + // additional price information. Used to guarantee that the pricing is + // consistent between quoting the offer and placing the order. + string price_reference_id = 29 [(google.api.field_behavior) = OPTIONAL]; } // Definition for extended entitlement parameters. diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto index f5301eb649a5..9a5d63afac28 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto +++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/offers.proto @@ -123,6 +123,27 @@ enum PeriodType { YEAR = 3; } +// Discount Type. +enum DiscountType { + // Not used. + DISCOUNT_TYPE_UNSPECIFIED = 0; + + // Regional discount. + REGIONAL_DISCOUNT = 1; + + // Promotional discount. + PROMOTIONAL_DISCOUNT = 2; + + // Sales-provided discount. + SALES_DISCOUNT = 3; + + // Reseller margin. + RESELLER_MARGIN = 4; + + // Deal code discount. + DEAL_CODE = 5; +} + // Represents an offer made to resellers for purchase. // An offer is associated with a [Sku][google.cloud.channel.v1.Sku], has a plan // for payment, a price, and defines the constraints for buying. @@ -279,8 +300,17 @@ message Price { // Effective Price after applying the discounts. google.type.Money effective_price = 3; + // The time period with respect to which base and effective prices are + // defined. + // Example: 1 month, 6 months, 1 year, etc. + Period price_period = 6; + // Link to external price list, such as link to Google Voice rate card. string external_price_uri = 4; + + // Breakdown of the discount into its components. + // This will be empty if there is no discount present. + repeated DiscountComponent discount_components = 5; } // Specifies the price by the duration of months. @@ -330,3 +360,20 @@ message Period { // Period Type. PeriodType period_type = 2; } + +// Represents a single component of the total discount applicable on a Price. +message DiscountComponent { + // Specifies the contribution of this discount component to the total + // discount. + oneof discount_value { + // Discount percentage, represented as decimal. + // For example, a 20% discount will be represented as 0.2. + double discount_percentage = 3; + + // Fixed value discount. + google.type.Money discount_absolute = 4; + } + + // Type of the discount. + DiscountType discount_type = 2; +} diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto index 2c85cf24377a..a3583f8715b6 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto +++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/repricing.proto @@ -115,7 +115,7 @@ message RepricingConfig { // Required. Defines the granularity for repricing. oneof granularity { - // Applies the repricing configuration at the entitlement level. + // Required. Applies the repricing configuration at the entitlement level. // // Note: If a // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig] @@ -129,7 +129,8 @@ message RepricingConfig { // [CustomerRepricingConfig][google.cloud.channel.v1.CustomerRepricingConfig] // and // [ChannelPartnerRepricingConfig][google.cloud.channel.v1.ChannelPartnerRepricingConfig]. - EntitlementGranularity entitlement_granularity = 4; + EntitlementGranularity entitlement_granularity = 4 + [(google.api.field_behavior) = REQUIRED]; // Applies the repricing configuration at the channel partner level. // Only diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto index 4f1e07a62665..018eba33e23f 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto +++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/service.proto @@ -38,6 +38,10 @@ option go_package = "cloud.google.com/go/channel/apiv1/channelpb;channelpb"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.channel.v1"; +option (google.api.resource_definition) = { + type: "cloudchannel.googleapis.com/Account" + pattern: "accounts/{account}" +}; // CloudChannelService lets Google cloud resellers and distributors manage // their customers, channel partners, entitlements, and reports. @@ -1361,8 +1365,8 @@ service CloudChannelService { }; } - // Registers a service account with subscriber privileges on the Cloud Pub/Sub - // topic for this Channel Services account. After you create a + // Registers a service account with subscriber privileges on the Pub/Sub + // topic for this Channel Services account or integrator. After you create a // subscriber, you get the events through // [SubscriberEvent][google.cloud.channel.v1.SubscriberEvent] // @@ -1384,13 +1388,17 @@ service CloudChannelService { option (google.api.http) = { post: "/v1/{account=accounts/*}:register" body: "*" + additional_bindings { + post: "/v1/{integrator=integrators/*}:registerSubscriber" + body: "*" + } }; } - // Unregisters a service account with subscriber privileges on the Cloud - // Pub/Sub topic created for this Channel Services account. If there are no - // service accounts left with subscriber privileges, this deletes the topic. - // You can call ListSubscribers to check for these accounts. + // Unregisters a service account with subscriber privileges on the Pub/Sub + // topic created for this Channel Services account or integrator. If there are + // no service accounts left with subscriber privileges, this deletes the + // topic. You can call ListSubscribers to check for these accounts. // // Possible error codes: // @@ -1413,11 +1421,15 @@ service CloudChannelService { option (google.api.http) = { post: "/v1/{account=accounts/*}:unregister" body: "*" + additional_bindings { + post: "/v1/{integrator=integrators/*}:unregisterSubscriber" + body: "*" + } }; } - // Lists service accounts with subscriber privileges on the Cloud Pub/Sub - // topic created for this Channel Services account. + // Lists service accounts with subscriber privileges on the Pub/Sub topic + // created for this Channel Services account or integrator. // // Possible error codes: // @@ -1437,6 +1449,9 @@ service CloudChannelService { returns (ListSubscribersResponse) { option (google.api.http) = { get: "/v1/{account=accounts/*}:listSubscribers" + additional_bindings { + get: "/v1/{integrator=integrators/*}:listSubscribers" + } }; } @@ -1489,7 +1504,8 @@ message CloudIdentityCustomerAccount { bool existing = 1; // Returns true if the Cloud Identity account is associated with a customer - // of the Channel Services partner. + // of the Channel Services partner (with active subscriptions or purchase + // consents). bool owned = 2; // If owned = true, the name of the customer that owns the Cloud Identity @@ -1843,6 +1859,11 @@ message ListTransferableOffersResponse { message TransferableOffer { // Offer with parameter constraints updated to allow the Transfer. Offer offer = 1; + + // Optional. Price reference ID for the offer. Only for offers that require + // additional price information. Used to guarantee that the pricing is + // consistent between quoting the offer and placing the order. + string price_reference_id = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for @@ -2167,7 +2188,8 @@ message ListSkuGroupsRequest { // Optional. A token identifying a page of results beyond the first page. // Obtained through - // [ListSkuGroups.next_page_token][] of the previous + // [ListSkuGroupsResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupsResponse.next_page_token] + // of the previous // [CloudChannelService.ListSkuGroups][google.cloud.channel.v1.CloudChannelService.ListSkuGroups] // call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -2191,7 +2213,8 @@ message ListSkuGroupBillableSkusRequest { // Optional. A token identifying a page of results beyond the first page. // Obtained through - // [ListSkuGroupBillableSkus.next_page_token][] of the previous + // [ListSkuGroupBillableSkusResponse.next_page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusResponse.next_page_token] + // of the previous // [CloudChannelService.ListSkuGroupBillableSkus][google.cloud.channel.v1.CloudChannelService.ListSkuGroupBillableSkus] // call. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -2203,8 +2226,9 @@ message ListSkuGroupsResponse { repeated SkuGroup sku_groups = 1; // A token to retrieve the next page of results. - // Pass to [ListSkuGroups.page_token][] to obtain that - // page. + // Pass to + // [ListSkuGroupsRequest.page_token][google.cloud.channel.v1.ListSkuGroupsRequest.page_token] + // to obtain that page. string next_page_token = 2; } @@ -2214,8 +2238,9 @@ message ListSkuGroupBillableSkusResponse { repeated BillableSku billable_skus = 1; // A token to retrieve the next page of results. - // Pass to [ListSkuGroupBillableSkus.page_token][] to obtain that - // page. + // Pass to + // [ListSkuGroupBillableSkusRequest.page_token][google.cloud.channel.v1.ListSkuGroupBillableSkusRequest.page_token] + // to obtain that page. string next_page_token = 2; } @@ -2356,7 +2381,8 @@ message TransferEntitlementsToGoogleRequest { string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; } -// Request message for [CloudChannelService.ChangeParametersRequest][]. +// Request message for +// [CloudChannelService.ChangeParameters][google.cloud.channel.v1.CloudChannelService.ChangeParameters]. message ChangeParametersRequest { // Required. The name of the entitlement to update. // Name uses the format: @@ -2461,6 +2487,11 @@ message ChangeOfferRequest { // This field is only relevant for multi-currency accounts. It should be // left empty for single currency accounts. string billing_account = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Price reference ID for the offer. Only for offers that require + // additional price information. Used to guarantee that the pricing is + // consistent between quoting the offer and placing the order. + string price_reference_id = 8 [(google.api.field_behavior) = OPTIONAL]; } // Request message for @@ -2673,6 +2704,9 @@ message ListOffersRequest { // Response message for ListOffers. message ListOffersResponse { // The list of Offers requested. + // + // The pricing information for each Offer only includes the base price. + // Effective prices and discounts aren't populated. repeated Offer offers = 1; // A token to retrieve the next page of results. @@ -2843,6 +2877,11 @@ message ListPurchasableOffersResponse { message PurchasableOffer { // Offer. Offer offer = 1; + + // Optional. Price reference ID for the offer. Only for offers that require + // additional price information. Used to guarantee that the pricing is + // consistent between quoting the offer and placing the order. + string price_reference_id = 2 [(google.api.field_behavior) = OPTIONAL]; } // Request message for QueryEligibleBillingAccounts. @@ -2889,12 +2928,22 @@ message BillingAccountPurchaseInfo { // Request Message for RegisterSubscriber. message RegisterSubscriberRequest { - // Required. Resource name of the account. - string account = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. Resource name of the account. Required if integrator is not + // provided. Otherwise, leave this field empty/unset. + string account = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudchannel.googleapis.com/Account" + } + ]; // Required. Service account that provides subscriber access to the registered // topic. string service_account = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Resource name of the integrator. Required if account is not + // provided. Otherwise, leave this field empty/unset. + optional string integrator = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response Message for RegisterSubscriber. @@ -2905,12 +2954,22 @@ message RegisterSubscriberResponse { // Request Message for UnregisterSubscriber. message UnregisterSubscriberRequest { - // Required. Resource name of the account. - string account = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. Resource name of the account. Required if integrator is not + // provided. Otherwise, leave this field empty/unset. + string account = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudchannel.googleapis.com/Account" + } + ]; // Required. Service account to unregister from subscriber access to the // topic. string service_account = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Resource name of the integrator. Required if account is not + // provided. Otherwise, leave this field empty/unset. + optional string integrator = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response Message for UnregisterSubscriber. @@ -2921,8 +2980,14 @@ message UnregisterSubscriberResponse { // Request Message for ListSubscribers. message ListSubscribersRequest { - // Required. Resource name of the account. - string account = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. Resource name of the account. Required if integrator is not + // provided. Otherwise, leave this field empty/unset. + string account = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudchannel.googleapis.com/Account" + } + ]; // Optional. The maximum number of service accounts to return. The service may // return fewer than this value. If unspecified, returns at most 100 service @@ -2936,6 +3001,10 @@ message ListSubscribersRequest { // When paginating, all other parameters provided to `ListSubscribers` must // match the call that provided the page token. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Resource name of the integrator. Required if account is not + // provided. Otherwise, leave this field empty/unset. + optional string integrator = 4 [(google.api.field_behavior) = OPTIONAL]; } // Response Message for ListSubscribers. diff --git a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto index fffd85d9049c..697d3b4fdac7 100644 --- a/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto +++ b/java-channel/proto-google-cloud-channel-v1/src/main/proto/google/cloud/channel/v1/subscriber_event.proto @@ -43,7 +43,7 @@ message CustomerEvent { type: "cloudchannel.googleapis.com/Customer" }]; - // Type of event which happened on the customer. + // Type of event which happened for the customer. Type event_type = 2; } @@ -100,7 +100,7 @@ message EntitlementEvent { type: "cloudchannel.googleapis.com/Entitlement" }]; - // Type of event which happened on the entitlement. + // Type of event which happened for the entitlement. Type event_type = 2; } diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java index c56357fab88c..9de16c74d963 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOffer.java @@ -46,6 +46,7 @@ public static void asyncChangeOffer() throws Exception { .setPurchaseOrderId("purchaseOrderId2029917384") .setRequestId("requestId693933066") .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); ApiFuture future = cloudChannelServiceClient.changeOfferCallable().futureCall(request); diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java index 00cddc515d67..d3f989f87c0a 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/AsyncChangeOfferLRO.java @@ -47,6 +47,7 @@ public static void asyncChangeOfferLRO() throws Exception { .setPurchaseOrderId("purchaseOrderId2029917384") .setRequestId("requestId693933066") .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); OperationFuture future = cloudChannelServiceClient.changeOfferOperationCallable().futureCall(request); diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java index f95836127e9c..df141466cea5 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/changeoffer/SyncChangeOffer.java @@ -45,6 +45,7 @@ public static void syncChangeOffer() throws Exception { .setPurchaseOrderId("purchaseOrderId2029917384") .setRequestId("requestId693933066") .setBillingAccount("billingAccount708726578") + .setPriceReferenceId("priceReferenceId-5103427") .build(); Entitlement response = cloudChannelServiceClient.changeOfferAsync(request).get(); } diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribers.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribers.java index e2d90d148cbd..7b720465e002 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribers.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribers.java @@ -18,6 +18,7 @@ // [START cloudchannel_v1_generated_CloudChannelService_ListSubscribers_async] import com.google.api.core.ApiFuture; +import com.google.cloud.channel.v1.AccountName; import com.google.cloud.channel.v1.CloudChannelServiceClient; import com.google.cloud.channel.v1.ListSubscribersRequest; @@ -36,9 +37,10 @@ public static void asyncListSubscribers() throws Exception { try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { ListSubscribersRequest request = ListSubscribersRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setIntegrator("integrator-1902360937") .build(); ApiFuture future = cloudChannelServiceClient.listSubscribersPagedCallable().futureCall(request); diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribersPaged.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribersPaged.java index 39abafde67d5..618c5066c02d 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribersPaged.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/AsyncListSubscribersPaged.java @@ -17,6 +17,7 @@ package com.google.cloud.channel.v1.samples; // [START cloudchannel_v1_generated_CloudChannelService_ListSubscribers_Paged_async] +import com.google.cloud.channel.v1.AccountName; import com.google.cloud.channel.v1.CloudChannelServiceClient; import com.google.cloud.channel.v1.ListSubscribersRequest; import com.google.cloud.channel.v1.ListSubscribersResponse; @@ -37,9 +38,10 @@ public static void asyncListSubscribersPaged() throws Exception { try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { ListSubscribersRequest request = ListSubscribersRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setIntegrator("integrator-1902360937") .build(); while (true) { ListSubscribersResponse response = diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/SyncListSubscribers.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/SyncListSubscribers.java index 74db26be5780..f473cd33496a 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/SyncListSubscribers.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/listsubscribers/SyncListSubscribers.java @@ -17,6 +17,7 @@ package com.google.cloud.channel.v1.samples; // [START cloudchannel_v1_generated_CloudChannelService_ListSubscribers_sync] +import com.google.cloud.channel.v1.AccountName; import com.google.cloud.channel.v1.CloudChannelServiceClient; import com.google.cloud.channel.v1.ListSubscribersRequest; @@ -35,9 +36,10 @@ public static void syncListSubscribers() throws Exception { try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { ListSubscribersRequest request = ListSubscribersRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setPageSize(883849137) .setPageToken("pageToken873572522") + .setIntegrator("integrator-1902360937") .build(); for (String element : cloudChannelServiceClient.listSubscribers(request).iterateAll()) { // doThingsWith(element); diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/AsyncRegisterSubscriber.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/AsyncRegisterSubscriber.java index 11287539c08d..3645b8b693f9 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/AsyncRegisterSubscriber.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/AsyncRegisterSubscriber.java @@ -18,6 +18,7 @@ // [START cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_async] import com.google.api.core.ApiFuture; +import com.google.cloud.channel.v1.AccountName; import com.google.cloud.channel.v1.CloudChannelServiceClient; import com.google.cloud.channel.v1.RegisterSubscriberRequest; import com.google.cloud.channel.v1.RegisterSubscriberResponse; @@ -37,8 +38,9 @@ public static void asyncRegisterSubscriber() throws Exception { try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { RegisterSubscriberRequest request = RegisterSubscriberRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); ApiFuture future = cloudChannelServiceClient.registerSubscriberCallable().futureCall(request); diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/SyncRegisterSubscriber.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/SyncRegisterSubscriber.java index 5655c5451d11..37c58f31cd4a 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/SyncRegisterSubscriber.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/registersubscriber/SyncRegisterSubscriber.java @@ -17,6 +17,7 @@ package com.google.cloud.channel.v1.samples; // [START cloudchannel_v1_generated_CloudChannelService_RegisterSubscriber_sync] +import com.google.cloud.channel.v1.AccountName; import com.google.cloud.channel.v1.CloudChannelServiceClient; import com.google.cloud.channel.v1.RegisterSubscriberRequest; import com.google.cloud.channel.v1.RegisterSubscriberResponse; @@ -36,8 +37,9 @@ public static void syncRegisterSubscriber() throws Exception { try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { RegisterSubscriberRequest request = RegisterSubscriberRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); RegisterSubscriberResponse response = cloudChannelServiceClient.registerSubscriber(request); } diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/AsyncUnregisterSubscriber.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/AsyncUnregisterSubscriber.java index 22e96400823f..721c5aa6aff8 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/AsyncUnregisterSubscriber.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/AsyncUnregisterSubscriber.java @@ -18,6 +18,7 @@ // [START cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_async] import com.google.api.core.ApiFuture; +import com.google.cloud.channel.v1.AccountName; import com.google.cloud.channel.v1.CloudChannelServiceClient; import com.google.cloud.channel.v1.UnregisterSubscriberRequest; import com.google.cloud.channel.v1.UnregisterSubscriberResponse; @@ -37,8 +38,9 @@ public static void asyncUnregisterSubscriber() throws Exception { try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { UnregisterSubscriberRequest request = UnregisterSubscriberRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); ApiFuture future = cloudChannelServiceClient.unregisterSubscriberCallable().futureCall(request); diff --git a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/SyncUnregisterSubscriber.java b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/SyncUnregisterSubscriber.java index 8d9929dcb7f4..680d92db6ce8 100644 --- a/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/SyncUnregisterSubscriber.java +++ b/java-channel/samples/snippets/generated/com/google/cloud/channel/v1/cloudchannelservice/unregistersubscriber/SyncUnregisterSubscriber.java @@ -17,6 +17,7 @@ package com.google.cloud.channel.v1.samples; // [START cloudchannel_v1_generated_CloudChannelService_UnregisterSubscriber_sync] +import com.google.cloud.channel.v1.AccountName; import com.google.cloud.channel.v1.CloudChannelServiceClient; import com.google.cloud.channel.v1.UnregisterSubscriberRequest; import com.google.cloud.channel.v1.UnregisterSubscriberResponse; @@ -36,8 +37,9 @@ public static void syncUnregisterSubscriber() throws Exception { try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) { UnregisterSubscriberRequest request = UnregisterSubscriberRequest.newBuilder() - .setAccount("account-1177318867") + .setAccount(AccountName.of("[ACCOUNT]").toString()) .setServiceAccount("serviceAccount1079137720") + .setIntegrator("integrator-1902360937") .build(); UnregisterSubscriberResponse response = cloudChannelServiceClient.unregisterSubscriber(request); diff --git a/java-chat/README.md b/java-chat/README.md index 7952938d5c84..f284079ae2d4 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.42.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.42.0' +implementation 'com.google.cloud:google-cloud-chat:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.44.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.44.0 [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 diff --git a/java-chronicle/README.md b/java-chronicle/README.md index 4f64e6dccd73..ee6e14c8be69 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.16.0 + 0.18.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.16.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.16.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.18.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.16.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.18.0 [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 diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index b71aa72e9fbb..d2e1497d3cdf 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.80.0 + 3.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.80.0' +implementation 'com.google.cloud:google-cloud-build:3.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.82.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.82.0 [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 diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java index 360c89c9342b..202adece4769 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClient.java @@ -33,18 +33,23 @@ import com.google.cloudbuild.v1.ApprovalResult; import com.google.cloudbuild.v1.ApproveBuildRequest; import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.BuildName; import com.google.cloudbuild.v1.BuildOperationMetadata; import com.google.cloudbuild.v1.BuildTrigger; +import com.google.cloudbuild.v1.BuildTriggerName; import com.google.cloudbuild.v1.CancelBuildRequest; import com.google.cloudbuild.v1.CreateBuildRequest; import com.google.cloudbuild.v1.CreateBuildTriggerRequest; import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.CreateWorkerPoolRequest; +import com.google.cloudbuild.v1.DefaultServiceAccount; +import com.google.cloudbuild.v1.DefaultServiceAccountName; import com.google.cloudbuild.v1.DeleteBuildTriggerRequest; import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.DeleteWorkerPoolRequest; import com.google.cloudbuild.v1.GetBuildRequest; import com.google.cloudbuild.v1.GetBuildTriggerRequest; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; import com.google.cloudbuild.v1.GetWorkerPoolRequest; import com.google.cloudbuild.v1.ListBuildTriggersRequest; import com.google.cloudbuild.v1.ListBuildTriggersResponse; @@ -53,6 +58,7 @@ import com.google.cloudbuild.v1.ListWorkerPoolsRequest; import com.google.cloudbuild.v1.ListWorkerPoolsResponse; import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; import com.google.cloudbuild.v1.ReceiveTriggerWebhookRequest; import com.google.cloudbuild.v1.ReceiveTriggerWebhookResponse; import com.google.cloudbuild.v1.RepoSource; @@ -92,9 +98,8 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { - * String projectId = "projectId-894832108"; - * String id = "id3355"; - * Build response = cloudBuildClient.getBuild(projectId, id); + * BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + * Build response = cloudBuildClient.getBuild(name); * } * }
        * @@ -119,6 +124,9 @@ *
      *

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

      *
        + *
      • createBuildAsync(LocationName parent) + *

      • createBuildAsync(ProjectName parent) + *

      • createBuildAsync(String parent) *

      • createBuildAsync(String projectId, Build build) *

      *

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

      @@ -139,6 +147,8 @@ *
    *

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

    *
      + *
    • getBuild(BuildName name) + *

    • getBuild(String name) *

    • getBuild(String projectId, String id) *

    *

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

    @@ -177,6 +187,8 @@ *
*

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

*
    + *
  • cancelBuild(BuildName name) + *

  • cancelBuild(String name) *

  • cancelBuild(String projectId, String id) *

*

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

@@ -210,6 +222,8 @@ * *

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

*
    + *
  • retryBuildAsync(BuildName name) + *

  • retryBuildAsync(String name) *

  • retryBuildAsync(String projectId, String id) *

*

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

@@ -222,7 +236,7 @@ * *

ApproveBuild *

Approves or rejects a pending build. - *

If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. + *

If approved, the returned long-running operation (LRO) will be analogous to the LRO returned from a CreateBuild call. *

If rejected, the returned LRO will be immediately done. * *

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

@@ -242,8 +256,7 @@ * * *

CreateBuildTrigger - *

Creates a new `BuildTrigger`. - *

This API is experimental. + *

Creates a new `BuildTrigger`. * *

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

*
    @@ -251,6 +264,9 @@ *
*

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

*
    + *
  • createBuildTrigger(LocationName parent) + *

  • createBuildTrigger(ProjectName parent) + *

  • createBuildTrigger(String parent) *

  • createBuildTrigger(String projectId, BuildTrigger trigger) *

*

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

@@ -261,8 +277,7 @@ * * *

GetBuildTrigger - *

Returns information about a `BuildTrigger`. - *

This API is experimental. + *

Returns information about a `BuildTrigger`. * *

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

*
    @@ -270,6 +285,8 @@ *
*

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

*
    + *
  • getBuildTrigger(BuildTriggerName name) + *

  • getBuildTrigger(String name) *

  • getBuildTrigger(String projectId, String triggerId) *

*

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

@@ -280,8 +297,7 @@ * * *

ListBuildTriggers - *

Lists existing `BuildTrigger`s. - *

This API is experimental. + *

Lists existing `BuildTrigger`s. * *

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

*
    @@ -300,8 +316,7 @@ * * *

    DeleteBuildTrigger - *

    Deletes a `BuildTrigger` by its project ID and trigger ID. - *

    This API is experimental. + *

    Deletes a `BuildTrigger` by its project ID and trigger ID. * *

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

    *
      @@ -309,6 +324,8 @@ *
    *

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

    *
      + *
    • deleteBuildTrigger(BuildTriggerName name) + *

    • deleteBuildTrigger(String name) *

    • deleteBuildTrigger(String projectId, String triggerId) *

    *

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

    @@ -319,8 +336,7 @@ * * *

    UpdateBuildTrigger - *

    Updates a `BuildTrigger` by its project ID and trigger ID. - *

    This API is experimental. + *

    Updates a `BuildTrigger` by its project ID and trigger ID. * *

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

    *
      @@ -468,6 +484,25 @@ *
    * * + * + *

    GetDefaultServiceAccount + *

    Returns the `DefaultServiceAccount` used by the project. + * + *

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

    + *
      + *
    • getDefaultServiceAccount(GetDefaultServiceAccountRequest request) + *

    + *

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

    + *
      + *
    • getDefaultServiceAccount(DefaultServiceAccountName name) + *

    • getDefaultServiceAccount(String name) + *

    + *

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

    + *
      + *
    • getDefaultServiceAccountCallable() + *

    + * + * * * *

    See the individual methods for example code. @@ -595,6 +630,103 @@ public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts a build with the specified configuration. + * + *

    This method returns a long-running `Operation`, which includes the build ID. Pass the build + * ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`). + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   Build response = cloudBuildClient.createBuildAsync(parent).get();
    +   * }
    +   * }
    + * + * @param parent The parent resource where this build will be created. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBuildAsync( + LocationName parent) { + CreateBuildRequest request = + CreateBuildRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return createBuildAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts a build with the specified configuration. + * + *

    This method returns a long-running `Operation`, which includes the build ID. Pass the build + * ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`). + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   Build response = cloudBuildClient.createBuildAsync(parent).get();
    +   * }
    +   * }
    + * + * @param parent The parent resource where this build will be created. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBuildAsync(ProjectName parent) { + CreateBuildRequest request = + CreateBuildRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return createBuildAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Starts a build with the specified configuration. + * + *

    This method returns a long-running `Operation`, which includes the build ID. Pass the build + * ID to `GetBuild` to determine the build status (such as `SUCCESS` or `FAILURE`). + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   String parent = ProjectName.of("[PROJECT]").toString();
    +   *   Build response = cloudBuildClient.createBuildAsync(parent).get();
    +   * }
    +   * }
    + * + * @param parent The parent resource where this build will be created. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBuildAsync(String parent) { + CreateBuildRequest request = CreateBuildRequest.newBuilder().setParent(parent).build(); + return createBuildAsync(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Starts a build with the specified configuration. @@ -646,7 +778,7 @@ public final OperationFuture createBuildAsync( * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { * CreateBuildRequest request = * CreateBuildRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setProjectId("projectId-894832108") * .setBuild(Build.newBuilder().build()) * .build(); @@ -680,7 +812,7 @@ public final OperationFuture createBuildAsync( * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { * CreateBuildRequest request = * CreateBuildRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setProjectId("projectId-894832108") * .setBuild(Build.newBuilder().build()) * .build(); @@ -714,7 +846,7 @@ public final OperationFuture createBuildAsync( * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { * CreateBuildRequest request = * CreateBuildRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setProjectId("projectId-894832108") * .setBuild(Build.newBuilder().build()) * .build(); @@ -728,6 +860,67 @@ public final UnaryCallable createBuildCallable() return stub.createBuildCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns information about a previously requested build. + * + *

    The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or + * `WORKING`), and timing information. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
    +   *   Build response = cloudBuildClient.getBuild(name);
    +   * }
    +   * }
    + * + * @param name The name of the `Build` to retrieve. Format: + * `projects/{project}/locations/{location}/builds/{build}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Build getBuild(BuildName name) { + GetBuildRequest request = + GetBuildRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBuild(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns information about a previously requested build. + * + *

    The `Build` that is returned includes its status (such as `SUCCESS`, `FAILURE`, or + * `WORKING`), and timing information. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   String name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString();
    +   *   Build response = cloudBuildClient.getBuild(name);
    +   * }
    +   * }
    + * + * @param name The name of the `Build` to retrieve. Format: + * `projects/{project}/locations/{location}/builds/{build}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Build getBuild(String name) { + GetBuildRequest request = GetBuildRequest.newBuilder().setName(name).build(); + return getBuild(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns information about a previously requested build. @@ -877,7 +1070,7 @@ public final ListBuildsPagedResponse listBuilds(String projectId, String filter) * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { * ListBuildsRequest request = * ListBuildsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setProjectId("projectId-894832108") * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -914,7 +1107,7 @@ public final ListBuildsPagedResponse listBuilds(ListBuildsRequest request) { * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { * ListBuildsRequest request = * ListBuildsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setProjectId("projectId-894832108") * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -950,7 +1143,7 @@ public final UnaryCallable listBuild * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { * ListBuildsRequest request = * ListBuildsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(ProjectName.of("[PROJECT]").toString()) * .setProjectId("projectId-894832108") * .setPageSize(883849137) * .setPageToken("pageToken873572522") @@ -975,6 +1168,61 @@ public final UnaryCallable listBuildsCall return stub.listBuildsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels a build in progress. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
    +   *   Build response = cloudBuildClient.cancelBuild(name);
    +   * }
    +   * }
    + * + * @param name The name of the `Build` to cancel. Format: + * `projects/{project}/locations/{location}/builds/{build}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Build cancelBuild(BuildName name) { + CancelBuildRequest request = + CancelBuildRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return cancelBuild(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels a build in progress. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   String name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString();
    +   *   Build response = cloudBuildClient.cancelBuild(name);
    +   * }
    +   * }
    + * + * @param name The name of the `Build` to cancel. Format: + * `projects/{project}/locations/{location}/builds/{build}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Build cancelBuild(String name) { + CancelBuildRequest request = CancelBuildRequest.newBuilder().setName(name).build(); + return cancelBuild(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Cancels a build in progress. @@ -1063,6 +1311,121 @@ public final UnaryCallable cancelBuildCallable() { return stub.cancelBuildCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new build based on the specified build. + * + *

    This method creates a new build using the original build request, which may or may not + * result in an identical build. + * + *

    For triggered builds: + * + *

      + *
    • Triggered builds resolve to a precise revision; therefore a retry of a triggered build + * will result in a build that uses the same revision. + *
    + * + *

    For non-triggered builds that specify `RepoSource`: + * + *

      + *
    • If the original build built from the tip of a branch, the retried build will build from + * the tip of that branch, which may not be the same revision as the original build. + *
    • If the original build specified a commit sha or revision ID, the retried build will use + * the identical source. + *
    + * + *

    For builds that specify `StorageSource`: + * + *

      + *
    • If the original build pulled source from Cloud Storage without specifying the generation + * of the object, the new build will use the current object, which may be different from the + * original build source. + *
    • If the original build pulled source from Cloud Storage and specified the generation of + * the object, the new build will attempt to use the same object, which may or may not be + * available depending on the bucket's lifecycle management settings. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]");
    +   *   Build response = cloudBuildClient.retryBuildAsync(name).get();
    +   * }
    +   * }
    + * + * @param name The name of the `Build` to retry. Format: + * `projects/{project}/locations/{location}/builds/{build}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture retryBuildAsync(BuildName name) { + RetryBuildRequest request = + RetryBuildRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return retryBuildAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new build based on the specified build. + * + *

    This method creates a new build using the original build request, which may or may not + * result in an identical build. + * + *

    For triggered builds: + * + *

      + *
    • Triggered builds resolve to a precise revision; therefore a retry of a triggered build + * will result in a build that uses the same revision. + *
    + * + *

    For non-triggered builds that specify `RepoSource`: + * + *

      + *
    • If the original build built from the tip of a branch, the retried build will build from + * the tip of that branch, which may not be the same revision as the original build. + *
    • If the original build specified a commit sha or revision ID, the retried build will use + * the identical source. + *
    + * + *

    For builds that specify `StorageSource`: + * + *

      + *
    • If the original build pulled source from Cloud Storage without specifying the generation + * of the object, the new build will use the current object, which may be different from the + * original build source. + *
    • If the original build pulled source from Cloud Storage and specified the generation of + * the object, the new build will attempt to use the same object, which may or may not be + * available depending on the bucket's lifecycle management settings. + *
    + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   String name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString();
    +   *   Build response = cloudBuildClient.retryBuildAsync(name).get();
    +   * }
    +   * }
    + * + * @param name The name of the `Build` to retry. Format: + * `projects/{project}/locations/{location}/builds/{build}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture retryBuildAsync(String name) { + RetryBuildRequest request = RetryBuildRequest.newBuilder().setName(name).build(); + return retryBuildAsync(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a new build based on the specified build. @@ -1308,7 +1671,8 @@ public final UnaryCallable retryBuildCallable() { /** * Approves or rejects a pending build. * - *

    If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. + *

    If approved, the returned long-running operation (LRO) will be analogous to the LRO returned + * from a CreateBuild call. * *

    If rejected, the returned LRO will be immediately done. * @@ -1343,7 +1707,8 @@ public final OperationFuture approveBuildAsync( /** * Approves or rejects a pending build. * - *

    If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. + *

    If approved, the returned long-running operation (LRO) will be analogous to the LRO returned + * from a CreateBuild call. * *

    If rejected, the returned LRO will be immediately done. * @@ -1377,7 +1742,8 @@ public final OperationFuture approveBuildAsync( /** * Approves or rejects a pending build. * - *

    If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. + *

    If approved, the returned long-running operation (LRO) will be analogous to the LRO returned + * from a CreateBuild call. * *

    If rejected, the returned LRO will be immediately done. * @@ -1411,7 +1777,8 @@ public final OperationFuture approveBuildAsync( /** * Approves or rejects a pending build. * - *

    If approved, the returned LRO will be analogous to the LRO returned from a CreateBuild call. + *

    If approved, the returned long-running operation (LRO) will be analogous to the LRO returned + * from a CreateBuild call. * *

    If rejected, the returned LRO will be immediately done. * @@ -1443,7 +1810,93 @@ public final UnaryCallable approveBuildCallable( /** * Creates a new `BuildTrigger`. * - *

    This API is experimental. + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   BuildTrigger response = cloudBuildClient.createBuildTrigger(parent);
    +   * }
    +   * }
    + * + * @param parent The parent resource where this trigger will be created. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BuildTrigger createBuildTrigger(LocationName parent) { + CreateBuildTriggerRequest request = + CreateBuildTriggerRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return createBuildTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `BuildTrigger`. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   ProjectName parent = ProjectName.of("[PROJECT]");
    +   *   BuildTrigger response = cloudBuildClient.createBuildTrigger(parent);
    +   * }
    +   * }
    + * + * @param parent The parent resource where this trigger will be created. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BuildTrigger createBuildTrigger(ProjectName parent) { + CreateBuildTriggerRequest request = + CreateBuildTriggerRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return createBuildTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `BuildTrigger`. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   String parent = ProjectName.of("[PROJECT]").toString();
    +   *   BuildTrigger response = cloudBuildClient.createBuildTrigger(parent);
    +   * }
    +   * }
    + * + * @param parent The parent resource where this trigger will be created. Format: + * `projects/{project}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BuildTrigger createBuildTrigger(String parent) { + CreateBuildTriggerRequest request = + CreateBuildTriggerRequest.newBuilder().setParent(parent).build(); + return createBuildTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new `BuildTrigger`. * *

    Sample code: * @@ -1474,8 +1927,6 @@ public final BuildTrigger createBuildTrigger(String projectId, BuildTrigger trig /** * Creates a new `BuildTrigger`. * - *

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1487,7 +1938,7 @@ public final BuildTrigger createBuildTrigger(String projectId, BuildTrigger trig
        * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
        *   CreateBuildTriggerRequest request =
        *       CreateBuildTriggerRequest.newBuilder()
    -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
        *           .setProjectId("projectId-894832108")
        *           .setTrigger(BuildTrigger.newBuilder().build())
        *           .build();
    @@ -1506,8 +1957,6 @@ public final BuildTrigger createBuildTrigger(CreateBuildTriggerRequest request)
       /**
        * Creates a new `BuildTrigger`.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1519,7 +1968,7 @@ public final BuildTrigger createBuildTrigger(CreateBuildTriggerRequest request)
        * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
        *   CreateBuildTriggerRequest request =
        *       CreateBuildTriggerRequest.newBuilder()
    -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
        *           .setProjectId("projectId-894832108")
        *           .setTrigger(BuildTrigger.newBuilder().build())
        *           .build();
    @@ -1538,7 +1987,60 @@ public final UnaryCallable createBuildT
       /**
        * Returns information about a `BuildTrigger`.
        *
    -   * 

    This API is experimental. + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]");
    +   *   BuildTrigger response = cloudBuildClient.getBuildTrigger(name);
    +   * }
    +   * }
    + * + * @param name The name of the `Trigger` to retrieve. Format: + * `projects/{project}/locations/{location}/triggers/{trigger}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BuildTrigger getBuildTrigger(BuildTriggerName name) { + GetBuildTriggerRequest request = + GetBuildTriggerRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBuildTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns information about a `BuildTrigger`. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   String name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString();
    +   *   BuildTrigger response = cloudBuildClient.getBuildTrigger(name);
    +   * }
    +   * }
    + * + * @param name The name of the `Trigger` to retrieve. Format: + * `projects/{project}/locations/{location}/triggers/{trigger}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BuildTrigger getBuildTrigger(String name) { + GetBuildTriggerRequest request = GetBuildTriggerRequest.newBuilder().setName(name).build(); + return getBuildTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns information about a `BuildTrigger`. * *

    Sample code: * @@ -1569,8 +2071,6 @@ public final BuildTrigger getBuildTrigger(String projectId, String triggerId) { /** * Returns information about a `BuildTrigger`. * - *

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1601,8 +2101,6 @@ public final BuildTrigger getBuildTrigger(GetBuildTriggerRequest request) {
       /**
        * Returns information about a `BuildTrigger`.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1633,8 +2131,6 @@ public final UnaryCallable getBuildTrigger
       /**
        * Lists existing `BuildTrigger`s.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1664,8 +2160,6 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(String projectId)
       /**
        * Lists existing `BuildTrigger`s.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1677,7 +2171,7 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(String projectId)
        * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
        *   ListBuildTriggersRequest request =
        *       ListBuildTriggersRequest.newBuilder()
    -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
        *           .setProjectId("projectId-894832108")
        *           .setPageSize(883849137)
        *           .setPageToken("pageToken873572522")
    @@ -1699,8 +2193,6 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
       /**
        * Lists existing `BuildTrigger`s.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1712,7 +2204,7 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
        * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
        *   ListBuildTriggersRequest request =
        *       ListBuildTriggersRequest.newBuilder()
    -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
        *           .setProjectId("projectId-894832108")
        *           .setPageSize(883849137)
        *           .setPageToken("pageToken873572522")
    @@ -1735,8 +2227,6 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
       /**
        * Lists existing `BuildTrigger`s.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1748,7 +2238,7 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
        * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
        *   ListBuildTriggersRequest request =
        *       ListBuildTriggersRequest.newBuilder()
    -   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .setParent(ProjectName.of("[PROJECT]").toString())
        *           .setProjectId("projectId-894832108")
        *           .setPageSize(883849137)
        *           .setPageToken("pageToken873572522")
    @@ -1778,7 +2268,63 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
       /**
        * Deletes a `BuildTrigger` by its project ID and trigger ID.
        *
    -   * 

    This API is experimental. + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]");
    +   *   cloudBuildClient.deleteBuildTrigger(name);
    +   * }
    +   * }
    + * + * @param name The name of the `Trigger` to delete. Format: + * `projects/{project}/locations/{location}/triggers/{trigger}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBuildTrigger(BuildTriggerName name) { + DeleteBuildTriggerRequest request = + DeleteBuildTriggerRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteBuildTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `BuildTrigger` by its project ID and trigger ID. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   String name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString();
    +   *   cloudBuildClient.deleteBuildTrigger(name);
    +   * }
    +   * }
    + * + * @param name The name of the `Trigger` to delete. Format: + * `projects/{project}/locations/{location}/triggers/{trigger}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteBuildTrigger(String name) { + DeleteBuildTriggerRequest request = + DeleteBuildTriggerRequest.newBuilder().setName(name).build(); + deleteBuildTrigger(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a `BuildTrigger` by its project ID and trigger ID. * *

    Sample code: * @@ -1812,8 +2358,6 @@ public final void deleteBuildTrigger(String projectId, String triggerId) { /** * Deletes a `BuildTrigger` by its project ID and trigger ID. * - *

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1844,8 +2388,6 @@ public final void deleteBuildTrigger(DeleteBuildTriggerRequest request) {
       /**
        * Deletes a `BuildTrigger` by its project ID and trigger ID.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1875,8 +2417,6 @@ public final UnaryCallable deleteBuildTriggerC
       /**
        * Updates a `BuildTrigger` by its project ID and trigger ID.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1913,8 +2453,6 @@ public final BuildTrigger updateBuildTrigger(
       /**
        * Updates a `BuildTrigger` by its project ID and trigger ID.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -1946,8 +2484,6 @@ public final BuildTrigger updateBuildTrigger(UpdateBuildTriggerRequest request)
       /**
        * Updates a `BuildTrigger` by its project ID and trigger ID.
        *
    -   * 

    This API is experimental. - * *

    Sample code: * *

    {@code
    @@ -2652,7 +3188,7 @@ public final UnaryCallable deleteWorkerPoolC
        * @param workerPool Required. The `WorkerPool` to update.
        *     

    The `name` field is used to identify the `WorkerPool` to update. Format: * `projects/{project}/locations/{location}/workerPools/{workerPool}`. - * @param updateMask A mask specifying which fields in `worker_pool` to update. + * @param updateMask Optional. A mask specifying which fields in `worker_pool` to update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture updateWorkerPoolAsync( @@ -2922,6 +3458,122 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(ListWorkerPoolsRequest return stub.listWorkerPoolsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the `DefaultServiceAccount` used by the project. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   DefaultServiceAccountName name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]");
    +   *   DefaultServiceAccount response = cloudBuildClient.getDefaultServiceAccount(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the `DefaultServiceAccount` to retrieve. Format: + * `projects/{project}/locations/{location}/defaultServiceAccount` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DefaultServiceAccount getDefaultServiceAccount(DefaultServiceAccountName name) { + GetDefaultServiceAccountRequest request = + GetDefaultServiceAccountRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDefaultServiceAccount(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the `DefaultServiceAccount` used by the project. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   String name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString();
    +   *   DefaultServiceAccount response = cloudBuildClient.getDefaultServiceAccount(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the `DefaultServiceAccount` to retrieve. Format: + * `projects/{project}/locations/{location}/defaultServiceAccount` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DefaultServiceAccount getDefaultServiceAccount(String name) { + GetDefaultServiceAccountRequest request = + GetDefaultServiceAccountRequest.newBuilder().setName(name).build(); + return getDefaultServiceAccount(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the `DefaultServiceAccount` used by the project. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   GetDefaultServiceAccountRequest request =
    +   *       GetDefaultServiceAccountRequest.newBuilder()
    +   *           .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .build();
    +   *   DefaultServiceAccount response = cloudBuildClient.getDefaultServiceAccount(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 DefaultServiceAccount getDefaultServiceAccount( + GetDefaultServiceAccountRequest request) { + return getDefaultServiceAccountCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the `DefaultServiceAccount` used by the project. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
    +   *   GetDefaultServiceAccountRequest request =
    +   *       GetDefaultServiceAccountRequest.newBuilder()
    +   *           .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       cloudBuildClient.getDefaultServiceAccountCallable().futureCall(request);
    +   *   // Do something.
    +   *   DefaultServiceAccount response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + getDefaultServiceAccountCallable() { + return stub.getDefaultServiceAccountCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java index 2ee468284e35..4620b4720195 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java @@ -43,11 +43,13 @@ import com.google.cloudbuild.v1.CreateBuildTriggerRequest; import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.CreateWorkerPoolRequest; +import com.google.cloudbuild.v1.DefaultServiceAccount; import com.google.cloudbuild.v1.DeleteBuildTriggerRequest; import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.DeleteWorkerPoolRequest; import com.google.cloudbuild.v1.GetBuildRequest; import com.google.cloudbuild.v1.GetBuildTriggerRequest; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; import com.google.cloudbuild.v1.GetWorkerPoolRequest; import com.google.cloudbuild.v1.ListBuildTriggersRequest; import com.google.cloudbuild.v1.ListBuildTriggersResponse; @@ -286,6 +288,12 @@ public UnaryCallSettings updateWorkerPoolSet return ((CloudBuildStubSettings) getStubSettings()).listWorkerPoolsSettings(); } + /** Returns the object with the settings used for calls to getDefaultServiceAccount. */ + public UnaryCallSettings + getDefaultServiceAccountSettings() { + return ((CloudBuildStubSettings) getStubSettings()).getDefaultServiceAccountSettings(); + } + public static final CloudBuildSettings create(CloudBuildStubSettings stub) throws IOException { return new CloudBuildSettings.Builder(stub.toBuilder()).build(); } @@ -545,6 +553,12 @@ public UnaryCallSettings.Builder getWorkerPool return getStubSettingsBuilder().listWorkerPoolsSettings(); } + /** Returns the builder for the settings used for calls to getDefaultServiceAccount. */ + public UnaryCallSettings.Builder + getDefaultServiceAccountSettings() { + return getStubSettingsBuilder().getDefaultServiceAccountSettings(); + } + @Override public CloudBuildSettings build() throws IOException { return new CloudBuildSettings(this); diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json index 1b680cf9b072..d39b7f899da6 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/gapic_metadata.json @@ -14,28 +14,31 @@ "methods": ["approveBuildAsync", "approveBuildAsync", "approveBuildOperationCallable", "approveBuildCallable"] }, "CancelBuild": { - "methods": ["cancelBuild", "cancelBuild", "cancelBuildCallable"] + "methods": ["cancelBuild", "cancelBuild", "cancelBuild", "cancelBuild", "cancelBuildCallable"] }, "CreateBuild": { - "methods": ["createBuildAsync", "createBuildAsync", "createBuildOperationCallable", "createBuildCallable"] + "methods": ["createBuildAsync", "createBuildAsync", "createBuildAsync", "createBuildAsync", "createBuildAsync", "createBuildOperationCallable", "createBuildCallable"] }, "CreateBuildTrigger": { - "methods": ["createBuildTrigger", "createBuildTrigger", "createBuildTriggerCallable"] + "methods": ["createBuildTrigger", "createBuildTrigger", "createBuildTrigger", "createBuildTrigger", "createBuildTrigger", "createBuildTriggerCallable"] }, "CreateWorkerPool": { "methods": ["createWorkerPoolAsync", "createWorkerPoolAsync", "createWorkerPoolAsync", "createWorkerPoolOperationCallable", "createWorkerPoolCallable"] }, "DeleteBuildTrigger": { - "methods": ["deleteBuildTrigger", "deleteBuildTrigger", "deleteBuildTriggerCallable"] + "methods": ["deleteBuildTrigger", "deleteBuildTrigger", "deleteBuildTrigger", "deleteBuildTrigger", "deleteBuildTriggerCallable"] }, "DeleteWorkerPool": { "methods": ["deleteWorkerPoolAsync", "deleteWorkerPoolAsync", "deleteWorkerPoolAsync", "deleteWorkerPoolOperationCallable", "deleteWorkerPoolCallable"] }, "GetBuild": { - "methods": ["getBuild", "getBuild", "getBuildCallable"] + "methods": ["getBuild", "getBuild", "getBuild", "getBuild", "getBuildCallable"] }, "GetBuildTrigger": { - "methods": ["getBuildTrigger", "getBuildTrigger", "getBuildTriggerCallable"] + "methods": ["getBuildTrigger", "getBuildTrigger", "getBuildTrigger", "getBuildTrigger", "getBuildTriggerCallable"] + }, + "GetDefaultServiceAccount": { + "methods": ["getDefaultServiceAccount", "getDefaultServiceAccount", "getDefaultServiceAccount", "getDefaultServiceAccountCallable"] }, "GetWorkerPool": { "methods": ["getWorkerPool", "getWorkerPool", "getWorkerPool", "getWorkerPoolCallable"] @@ -53,7 +56,7 @@ "methods": ["receiveTriggerWebhook", "receiveTriggerWebhookCallable"] }, "RetryBuild": { - "methods": ["retryBuildAsync", "retryBuildAsync", "retryBuildOperationCallable", "retryBuildCallable"] + "methods": ["retryBuildAsync", "retryBuildAsync", "retryBuildAsync", "retryBuildAsync", "retryBuildOperationCallable", "retryBuildCallable"] }, "RunBuildTrigger": { "methods": ["runBuildTriggerAsync", "runBuildTriggerAsync", "runBuildTriggerOperationCallable", "runBuildTriggerCallable"] diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java index 1187bb060929..9eb55aac4646 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java @@ -38,9 +38,8 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { - * String projectId = "projectId-894832108"; - * String id = "id3355"; - * Build response = cloudBuildClient.getBuild(projectId, id); + * BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + * Build response = cloudBuildClient.getBuild(name); * } * }
    */ diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java index 68d388f666ee..1dac05229d69 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStub.java @@ -32,11 +32,13 @@ import com.google.cloudbuild.v1.CreateBuildTriggerRequest; import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.CreateWorkerPoolRequest; +import com.google.cloudbuild.v1.DefaultServiceAccount; import com.google.cloudbuild.v1.DeleteBuildTriggerRequest; import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.DeleteWorkerPoolRequest; import com.google.cloudbuild.v1.GetBuildRequest; import com.google.cloudbuild.v1.GetBuildTriggerRequest; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; import com.google.cloudbuild.v1.GetWorkerPoolRequest; import com.google.cloudbuild.v1.ListBuildTriggersRequest; import com.google.cloudbuild.v1.ListBuildTriggersResponse; @@ -197,6 +199,11 @@ public UnaryCallable listWorker throw new UnsupportedOperationException("Not implemented: listWorkerPoolsCallable()"); } + public UnaryCallable + getDefaultServiceAccountCallable() { + throw new UnsupportedOperationException("Not implemented: getDefaultServiceAccountCallable()"); + } + @Override public abstract void close(); } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java index 35325bb4804d..fa76db1d5bb4 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java @@ -59,11 +59,13 @@ import com.google.cloudbuild.v1.CreateBuildTriggerRequest; import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.CreateWorkerPoolRequest; +import com.google.cloudbuild.v1.DefaultServiceAccount; import com.google.cloudbuild.v1.DeleteBuildTriggerRequest; import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.DeleteWorkerPoolRequest; import com.google.cloudbuild.v1.GetBuildRequest; import com.google.cloudbuild.v1.GetBuildTriggerRequest; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; import com.google.cloudbuild.v1.GetWorkerPoolRequest; import com.google.cloudbuild.v1.ListBuildTriggersRequest; import com.google.cloudbuild.v1.ListBuildTriggersResponse; @@ -213,6 +215,8 @@ public class CloudBuildStubSettings extends StubSettings private final PagedCallSettings< ListWorkerPoolsRequest, ListWorkerPoolsResponse, ListWorkerPoolsPagedResponse> listWorkerPoolsSettings; + private final UnaryCallSettings + getDefaultServiceAccountSettings; private static final PagedListDescriptor LIST_BUILDS_PAGE_STR_DESC = @@ -518,6 +522,12 @@ public UnaryCallSettings updateWorkerPoolSet return listWorkerPoolsSettings; } + /** Returns the object with the settings used for calls to getDefaultServiceAccount. */ + public UnaryCallSettings + getDefaultServiceAccountSettings() { + return getDefaultServiceAccountSettings; + } + public CloudBuildStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -654,6 +664,7 @@ protected CloudBuildStubSettings(Builder settingsBuilder) throws IOException { updateWorkerPoolSettings = settingsBuilder.updateWorkerPoolSettings().build(); updateWorkerPoolOperationSettings = settingsBuilder.updateWorkerPoolOperationSettings().build(); listWorkerPoolsSettings = settingsBuilder.listWorkerPoolsSettings().build(); + getDefaultServiceAccountSettings = settingsBuilder.getDefaultServiceAccountSettings().build(); } /** Builder for CloudBuildStubSettings. */ @@ -711,6 +722,8 @@ public static class Builder extends StubSettings.Builder listWorkerPoolsSettings; + private final UnaryCallSettings.Builder + getDefaultServiceAccountSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -789,6 +802,7 @@ protected Builder(ClientContext clientContext) { updateWorkerPoolSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateWorkerPoolOperationSettings = OperationCallSettings.newBuilder(); listWorkerPoolsSettings = PagedCallSettings.newBuilder(LIST_WORKER_POOLS_PAGE_STR_FACT); + getDefaultServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -809,7 +823,8 @@ protected Builder(ClientContext clientContext) { getWorkerPoolSettings, deleteWorkerPoolSettings, updateWorkerPoolSettings, - listWorkerPoolsSettings); + listWorkerPoolsSettings, + getDefaultServiceAccountSettings); initDefaults(this); } @@ -841,6 +856,7 @@ protected Builder(CloudBuildStubSettings settings) { updateWorkerPoolSettings = settings.updateWorkerPoolSettings.toBuilder(); updateWorkerPoolOperationSettings = settings.updateWorkerPoolOperationSettings.toBuilder(); listWorkerPoolsSettings = settings.listWorkerPoolsSettings.toBuilder(); + getDefaultServiceAccountSettings = settings.getDefaultServiceAccountSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -861,7 +877,8 @@ protected Builder(CloudBuildStubSettings settings) { getWorkerPoolSettings, deleteWorkerPoolSettings, updateWorkerPoolSettings, - listWorkerPoolsSettings); + listWorkerPoolsSettings, + getDefaultServiceAccountSettings); } private static Builder createDefault() { @@ -979,6 +996,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .getDefaultServiceAccountSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createBuildOperationSettings() .setInitialCallSettings( @@ -1314,6 +1336,12 @@ public UnaryCallSettings.Builder getWorkerPool return listWorkerPoolsSettings; } + /** Returns the builder for the settings used for calls to getDefaultServiceAccount. */ + public UnaryCallSettings.Builder + getDefaultServiceAccountSettings() { + return getDefaultServiceAccountSettings; + } + @Override public CloudBuildStubSettings build() throws IOException { return new CloudBuildStubSettings(this); diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java index 57d73fd77e52..9f33d98bbf6f 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/GrpcCloudBuildStub.java @@ -38,11 +38,13 @@ import com.google.cloudbuild.v1.CreateBuildTriggerRequest; import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.CreateWorkerPoolRequest; +import com.google.cloudbuild.v1.DefaultServiceAccount; import com.google.cloudbuild.v1.DeleteBuildTriggerRequest; import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.DeleteWorkerPoolRequest; import com.google.cloudbuild.v1.GetBuildRequest; import com.google.cloudbuild.v1.GetBuildTriggerRequest; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; import com.google.cloudbuild.v1.GetWorkerPoolRequest; import com.google.cloudbuild.v1.ListBuildTriggersRequest; import com.google.cloudbuild.v1.ListBuildTriggersResponse; @@ -266,6 +268,19 @@ public class GrpcCloudBuildStub extends CloudBuildStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + getDefaultServiceAccountMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.devtools.cloudbuild.v1.CloudBuild/GetDefaultServiceAccount") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDefaultServiceAccountRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DefaultServiceAccount.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable createBuildCallable; private final OperationCallable createBuildOperationCallable; @@ -308,6 +323,8 @@ public class GrpcCloudBuildStub extends CloudBuildStub { listWorkerPoolsCallable; private final UnaryCallable listWorkerPoolsPagedCallable; + private final UnaryCallable + getDefaultServiceAccountCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -347,6 +364,8 @@ public class GrpcCloudBuildStub extends CloudBuildStub { PathTemplate.create("projects/*/locations/{location=*}/workerPools/*"); private static final PathTemplate LIST_WORKER_POOLS_0_PATH_TEMPLATE = PathTemplate.create("projects/*/locations/{location=*}"); + private static final PathTemplate GET_DEFAULT_SERVICE_ACCOUNT_0_PATH_TEMPLATE = + PathTemplate.create("projects/*/locations/{location=*}/defaultServiceAccount"); public static final GrpcCloudBuildStub create(CloudBuildStubSettings settings) throws IOException { @@ -585,6 +604,20 @@ protected GrpcCloudBuildStub( return builder.build(); }) .build(); + GrpcCallSettings + getDefaultServiceAccountTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDefaultServiceAccountMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + request.getName(), + "location", + GET_DEFAULT_SERVICE_ACCOUNT_0_PATH_TEMPLATE); + return builder.build(); + }) + .build(); this.createBuildCallable = callableFactory.createUnaryCallable( @@ -703,6 +736,11 @@ protected GrpcCloudBuildStub( this.listWorkerPoolsPagedCallable = callableFactory.createPagedCallable( listWorkerPoolsTransportSettings, settings.listWorkerPoolsSettings(), clientContext); + this.getDefaultServiceAccountCallable = + callableFactory.createUnaryCallable( + getDefaultServiceAccountTransportSettings, + settings.getDefaultServiceAccountSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -863,6 +901,12 @@ public UnaryCallable listWorker return listWorkerPoolsPagedCallable; } + @Override + public UnaryCallable + getDefaultServiceAccountCallable() { + return getDefaultServiceAccountCallable; + } + @Override public final void close() { try { diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java index d61c69f49baf..21d00a3b8a30 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java @@ -46,11 +46,13 @@ import com.google.cloudbuild.v1.CreateBuildTriggerRequest; import com.google.cloudbuild.v1.CreateWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.CreateWorkerPoolRequest; +import com.google.cloudbuild.v1.DefaultServiceAccount; import com.google.cloudbuild.v1.DeleteBuildTriggerRequest; import com.google.cloudbuild.v1.DeleteWorkerPoolOperationMetadata; import com.google.cloudbuild.v1.DeleteWorkerPoolRequest; import com.google.cloudbuild.v1.GetBuildRequest; import com.google.cloudbuild.v1.GetBuildTriggerRequest; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; import com.google.cloudbuild.v1.GetWorkerPoolRequest; import com.google.cloudbuild.v1.ListBuildTriggersRequest; import com.google.cloudbuild.v1.ListBuildTriggersResponse; @@ -832,6 +834,41 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub { .build()) .build(); + private static final ApiMethodDescriptor + getDefaultServiceAccountMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.devtools.cloudbuild.v1.CloudBuild/GetDefaultServiceAccount") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/defaultServiceAccount}", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DefaultServiceAccount.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createBuildCallable; private final OperationCallable createBuildOperationCallable; @@ -874,6 +911,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub { listWorkerPoolsCallable; private final UnaryCallable listWorkerPoolsPagedCallable; + private final UnaryCallable + getDefaultServiceAccountCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -913,6 +952,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub { PathTemplate.create("projects/*/locations/{location=*}/workerPools/*"); private static final PathTemplate LIST_WORKER_POOLS_0_PATH_TEMPLATE = PathTemplate.create("projects/*/locations/{location=*}"); + private static final PathTemplate GET_DEFAULT_SERVICE_ACCOUNT_0_PATH_TEMPLATE = + PathTemplate.create("projects/*/locations/{location=*}/defaultServiceAccount"); public static final HttpJsonCloudBuildStub create(CloudBuildStubSettings settings) throws IOException { @@ -1197,6 +1238,22 @@ protected HttpJsonCloudBuildStub( return builder.build(); }) .build(); + HttpJsonCallSettings + getDefaultServiceAccountTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getDefaultServiceAccountMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + request.getName(), + "location", + GET_DEFAULT_SERVICE_ACCOUNT_0_PATH_TEMPLATE); + return builder.build(); + }) + .build(); this.createBuildCallable = callableFactory.createUnaryCallable( @@ -1315,6 +1372,11 @@ protected HttpJsonCloudBuildStub( this.listWorkerPoolsPagedCallable = callableFactory.createPagedCallable( listWorkerPoolsTransportSettings, settings.listWorkerPoolsSettings(), clientContext); + this.getDefaultServiceAccountCallable = + callableFactory.createUnaryCallable( + getDefaultServiceAccountTransportSettings, + settings.getDefaultServiceAccountSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1341,6 +1403,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(deleteWorkerPoolMethodDescriptor); methodDescriptors.add(updateWorkerPoolMethodDescriptor); methodDescriptors.add(listWorkerPoolsMethodDescriptor); + methodDescriptors.add(getDefaultServiceAccountMethodDescriptor); return methodDescriptors; } @@ -1499,6 +1562,12 @@ public UnaryCallable listWorker return listWorkerPoolsPagedCallable; } + @Override + public UnaryCallable + getDefaultServiceAccountCallable() { + return getDefaultServiceAccountCallable; + } + @Override public final void close() { try { diff --git a/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json b/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json index 2a710d002cd0..f56ef70bdd0f 100644 --- a/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json +++ b/java-cloudbuild/google-cloud-build/src/main/resources/META-INF/native-image/com.google.cloud.devtools.cloudbuild.v1/reflect-config.json @@ -944,6 +944,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloudbuild.v1.ConnectedRepository", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloudbuild.v1.ConnectedRepository$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloudbuild.v1.CreateBuildRequest", "queryAllDeclaredConstructors": true, @@ -1016,6 +1034,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloudbuild.v1.DefaultServiceAccount", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloudbuild.v1.DefaultServiceAccount$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloudbuild.v1.DeleteBuildTriggerRequest", "queryAllDeclaredConstructors": true, @@ -1178,6 +1214,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloudbuild.v1.GetDefaultServiceAccountRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloudbuild.v1.GetDefaultServiceAccountRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloudbuild.v1.GetWorkerPoolRequest", "queryAllDeclaredConstructors": true, diff --git a/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientHttpJsonTest.java b/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientHttpJsonTest.java index e9a9b4dae5bd..a2850ad726cf 100644 --- a/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientHttpJsonTest.java +++ b/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientHttpJsonTest.java @@ -40,6 +40,8 @@ import com.google.cloudbuild.v1.BuildStep; import com.google.cloudbuild.v1.BuildTrigger; import com.google.cloudbuild.v1.BuildTriggerName; +import com.google.cloudbuild.v1.DefaultServiceAccount; +import com.google.cloudbuild.v1.DefaultServiceAccountName; import com.google.cloudbuild.v1.Dependency; import com.google.cloudbuild.v1.GitConfig; import com.google.cloudbuild.v1.GitHubEventsConfig; @@ -48,6 +50,7 @@ import com.google.cloudbuild.v1.ListBuildsResponse; import com.google.cloudbuild.v1.ListWorkerPoolsResponse; import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; import com.google.cloudbuild.v1.PubsubConfig; import com.google.cloudbuild.v1.ReceiveTriggerWebhookRequest; import com.google.cloudbuild.v1.ReceiveTriggerWebhookResponse; @@ -160,10 +163,9 @@ public void createBuildTest() throws Exception { .build(); mockService.addResponse(resultOperation); - String projectId = "projectId-1530"; - Build build = Build.newBuilder().build(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Build actualResponse = client.createBuildAsync(projectId, build).get(); + Build actualResponse = client.createBuildAsync(parent).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -189,16 +191,15 @@ public void createBuildExceptionTest() throws Exception { mockService.addException(exception); try { - String projectId = "projectId-1530"; - Build build = Build.newBuilder().build(); - client.createBuildAsync(projectId, build).get(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.createBuildAsync(parent).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { } } @Test - public void getBuildTest() throws Exception { + public void createBuildTest2() throws Exception { Build expectedResponse = Build.newBuilder() .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) @@ -232,12 +233,17 @@ public void getBuildTest() throws Exception { .setFailureInfo(Build.FailureInfo.newBuilder().build()) .addAllDependencies(new ArrayList()) .build(); - mockService.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("createBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); - String projectId = "projectId-1530"; - String id = "id-4047"; + ProjectName parent = ProjectName.of("[PROJECT]"); - Build actualResponse = client.getBuild(projectId, id); + Build actualResponse = client.createBuildAsync(parent).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -256,41 +262,146 @@ public void getBuildTest() throws Exception { } @Test - public void getBuildExceptionTest() throws Exception { + public void createBuildExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String projectId = "projectId-1530"; - String id = "id-4047"; - client.getBuild(projectId, id); + ProjectName parent = ProjectName.of("[PROJECT]"); + client.createBuildAsync(parent).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } catch (ExecutionException e) { } } @Test - public void listBuildsTest() throws Exception { - Build responsesElement = Build.newBuilder().build(); - ListBuildsResponse expectedResponse = - ListBuildsResponse.newBuilder() - .setNextPageToken("") - .addAllBuilds(Arrays.asList(responsesElement)) + public void createBuildTest3() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) .build(); - mockService.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("createBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); - String projectId = "projectId-1530"; - String filter = "filter-1274492040"; + String parent = "parent-995424086"; - ListBuildsPagedResponse pagedListResponse = client.listBuilds(projectId, filter); + Build actualResponse = client.createBuildAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBuildsList().get(0), resources.get(0)); + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBuildExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "parent-995424086"; + client.createBuildAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBuildTest4() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String projectId = "projectId-1530"; + Build build = Build.newBuilder().build(); + + Build actualResponse = client.createBuildAsync(projectId, build).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -308,7 +419,7 @@ public void listBuildsTest() throws Exception { } @Test - public void listBuildsExceptionTest() throws Exception { + public void createBuildExceptionTest4() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -316,8 +427,80 @@ public void listBuildsExceptionTest() throws Exception { try { String projectId = "projectId-1530"; - String filter = "filter-1274492040"; - client.listBuilds(projectId, filter); + Build build = Build.newBuilder().build(); + client.createBuildAsync(projectId, build).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getBuildTest() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + + Build actualResponse = client.getBuild(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 getBuildExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + client.getBuild(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -325,7 +508,7 @@ public void listBuildsExceptionTest() throws Exception { } @Test - public void cancelBuildTest() throws Exception { + public void getBuildTest2() throws Exception { Build expectedResponse = Build.newBuilder() .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) @@ -361,10 +544,9 @@ public void cancelBuildTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - String projectId = "projectId-1530"; - String id = "id-4047"; + String name = "name3373707"; - Build actualResponse = client.cancelBuild(projectId, id); + Build actualResponse = client.getBuild(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -383,16 +565,15 @@ public void cancelBuildTest() throws Exception { } @Test - public void cancelBuildExceptionTest() throws Exception { + public void getBuildExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String projectId = "projectId-1530"; - String id = "id-4047"; - client.cancelBuild(projectId, id); + String name = "name3373707"; + client.getBuild(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -400,7 +581,7 @@ public void cancelBuildExceptionTest() throws Exception { } @Test - public void retryBuildTest() throws Exception { + public void getBuildTest3() throws Exception { Build expectedResponse = Build.newBuilder() .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) @@ -424,28 +605,857 @@ public void retryBuildTest() throws Exception { .setLogUrl("logUrl-1097354357") .putAllSubstitutions(new HashMap()) .addAllTags(new ArrayList()) - .addAllSecrets(new ArrayList()) - .putAllTiming(new HashMap()) - .setApproval(BuildApproval.newBuilder().build()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-1530"; + String id = "id-4047"; + + Build actualResponse = client.getBuild(projectId, id); + 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 getBuildExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + String id = "id-4047"; + client.getBuild(projectId, id); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBuildsTest() throws Exception { + Build responsesElement = Build.newBuilder().build(); + ListBuildsResponse expectedResponse = + ListBuildsResponse.newBuilder() + .setNextPageToken("") + .addAllBuilds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-1530"; + String filter = "filter-1274492040"; + + ListBuildsPagedResponse pagedListResponse = client.listBuilds(projectId, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBuildsList().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 listBuildsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + String filter = "filter-1274492040"; + client.listBuilds(projectId, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelBuildTest() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + + Build actualResponse = client.cancelBuild(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 cancelBuildExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + client.cancelBuild(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelBuildTest2() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "name3373707"; + + Build actualResponse = client.cancelBuild(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 cancelBuildExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "name3373707"; + client.cancelBuild(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelBuildTest3() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-1530"; + String id = "id-4047"; + + Build actualResponse = client.cancelBuild(projectId, id); + 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 cancelBuildExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + String id = "id-4047"; + client.cancelBuild(projectId, id); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retryBuildTest() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("retryBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + + Build actualResponse = client.retryBuildAsync(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 retryBuildExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + client.retryBuildAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void retryBuildTest2() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("retryBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "name3373707"; + + Build actualResponse = client.retryBuildAsync(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 retryBuildExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "name3373707"; + client.retryBuildAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void retryBuildTest3() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("retryBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String projectId = "projectId-1530"; + String id = "id-4047"; + + Build actualResponse = client.retryBuildAsync(projectId, id).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 retryBuildExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + String id = "id-4047"; + client.retryBuildAsync(projectId, id).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void approveBuildTest() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("approveBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-3679/builds/build-3679"; + ApprovalResult approvalResult = ApprovalResult.newBuilder().build(); + + Build actualResponse = client.approveBuildAsync(name, approvalResult).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 approveBuildExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3679/builds/build-3679"; + ApprovalResult approvalResult = ApprovalResult.newBuilder().build(); + client.approveBuildAsync(name, approvalResult).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBuildTriggerTest() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") + .setId("id3355") + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDisabled(true) + .putAllSubstitutions(new HashMap()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + BuildTrigger actualResponse = client.createBuildTrigger(parent); + 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 createBuildTriggerExceptionTest() 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.createBuildTrigger(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBuildTriggerTest2() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") + .setId("id3355") + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDisabled(true) + .putAllSubstitutions(new HashMap()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + BuildTrigger actualResponse = client.createBuildTrigger(parent); + 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 createBuildTriggerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.createBuildTrigger(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBuildTriggerTest3() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") + .setId("id3355") + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDisabled(true) + .putAllSubstitutions(new HashMap()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + BuildTrigger actualResponse = client.createBuildTrigger(parent); + 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 createBuildTriggerExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "parent-995424086"; + client.createBuildTrigger(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBuildTriggerTest4() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") + .setId("id3355") + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDisabled(true) + .putAllSubstitutions(new HashMap()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) .setServiceAccount("serviceAccount1079137720") - .setAvailableSecrets(Secrets.newBuilder().build()) - .addAllWarnings(new ArrayList()) - .setGitConfig(GitConfig.newBuilder().build()) - .setFailureInfo(Build.FailureInfo.newBuilder().build()) - .addAllDependencies(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("retryBuildTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) .build(); - mockService.addResponse(resultOperation); + mockService.addResponse(expectedResponse); String projectId = "projectId-1530"; - String id = "id-4047"; + BuildTrigger trigger = BuildTrigger.newBuilder().build(); - Build actualResponse = client.retryBuildAsync(projectId, id).get(); + BuildTrigger actualResponse = client.createBuildTrigger(projectId, trigger); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -464,7 +1474,7 @@ public void retryBuildTest() throws Exception { } @Test - public void retryBuildExceptionTest() throws Exception { + public void createBuildTriggerExceptionTest4() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -472,60 +1482,42 @@ public void retryBuildExceptionTest() throws Exception { try { String projectId = "projectId-1530"; - String id = "id-4047"; - client.retryBuildAsync(projectId, id).get(); + BuildTrigger trigger = BuildTrigger.newBuilder().build(); + client.createBuildTrigger(projectId, trigger); Assert.fail("No exception raised"); - } catch (ExecutionException e) { + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void approveBuildTest() throws Exception { - Build expectedResponse = - Build.newBuilder() - .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + public void getBuildTriggerTest() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") .setId("id3355") - .setProjectId("projectId-894832108") - .setStatusDetail("statusDetail1651087075") - .setSource(Source.newBuilder().build()) - .addAllSteps(new ArrayList()) - .setResults(Results.newBuilder().build()) + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setFinishTime(Timestamp.newBuilder().build()) - .setTimeout(Duration.newBuilder().build()) - .addAllImages(new ArrayList()) - .setQueueTtl(Duration.newBuilder().build()) - .setArtifacts(Artifacts.newBuilder().build()) - .setLogsBucket("logsBucket1592573049") - .setSourceProvenance(SourceProvenance.newBuilder().build()) - .setBuildTriggerId("buildTriggerId781747749") - .setOptions(BuildOptions.newBuilder().build()) - .setLogUrl("logUrl-1097354357") + .setDisabled(true) .putAllSubstitutions(new HashMap()) - .addAllTags(new ArrayList()) - .addAllSecrets(new ArrayList()) - .putAllTiming(new HashMap()) - .setApproval(BuildApproval.newBuilder().build()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) .setServiceAccount("serviceAccount1079137720") - .setAvailableSecrets(Secrets.newBuilder().build()) - .addAllWarnings(new ArrayList()) - .setGitConfig(GitConfig.newBuilder().build()) - .setFailureInfo(Build.FailureInfo.newBuilder().build()) - .addAllDependencies(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("approveBuildTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) .build(); - mockService.addResponse(resultOperation); + mockService.addResponse(expectedResponse); - String name = "projects/project-3679/builds/build-3679"; - ApprovalResult approvalResult = ApprovalResult.newBuilder().build(); + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); - Build actualResponse = client.approveBuildAsync(name, approvalResult).get(); + BuildTrigger actualResponse = client.getBuildTrigger(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -544,23 +1536,23 @@ public void approveBuildTest() throws Exception { } @Test - public void approveBuildExceptionTest() throws Exception { + public void getBuildTriggerExceptionTest() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String name = "projects/project-3679/builds/build-3679"; - ApprovalResult approvalResult = ApprovalResult.newBuilder().build(); - client.approveBuildAsync(name, approvalResult).get(); + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); + client.getBuildTrigger(name); Assert.fail("No exception raised"); - } catch (ExecutionException e) { + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void createBuildTriggerTest() throws Exception { + public void getBuildTriggerTest2() throws Exception { BuildTrigger expectedResponse = BuildTrigger.newBuilder() .setResourceName("resourceName-384566343") @@ -584,10 +1576,9 @@ public void createBuildTriggerTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - String projectId = "projectId-1530"; - BuildTrigger trigger = BuildTrigger.newBuilder().build(); + String name = "name3373707"; - BuildTrigger actualResponse = client.createBuildTrigger(projectId, trigger); + BuildTrigger actualResponse = client.getBuildTrigger(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockService.getRequestPaths(); @@ -606,16 +1597,15 @@ public void createBuildTriggerTest() throws Exception { } @Test - public void createBuildTriggerExceptionTest() throws Exception { + public void getBuildTriggerExceptionTest2() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); try { - String projectId = "projectId-1530"; - BuildTrigger trigger = BuildTrigger.newBuilder().build(); - client.createBuildTrigger(projectId, trigger); + String name = "name3373707"; + client.getBuildTrigger(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -623,7 +1613,7 @@ public void createBuildTriggerExceptionTest() throws Exception { } @Test - public void getBuildTriggerTest() throws Exception { + public void getBuildTriggerTest3() throws Exception { BuildTrigger expectedResponse = BuildTrigger.newBuilder() .setResourceName("resourceName-384566343") @@ -669,7 +1659,7 @@ public void getBuildTriggerTest() throws Exception { } @Test - public void getBuildTriggerExceptionTest() throws Exception { + public void getBuildTriggerExceptionTest3() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -740,6 +1730,86 @@ public void deleteBuildTriggerTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); + + client.deleteBuildTrigger(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBuildTriggerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); + client.deleteBuildTrigger(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBuildTriggerTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteBuildTrigger(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBuildTriggerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "name3373707"; + client.deleteBuildTrigger(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBuildTriggerTest3() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + String projectId = "projectId-1530"; String triggerId = "triggerId-6343"; @@ -761,7 +1831,7 @@ public void deleteBuildTriggerTest() throws Exception { } @Test - public void deleteBuildTriggerExceptionTest() throws Exception { + public void deleteBuildTriggerExceptionTest3() throws Exception { ApiException exception = ApiExceptionFactory.createException( new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); @@ -1511,4 +2581,94 @@ public void listWorkerPoolsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getDefaultServiceAccountTest() throws Exception { + DefaultServiceAccount expectedResponse = + DefaultServiceAccount.newBuilder() + .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString()) + .setServiceAccountEmail("serviceAccountEmail1825953988") + .build(); + mockService.addResponse(expectedResponse); + + DefaultServiceAccountName name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]"); + + DefaultServiceAccount actualResponse = client.getDefaultServiceAccount(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 getDefaultServiceAccountExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DefaultServiceAccountName name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]"); + client.getDefaultServiceAccount(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDefaultServiceAccountTest2() throws Exception { + DefaultServiceAccount expectedResponse = + DefaultServiceAccount.newBuilder() + .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString()) + .setServiceAccountEmail("serviceAccountEmail1825953988") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6372/locations/location-6372/defaultServiceAccount"; + + DefaultServiceAccount actualResponse = client.getDefaultServiceAccount(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 getDefaultServiceAccountExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6372/locations/location-6372/defaultServiceAccount"; + client.getDefaultServiceAccount(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java b/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java index 797fea67fc90..5def6a6c9c57 100644 --- a/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java +++ b/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildClientTest.java @@ -43,11 +43,14 @@ import com.google.cloudbuild.v1.CreateBuildRequest; import com.google.cloudbuild.v1.CreateBuildTriggerRequest; import com.google.cloudbuild.v1.CreateWorkerPoolRequest; +import com.google.cloudbuild.v1.DefaultServiceAccount; +import com.google.cloudbuild.v1.DefaultServiceAccountName; import com.google.cloudbuild.v1.DeleteBuildTriggerRequest; import com.google.cloudbuild.v1.DeleteWorkerPoolRequest; import com.google.cloudbuild.v1.Dependency; import com.google.cloudbuild.v1.GetBuildRequest; import com.google.cloudbuild.v1.GetBuildTriggerRequest; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; import com.google.cloudbuild.v1.GetWorkerPoolRequest; import com.google.cloudbuild.v1.GitConfig; import com.google.cloudbuild.v1.GitHubEventsConfig; @@ -59,6 +62,7 @@ import com.google.cloudbuild.v1.ListWorkerPoolsRequest; import com.google.cloudbuild.v1.ListWorkerPoolsResponse; import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; import com.google.cloudbuild.v1.PubsubConfig; import com.google.cloudbuild.v1.ReceiveTriggerWebhookRequest; import com.google.cloudbuild.v1.ReceiveTriggerWebhookResponse; @@ -182,18 +186,16 @@ public void createBuildTest() throws Exception { .build(); mockCloudBuild.addResponse(resultOperation); - String projectId = "projectId-894832108"; - Build build = Build.newBuilder().build(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Build actualResponse = client.createBuildAsync(projectId, build).get(); + Build actualResponse = client.createBuildAsync(parent).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudBuild.getRequests(); Assert.assertEquals(1, actualRequests.size()); CreateBuildRequest actualRequest = ((CreateBuildRequest) actualRequests.get(0)); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(build, actualRequest.getBuild()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -206,9 +208,8 @@ public void createBuildExceptionTest() throws Exception { mockCloudBuild.addException(exception); try { - String projectId = "projectId-894832108"; - Build build = Build.newBuilder().build(); - client.createBuildAsync(projectId, build).get(); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.createBuildAsync(parent).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); @@ -218,7 +219,7 @@ public void createBuildExceptionTest() throws Exception { } @Test - public void getBuildTest() throws Exception { + public void createBuildTest2() throws Exception { Build expectedResponse = Build.newBuilder() .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) @@ -252,20 +253,24 @@ public void getBuildTest() throws Exception { .setFailureInfo(Build.FailureInfo.newBuilder().build()) .addAllDependencies(new ArrayList()) .build(); - mockCloudBuild.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("createBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudBuild.addResponse(resultOperation); - String projectId = "projectId-894832108"; - String id = "id3355"; + ProjectName parent = ProjectName.of("[PROJECT]"); - Build actualResponse = client.getBuild(projectId, id); + Build actualResponse = client.createBuildAsync(parent).get(); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudBuild.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetBuildRequest actualRequest = ((GetBuildRequest) actualRequests.get(0)); + CreateBuildRequest actualRequest = ((CreateBuildRequest) actualRequests.get(0)); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(id, actualRequest.getId()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -273,46 +278,151 @@ public void getBuildTest() throws Exception { } @Test - public void getBuildExceptionTest() throws Exception { + public void createBuildExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudBuild.addException(exception); try { - String projectId = "projectId-894832108"; - String id = "id3355"; - client.getBuild(projectId, id); + ProjectName parent = ProjectName.of("[PROJECT]"); + client.createBuildAsync(parent).get(); Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. + } 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 listBuildsTest() throws Exception { - Build responsesElement = Build.newBuilder().build(); - ListBuildsResponse expectedResponse = - ListBuildsResponse.newBuilder() - .setNextPageToken("") - .addAllBuilds(Arrays.asList(responsesElement)) + public void createBuildTest3() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) .build(); - mockCloudBuild.addResponse(expectedResponse); + Operation resultOperation = + Operation.newBuilder() + .setName("createBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudBuild.addResponse(resultOperation); - String projectId = "projectId-894832108"; - String filter = "filter-1274492040"; + String parent = "parent-995424086"; - ListBuildsPagedResponse pagedListResponse = client.listBuilds(projectId, filter); + Build actualResponse = client.createBuildAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBuildRequest actualRequest = ((CreateBuildRequest) actualRequests.get(0)); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getBuildsList().get(0), resources.get(0)); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBuildExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String parent = "parent-995424086"; + client.createBuildAsync(parent).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 createBuildTest4() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudBuild.addResponse(resultOperation); + + String projectId = "projectId-894832108"; + Build build = Build.newBuilder().build(); + + Build actualResponse = client.createBuildAsync(projectId, build).get(); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudBuild.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListBuildsRequest actualRequest = ((ListBuildsRequest) actualRequests.get(0)); + CreateBuildRequest actualRequest = ((CreateBuildRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertEquals(build, actualRequest.getBuild()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -320,14 +430,83 @@ public void listBuildsTest() throws Exception { } @Test - public void listBuildsExceptionTest() throws Exception { + public void createBuildExceptionTest4() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudBuild.addException(exception); try { String projectId = "projectId-894832108"; - String filter = "filter-1274492040"; - client.listBuilds(projectId, filter); + Build build = Build.newBuilder().build(); + client.createBuildAsync(projectId, build).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 getBuildTest() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockCloudBuild.addResponse(expectedResponse); + + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + + Build actualResponse = client.getBuild(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBuildRequest actualRequest = ((GetBuildRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBuildExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + client.getBuild(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -335,7 +514,7 @@ public void listBuildsExceptionTest() throws Exception { } @Test - public void cancelBuildTest() throws Exception { + public void getBuildTest2() throws Exception { Build expectedResponse = Build.newBuilder() .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) @@ -371,18 +550,16 @@ public void cancelBuildTest() throws Exception { .build(); mockCloudBuild.addResponse(expectedResponse); - String projectId = "projectId-894832108"; - String id = "id3355"; + String name = "name3373707"; - Build actualResponse = client.cancelBuild(projectId, id); + Build actualResponse = client.getBuild(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudBuild.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CancelBuildRequest actualRequest = ((CancelBuildRequest) actualRequests.get(0)); + GetBuildRequest actualRequest = ((GetBuildRequest) actualRequests.get(0)); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(id, actualRequest.getId()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -390,14 +567,13 @@ public void cancelBuildTest() throws Exception { } @Test - public void cancelBuildExceptionTest() throws Exception { + public void getBuildExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudBuild.addException(exception); try { - String projectId = "projectId-894832108"; - String id = "id3355"; - client.cancelBuild(projectId, id); + String name = "name3373707"; + client.getBuild(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -405,7 +581,7 @@ public void cancelBuildExceptionTest() throws Exception { } @Test - public void retryBuildTest() throws Exception { + public void getBuildTest3() throws Exception { Build expectedResponse = Build.newBuilder() .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) @@ -429,36 +605,810 @@ public void retryBuildTest() throws Exception { .setLogUrl("logUrl-1097354357") .putAllSubstitutions(new HashMap()) .addAllTags(new ArrayList()) - .addAllSecrets(new ArrayList()) - .putAllTiming(new HashMap()) - .setApproval(BuildApproval.newBuilder().build()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockCloudBuild.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String id = "id3355"; + + Build actualResponse = client.getBuild(projectId, id); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBuildRequest actualRequest = ((GetBuildRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(id, actualRequest.getId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBuildExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String projectId = "projectId-894832108"; + String id = "id3355"; + client.getBuild(projectId, id); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBuildsTest() throws Exception { + Build responsesElement = Build.newBuilder().build(); + ListBuildsResponse expectedResponse = + ListBuildsResponse.newBuilder() + .setNextPageToken("") + .addAllBuilds(Arrays.asList(responsesElement)) + .build(); + mockCloudBuild.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String filter = "filter-1274492040"; + + ListBuildsPagedResponse pagedListResponse = client.listBuilds(projectId, filter); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBuildsList().get(0), resources.get(0)); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBuildsRequest actualRequest = ((ListBuildsRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBuildsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String projectId = "projectId-894832108"; + String filter = "filter-1274492040"; + client.listBuilds(projectId, filter); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelBuildTest() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockCloudBuild.addResponse(expectedResponse); + + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + + Build actualResponse = client.cancelBuild(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelBuildRequest actualRequest = ((CancelBuildRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelBuildExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + client.cancelBuild(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelBuildTest2() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockCloudBuild.addResponse(expectedResponse); + + String name = "name3373707"; + + Build actualResponse = client.cancelBuild(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelBuildRequest actualRequest = ((CancelBuildRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelBuildExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String name = "name3373707"; + client.cancelBuild(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelBuildTest3() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + mockCloudBuild.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String id = "id3355"; + + Build actualResponse = client.cancelBuild(projectId, id); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelBuildRequest actualRequest = ((CancelBuildRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(id, actualRequest.getId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelBuildExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String projectId = "projectId-894832108"; + String id = "id3355"; + client.cancelBuild(projectId, id); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retryBuildTest() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("retryBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudBuild.addResponse(resultOperation); + + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + + Build actualResponse = client.retryBuildAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetryBuildRequest actualRequest = ((RetryBuildRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retryBuildExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + client.retryBuildAsync(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 retryBuildTest2() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("retryBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudBuild.addResponse(resultOperation); + + String name = "name3373707"; + + Build actualResponse = client.retryBuildAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetryBuildRequest actualRequest = ((RetryBuildRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retryBuildExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String name = "name3373707"; + client.retryBuildAsync(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 retryBuildTest3() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("retryBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudBuild.addResponse(resultOperation); + + String projectId = "projectId-894832108"; + String id = "id3355"; + + Build actualResponse = client.retryBuildAsync(projectId, id).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetryBuildRequest actualRequest = ((RetryBuildRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(id, actualRequest.getId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retryBuildExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String projectId = "projectId-894832108"; + String id = "id3355"; + client.retryBuildAsync(projectId, id).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 approveBuildTest() throws Exception { + Build expectedResponse = + Build.newBuilder() + .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + .setId("id3355") + .setProjectId("projectId-894832108") + .setStatusDetail("statusDetail1651087075") + .setSource(Source.newBuilder().build()) + .addAllSteps(new ArrayList()) + .setResults(Results.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setFinishTime(Timestamp.newBuilder().build()) + .setTimeout(Duration.newBuilder().build()) + .addAllImages(new ArrayList()) + .setQueueTtl(Duration.newBuilder().build()) + .setArtifacts(Artifacts.newBuilder().build()) + .setLogsBucket("logsBucket1592573049") + .setSourceProvenance(SourceProvenance.newBuilder().build()) + .setBuildTriggerId("buildTriggerId781747749") + .setOptions(BuildOptions.newBuilder().build()) + .setLogUrl("logUrl-1097354357") + .putAllSubstitutions(new HashMap()) + .addAllTags(new ArrayList()) + .addAllSecrets(new ArrayList()) + .putAllTiming(new HashMap()) + .setApproval(BuildApproval.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setAvailableSecrets(Secrets.newBuilder().build()) + .addAllWarnings(new ArrayList()) + .setGitConfig(GitConfig.newBuilder().build()) + .setFailureInfo(Build.FailureInfo.newBuilder().build()) + .addAllDependencies(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("approveBuildTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudBuild.addResponse(resultOperation); + + String name = "name3373707"; + ApprovalResult approvalResult = ApprovalResult.newBuilder().build(); + + Build actualResponse = client.approveBuildAsync(name, approvalResult).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApproveBuildRequest actualRequest = ((ApproveBuildRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(approvalResult, actualRequest.getApprovalResult()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void approveBuildExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String name = "name3373707"; + ApprovalResult approvalResult = ApprovalResult.newBuilder().build(); + client.approveBuildAsync(name, approvalResult).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 createBuildTriggerTest() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") + .setId("id3355") + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDisabled(true) + .putAllSubstitutions(new HashMap()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) + .build(); + mockCloudBuild.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + BuildTrigger actualResponse = client.createBuildTrigger(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBuildTriggerRequest actualRequest = ((CreateBuildTriggerRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBuildTriggerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.createBuildTrigger(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBuildTriggerTest2() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") + .setId("id3355") + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDisabled(true) + .putAllSubstitutions(new HashMap()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) + .build(); + mockCloudBuild.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + BuildTrigger actualResponse = client.createBuildTrigger(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBuildTriggerRequest actualRequest = ((CreateBuildTriggerRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBuildTriggerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.createBuildTrigger(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBuildTriggerTest3() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") + .setId("id3355") + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDisabled(true) + .putAllSubstitutions(new HashMap()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) + .setServiceAccount("serviceAccount1079137720") + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) + .build(); + mockCloudBuild.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + BuildTrigger actualResponse = client.createBuildTrigger(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBuildTriggerRequest actualRequest = ((CreateBuildTriggerRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBuildTriggerExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String parent = "parent-995424086"; + client.createBuildTrigger(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBuildTriggerTest4() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") + .setId("id3355") + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDisabled(true) + .putAllSubstitutions(new HashMap()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) .setServiceAccount("serviceAccount1079137720") - .setAvailableSecrets(Secrets.newBuilder().build()) - .addAllWarnings(new ArrayList()) - .setGitConfig(GitConfig.newBuilder().build()) - .setFailureInfo(Build.FailureInfo.newBuilder().build()) - .addAllDependencies(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("retryBuildTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) .build(); - mockCloudBuild.addResponse(resultOperation); + mockCloudBuild.addResponse(expectedResponse); String projectId = "projectId-894832108"; - String id = "id3355"; + BuildTrigger trigger = BuildTrigger.newBuilder().build(); - Build actualResponse = client.retryBuildAsync(projectId, id).get(); + BuildTrigger actualResponse = client.createBuildTrigger(projectId, trigger); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudBuild.getRequests(); Assert.assertEquals(1, actualRequests.size()); - RetryBuildRequest actualRequest = ((RetryBuildRequest) actualRequests.get(0)); + CreateBuildTriggerRequest actualRequest = ((CreateBuildTriggerRequest) actualRequests.get(0)); Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(id, actualRequest.getId()); + Assert.assertEquals(trigger, actualRequest.getTrigger()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -466,77 +1416,55 @@ public void retryBuildTest() throws Exception { } @Test - public void retryBuildExceptionTest() throws Exception { + public void createBuildTriggerExceptionTest4() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudBuild.addException(exception); try { String projectId = "projectId-894832108"; - String id = "id3355"; - client.retryBuildAsync(projectId, id).get(); + BuildTrigger trigger = BuildTrigger.newBuilder().build(); + client.createBuildTrigger(projectId, trigger); 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()); + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void approveBuildTest() throws Exception { - Build expectedResponse = - Build.newBuilder() - .setName(BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString()) + public void getBuildTriggerTest() throws Exception { + BuildTrigger expectedResponse = + BuildTrigger.newBuilder() + .setResourceName("resourceName-384566343") .setId("id3355") - .setProjectId("projectId-894832108") - .setStatusDetail("statusDetail1651087075") - .setSource(Source.newBuilder().build()) - .addAllSteps(new ArrayList()) - .setResults(Results.newBuilder().build()) + .setDescription("description-1724546052") + .setName(BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString()) + .addAllTags(new ArrayList()) + .setTriggerTemplate(RepoSource.newBuilder().build()) + .setGithub(GitHubEventsConfig.newBuilder().build()) + .setPubsubConfig(PubsubConfig.newBuilder().build()) + .setWebhookConfig(WebhookConfig.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setFinishTime(Timestamp.newBuilder().build()) - .setTimeout(Duration.newBuilder().build()) - .addAllImages(new ArrayList()) - .setQueueTtl(Duration.newBuilder().build()) - .setArtifacts(Artifacts.newBuilder().build()) - .setLogsBucket("logsBucket1592573049") - .setSourceProvenance(SourceProvenance.newBuilder().build()) - .setBuildTriggerId("buildTriggerId781747749") - .setOptions(BuildOptions.newBuilder().build()) - .setLogUrl("logUrl-1097354357") + .setDisabled(true) .putAllSubstitutions(new HashMap()) - .addAllTags(new ArrayList()) - .addAllSecrets(new ArrayList()) - .putAllTiming(new HashMap()) - .setApproval(BuildApproval.newBuilder().build()) + .addAllIgnoredFiles(new ArrayList()) + .addAllIncludedFiles(new ArrayList()) + .setFilter("filter-1274492040") + .setSourceToBuild(GitRepoSource.newBuilder().build()) .setServiceAccount("serviceAccount1079137720") - .setAvailableSecrets(Secrets.newBuilder().build()) - .addAllWarnings(new ArrayList()) - .setGitConfig(GitConfig.newBuilder().build()) - .setFailureInfo(Build.FailureInfo.newBuilder().build()) - .addAllDependencies(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("approveBuildTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) + .setRepositoryEventConfig(RepositoryEventConfig.newBuilder().build()) .build(); - mockCloudBuild.addResponse(resultOperation); + mockCloudBuild.addResponse(expectedResponse); - String name = "name3373707"; - ApprovalResult approvalResult = ApprovalResult.newBuilder().build(); + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); - Build actualResponse = client.approveBuildAsync(name, approvalResult).get(); + BuildTrigger actualResponse = client.getBuildTrigger(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudBuild.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ApproveBuildRequest actualRequest = ((ApproveBuildRequest) actualRequests.get(0)); + GetBuildTriggerRequest actualRequest = ((GetBuildTriggerRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(approvalResult, actualRequest.getApprovalResult()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -544,24 +1472,21 @@ public void approveBuildTest() throws Exception { } @Test - public void approveBuildExceptionTest() throws Exception { + public void getBuildTriggerExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudBuild.addException(exception); try { - String name = "name3373707"; - ApprovalResult approvalResult = ApprovalResult.newBuilder().build(); - client.approveBuildAsync(name, approvalResult).get(); + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); + client.getBuildTrigger(name); 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()); + } catch (InvalidArgumentException e) { + // Expected exception. } } @Test - public void createBuildTriggerTest() throws Exception { + public void getBuildTriggerTest2() throws Exception { BuildTrigger expectedResponse = BuildTrigger.newBuilder() .setResourceName("resourceName-384566343") @@ -585,18 +1510,16 @@ public void createBuildTriggerTest() throws Exception { .build(); mockCloudBuild.addResponse(expectedResponse); - String projectId = "projectId-894832108"; - BuildTrigger trigger = BuildTrigger.newBuilder().build(); + String name = "name3373707"; - BuildTrigger actualResponse = client.createBuildTrigger(projectId, trigger); + BuildTrigger actualResponse = client.getBuildTrigger(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockCloudBuild.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateBuildTriggerRequest actualRequest = ((CreateBuildTriggerRequest) actualRequests.get(0)); + GetBuildTriggerRequest actualRequest = ((GetBuildTriggerRequest) actualRequests.get(0)); - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(trigger, actualRequest.getTrigger()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -604,14 +1527,13 @@ public void createBuildTriggerTest() throws Exception { } @Test - public void createBuildTriggerExceptionTest() throws Exception { + public void getBuildTriggerExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudBuild.addException(exception); try { - String projectId = "projectId-894832108"; - BuildTrigger trigger = BuildTrigger.newBuilder().build(); - client.createBuildTrigger(projectId, trigger); + String name = "name3373707"; + client.getBuildTrigger(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -619,7 +1541,7 @@ public void createBuildTriggerExceptionTest() throws Exception { } @Test - public void getBuildTriggerTest() throws Exception { + public void getBuildTriggerTest3() throws Exception { BuildTrigger expectedResponse = BuildTrigger.newBuilder() .setResourceName("resourceName-384566343") @@ -662,7 +1584,7 @@ public void getBuildTriggerTest() throws Exception { } @Test - public void getBuildTriggerExceptionTest() throws Exception { + public void getBuildTriggerExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudBuild.addException(exception); @@ -725,6 +1647,74 @@ public void deleteBuildTriggerTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockCloudBuild.addResponse(expectedResponse); + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); + + client.deleteBuildTrigger(name); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBuildTriggerRequest actualRequest = ((DeleteBuildTriggerRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBuildTriggerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); + client.deleteBuildTrigger(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBuildTriggerTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockCloudBuild.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteBuildTrigger(name); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBuildTriggerRequest actualRequest = ((DeleteBuildTriggerRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBuildTriggerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String name = "name3373707"; + client.deleteBuildTrigger(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteBuildTriggerTest3() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockCloudBuild.addResponse(expectedResponse); + String projectId = "projectId-894832108"; String triggerId = "triggerId-648752909"; @@ -743,7 +1733,7 @@ public void deleteBuildTriggerTest() throws Exception { } @Test - public void deleteBuildTriggerExceptionTest() throws Exception { + public void deleteBuildTriggerExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockCloudBuild.addException(exception); @@ -1391,4 +2381,84 @@ public void listWorkerPoolsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getDefaultServiceAccountTest() throws Exception { + DefaultServiceAccount expectedResponse = + DefaultServiceAccount.newBuilder() + .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString()) + .setServiceAccountEmail("serviceAccountEmail1825953988") + .build(); + mockCloudBuild.addResponse(expectedResponse); + + DefaultServiceAccountName name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]"); + + DefaultServiceAccount actualResponse = client.getDefaultServiceAccount(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDefaultServiceAccountRequest actualRequest = + ((GetDefaultServiceAccountRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDefaultServiceAccountExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + DefaultServiceAccountName name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]"); + client.getDefaultServiceAccount(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDefaultServiceAccountTest2() throws Exception { + DefaultServiceAccount expectedResponse = + DefaultServiceAccount.newBuilder() + .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString()) + .setServiceAccountEmail("serviceAccountEmail1825953988") + .build(); + mockCloudBuild.addResponse(expectedResponse); + + String name = "name3373707"; + + DefaultServiceAccount actualResponse = client.getDefaultServiceAccount(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudBuild.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDefaultServiceAccountRequest actualRequest = + ((GetDefaultServiceAccountRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDefaultServiceAccountExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudBuild.addException(exception); + + try { + String name = "name3373707"; + client.getDefaultServiceAccount(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/MockCloudBuildImpl.java b/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/MockCloudBuildImpl.java index d18f6eaf4c3c..582220e05c9b 100644 --- a/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/MockCloudBuildImpl.java +++ b/java-cloudbuild/google-cloud-build/src/test/java/com/google/cloud/devtools/cloudbuild/v1/MockCloudBuildImpl.java @@ -25,10 +25,12 @@ import com.google.cloudbuild.v1.CreateBuildRequest; import com.google.cloudbuild.v1.CreateBuildTriggerRequest; import com.google.cloudbuild.v1.CreateWorkerPoolRequest; +import com.google.cloudbuild.v1.DefaultServiceAccount; import com.google.cloudbuild.v1.DeleteBuildTriggerRequest; import com.google.cloudbuild.v1.DeleteWorkerPoolRequest; import com.google.cloudbuild.v1.GetBuildRequest; import com.google.cloudbuild.v1.GetBuildTriggerRequest; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; import com.google.cloudbuild.v1.GetWorkerPoolRequest; import com.google.cloudbuild.v1.ListBuildTriggersRequest; import com.google.cloudbuild.v1.ListBuildTriggersResponse; @@ -461,4 +463,27 @@ public void listWorkerPools( Exception.class.getName()))); } } + + @Override + public void getDefaultServiceAccount( + GetDefaultServiceAccountRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DefaultServiceAccount) { + requests.add(request); + responseObserver.onNext(((DefaultServiceAccount) 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 GetDefaultServiceAccount, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + DefaultServiceAccount.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-cloudbuild/grpc-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CloudBuildGrpc.java b/java-cloudbuild/grpc-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CloudBuildGrpc.java index 5946aee71947..a52d9eef1954 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CloudBuildGrpc.java +++ b/java-cloudbuild/grpc-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/CloudBuildGrpc.java @@ -808,6 +808,55 @@ private CloudBuildGrpc() {} return getListWorkerPoolsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest, + com.google.cloudbuild.v1.DefaultServiceAccount> + getGetDefaultServiceAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDefaultServiceAccount", + requestType = com.google.cloudbuild.v1.GetDefaultServiceAccountRequest.class, + responseType = com.google.cloudbuild.v1.DefaultServiceAccount.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest, + com.google.cloudbuild.v1.DefaultServiceAccount> + getGetDefaultServiceAccountMethod() { + io.grpc.MethodDescriptor< + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest, + com.google.cloudbuild.v1.DefaultServiceAccount> + getGetDefaultServiceAccountMethod; + if ((getGetDefaultServiceAccountMethod = CloudBuildGrpc.getGetDefaultServiceAccountMethod) + == null) { + synchronized (CloudBuildGrpc.class) { + if ((getGetDefaultServiceAccountMethod = CloudBuildGrpc.getGetDefaultServiceAccountMethod) + == null) { + CloudBuildGrpc.getGetDefaultServiceAccountMethod = + getGetDefaultServiceAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDefaultServiceAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloudbuild.v1.DefaultServiceAccount.getDefaultInstance())) + .setSchemaDescriptor( + new CloudBuildMethodDescriptorSupplier("GetDefaultServiceAccount")) + .build(); + } + } + } + return getGetDefaultServiceAccountMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CloudBuildStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -973,8 +1022,8 @@ default void retryBuild( * *
          * Approves or rejects a pending build.
    -     * If approved, the returned LRO will be analogous to the LRO returned from
    -     * a CreateBuild call.
    +     * If approved, the returned long-running operation (LRO) will be analogous to
    +     * the LRO returned from a CreateBuild call.
          * If rejected, the returned LRO will be immediately done.
          * 
    */ @@ -990,7 +1039,6 @@ default void approveBuild( * *
          * Creates a new `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ default void createBuildTrigger( @@ -1005,7 +1053,6 @@ default void createBuildTrigger( * *
          * Returns information about a `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ default void getBuildTrigger( @@ -1020,7 +1067,6 @@ default void getBuildTrigger( * *
          * Lists existing `BuildTrigger`s.
    -     * This API is experimental.
          * 
    */ default void listBuildTriggers( @@ -1036,7 +1082,6 @@ default void listBuildTriggers( * *
          * Deletes a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ default void deleteBuildTrigger( @@ -1051,7 +1096,6 @@ default void deleteBuildTrigger( * *
          * Updates a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ default void updateBuildTrigger( @@ -1166,6 +1210,21 @@ default void listWorkerPools( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListWorkerPoolsMethod(), responseObserver); } + + /** + * + * + *
    +     * Returns the `DefaultServiceAccount` used by the project.
    +     * 
    + */ + default void getDefaultServiceAccount( + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDefaultServiceAccountMethod(), responseObserver); + } } /** @@ -1315,8 +1374,8 @@ public void retryBuild( * *
          * Approves or rejects a pending build.
    -     * If approved, the returned LRO will be analogous to the LRO returned from
    -     * a CreateBuild call.
    +     * If approved, the returned long-running operation (LRO) will be analogous to
    +     * the LRO returned from a CreateBuild call.
          * If rejected, the returned LRO will be immediately done.
          * 
    */ @@ -1334,7 +1393,6 @@ public void approveBuild( * *
          * Creates a new `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ public void createBuildTrigger( @@ -1351,7 +1409,6 @@ public void createBuildTrigger( * *
          * Returns information about a `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ public void getBuildTrigger( @@ -1368,7 +1425,6 @@ public void getBuildTrigger( * *
          * Lists existing `BuildTrigger`s.
    -     * This API is experimental.
          * 
    */ public void listBuildTriggers( @@ -1386,7 +1442,6 @@ public void listBuildTriggers( * *
          * Deletes a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ public void deleteBuildTrigger( @@ -1403,7 +1458,6 @@ public void deleteBuildTrigger( * *
          * Updates a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ public void updateBuildTrigger( @@ -1534,6 +1588,23 @@ public void listWorkerPools( request, responseObserver); } + + /** + * + * + *
    +     * Returns the `DefaultServiceAccount` used by the project.
    +     * 
    + */ + public void getDefaultServiceAccount( + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDefaultServiceAccountMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1656,8 +1727,8 @@ public com.google.longrunning.Operation retryBuild( * *
          * Approves or rejects a pending build.
    -     * If approved, the returned LRO will be analogous to the LRO returned from
    -     * a CreateBuild call.
    +     * If approved, the returned long-running operation (LRO) will be analogous to
    +     * the LRO returned from a CreateBuild call.
          * If rejected, the returned LRO will be immediately done.
          * 
    */ @@ -1672,7 +1743,6 @@ public com.google.longrunning.Operation approveBuild( * *
          * Creates a new `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ public com.google.cloudbuild.v1.BuildTrigger createBuildTrigger( @@ -1686,7 +1756,6 @@ public com.google.cloudbuild.v1.BuildTrigger createBuildTrigger( * *
          * Returns information about a `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ public com.google.cloudbuild.v1.BuildTrigger getBuildTrigger( @@ -1700,7 +1769,6 @@ public com.google.cloudbuild.v1.BuildTrigger getBuildTrigger( * *
          * Lists existing `BuildTrigger`s.
    -     * This API is experimental.
          * 
    */ public com.google.cloudbuild.v1.ListBuildTriggersResponse listBuildTriggers( @@ -1714,7 +1782,6 @@ public com.google.cloudbuild.v1.ListBuildTriggersResponse listBuildTriggers( * *
          * Deletes a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ public com.google.protobuf.Empty deleteBuildTrigger( @@ -1728,7 +1795,6 @@ public com.google.protobuf.Empty deleteBuildTrigger( * *
          * Updates a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ public com.google.cloudbuild.v1.BuildTrigger updateBuildTrigger( @@ -1834,6 +1900,20 @@ public com.google.cloudbuild.v1.ListWorkerPoolsResponse listWorkerPools( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListWorkerPoolsMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Returns the `DefaultServiceAccount` used by the project.
    +     * 
    + */ + public com.google.cloudbuild.v1.DefaultServiceAccount getDefaultServiceAccount( + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetDefaultServiceAccountMethod(), getCallOptions(), request); + } } /** @@ -1956,8 +2036,8 @@ public com.google.longrunning.Operation retryBuild( * *
          * Approves or rejects a pending build.
    -     * If approved, the returned LRO will be analogous to the LRO returned from
    -     * a CreateBuild call.
    +     * If approved, the returned long-running operation (LRO) will be analogous to
    +     * the LRO returned from a CreateBuild call.
          * If rejected, the returned LRO will be immediately done.
          * 
    */ @@ -1972,7 +2052,6 @@ public com.google.longrunning.Operation approveBuild( * *
          * Creates a new `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ public com.google.cloudbuild.v1.BuildTrigger createBuildTrigger( @@ -1986,7 +2065,6 @@ public com.google.cloudbuild.v1.BuildTrigger createBuildTrigger( * *
          * Returns information about a `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ public com.google.cloudbuild.v1.BuildTrigger getBuildTrigger( @@ -2000,7 +2078,6 @@ public com.google.cloudbuild.v1.BuildTrigger getBuildTrigger( * *
          * Lists existing `BuildTrigger`s.
    -     * This API is experimental.
          * 
    */ public com.google.cloudbuild.v1.ListBuildTriggersResponse listBuildTriggers( @@ -2014,7 +2091,6 @@ public com.google.cloudbuild.v1.ListBuildTriggersResponse listBuildTriggers( * *
          * Deletes a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ public com.google.protobuf.Empty deleteBuildTrigger( @@ -2028,7 +2104,6 @@ public com.google.protobuf.Empty deleteBuildTrigger( * *
          * Updates a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ public com.google.cloudbuild.v1.BuildTrigger updateBuildTrigger( @@ -2133,6 +2208,19 @@ public com.google.cloudbuild.v1.ListWorkerPoolsResponse listWorkerPools( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWorkerPoolsMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Returns the `DefaultServiceAccount` used by the project.
    +     * 
    + */ + public com.google.cloudbuild.v1.DefaultServiceAccount getDefaultServiceAccount( + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDefaultServiceAccountMethod(), getCallOptions(), request); + } } /** @@ -2255,8 +2343,8 @@ protected CloudBuildFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Approves or rejects a pending build.
    -     * If approved, the returned LRO will be analogous to the LRO returned from
    -     * a CreateBuild call.
    +     * If approved, the returned long-running operation (LRO) will be analogous to
    +     * the LRO returned from a CreateBuild call.
          * If rejected, the returned LRO will be immediately done.
          * 
    */ @@ -2271,7 +2359,6 @@ protected CloudBuildFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Creates a new `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -2285,7 +2372,6 @@ protected CloudBuildFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Returns information about a `BuildTrigger`.
    -     * This API is experimental.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -2299,7 +2385,6 @@ protected CloudBuildFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Lists existing `BuildTrigger`s.
    -     * This API is experimental.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< @@ -2314,7 +2399,6 @@ protected CloudBuildFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Deletes a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -2328,7 +2412,6 @@ protected CloudBuildFutureStub build(io.grpc.Channel channel, io.grpc.CallOption * *
          * Updates a `BuildTrigger` by its project ID and trigger ID.
    -     * This API is experimental.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -2435,6 +2518,20 @@ protected CloudBuildFutureStub build(io.grpc.Channel channel, io.grpc.CallOption return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWorkerPoolsMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Returns the `DefaultServiceAccount` used by the project.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloudbuild.v1.DefaultServiceAccount> + getDefaultServiceAccount(com.google.cloudbuild.v1.GetDefaultServiceAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDefaultServiceAccountMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_BUILD = 0; @@ -2455,6 +2552,7 @@ protected CloudBuildFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_DELETE_WORKER_POOL = 15; private static final int METHODID_UPDATE_WORKER_POOL = 16; private static final int METHODID_LIST_WORKER_POOLS = 17; + private static final int METHODID_GET_DEFAULT_SERVICE_ACCOUNT = 18; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2570,6 +2668,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_DEFAULT_SERVICE_ACCOUNT: + serviceImpl.getDefaultServiceAccount( + (com.google.cloudbuild.v1.GetDefaultServiceAccountRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -2699,6 +2803,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloudbuild.v1.ListWorkerPoolsRequest, com.google.cloudbuild.v1.ListWorkerPoolsResponse>( service, METHODID_LIST_WORKER_POOLS))) + .addMethod( + getGetDefaultServiceAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest, + com.google.cloudbuild.v1.DefaultServiceAccount>( + service, METHODID_GET_DEFAULT_SERVICE_ACCOUNT))) .build(); } @@ -2768,6 +2879,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteWorkerPoolMethod()) .addMethod(getUpdateWorkerPoolMethod()) .addMethod(getListWorkerPoolsMethod()) + .addMethod(getGetDefaultServiceAccountMethod()) .build(); } } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java index f2816d4e8a06..067edb49911b 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Artifacts.java @@ -1505,7 +1505,7 @@ public interface MavenArtifactOrBuilder * * *
    -     * Path to an artifact in the build's workspace to be uploaded to
    +     * Optional. Path to an artifact in the build's workspace to be uploaded to
          * Artifact Registry.
          * This can be either an absolute path,
          * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
    @@ -1513,7 +1513,7 @@ public interface MavenArtifactOrBuilder
          * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
          * 
    * - * string path = 2; + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The path. */ @@ -1523,7 +1523,7 @@ public interface MavenArtifactOrBuilder * * *
    -     * Path to an artifact in the build's workspace to be uploaded to
    +     * Optional. Path to an artifact in the build's workspace to be uploaded to
          * Artifact Registry.
          * This can be either an absolute path,
          * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
    @@ -1531,7 +1531,7 @@ public interface MavenArtifactOrBuilder
          * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
          * 
    * - * string path = 2; + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for path. */ @@ -1742,7 +1742,7 @@ public com.google.protobuf.ByteString getRepositoryBytes() { * * *
    -     * Path to an artifact in the build's workspace to be uploaded to
    +     * Optional. Path to an artifact in the build's workspace to be uploaded to
          * Artifact Registry.
          * This can be either an absolute path,
          * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
    @@ -1750,7 +1750,7 @@ public com.google.protobuf.ByteString getRepositoryBytes() {
          * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
          * 
    * - * string path = 2; + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The path. */ @@ -1771,7 +1771,7 @@ public java.lang.String getPath() { * * *
    -     * Path to an artifact in the build's workspace to be uploaded to
    +     * Optional. Path to an artifact in the build's workspace to be uploaded to
          * Artifact Registry.
          * This can be either an absolute path,
          * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
    @@ -1779,7 +1779,7 @@ public java.lang.String getPath() {
          * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
          * 
    * - * string path = 2; + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for path. */ @@ -2542,7 +2542,7 @@ public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { * * *
    -       * Path to an artifact in the build's workspace to be uploaded to
    +       * Optional. Path to an artifact in the build's workspace to be uploaded to
            * Artifact Registry.
            * This can be either an absolute path,
            * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
    @@ -2550,7 +2550,7 @@ public Builder setRepositoryBytes(com.google.protobuf.ByteString value) {
            * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
            * 
    * - * string path = 2; + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The path. */ @@ -2570,7 +2570,7 @@ public java.lang.String getPath() { * * *
    -       * Path to an artifact in the build's workspace to be uploaded to
    +       * Optional. Path to an artifact in the build's workspace to be uploaded to
            * Artifact Registry.
            * This can be either an absolute path,
            * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
    @@ -2578,7 +2578,7 @@ public java.lang.String getPath() {
            * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
            * 
    * - * string path = 2; + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for path. */ @@ -2598,7 +2598,7 @@ public com.google.protobuf.ByteString getPathBytes() { * * *
    -       * Path to an artifact in the build's workspace to be uploaded to
    +       * Optional. Path to an artifact in the build's workspace to be uploaded to
            * Artifact Registry.
            * This can be either an absolute path,
            * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
    @@ -2606,7 +2606,7 @@ public com.google.protobuf.ByteString getPathBytes() {
            * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
            * 
    * - * string path = 2; + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The path to set. * @return This builder for chaining. @@ -2625,7 +2625,7 @@ public Builder setPath(java.lang.String value) { * * *
    -       * Path to an artifact in the build's workspace to be uploaded to
    +       * Optional. Path to an artifact in the build's workspace to be uploaded to
            * Artifact Registry.
            * This can be either an absolute path,
            * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
    @@ -2633,7 +2633,7 @@ public Builder setPath(java.lang.String value) {
            * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
            * 
    * - * string path = 2; + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2648,7 +2648,7 @@ public Builder clearPath() { * * *
    -       * Path to an artifact in the build's workspace to be uploaded to
    +       * Optional. Path to an artifact in the build's workspace to be uploaded to
            * Artifact Registry.
            * This can be either an absolute path,
            * e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar
    @@ -2656,7 +2656,7 @@ public Builder clearPath() {
            * e.g. my-app/target/my-app-1.0.SNAPSHOT.jar.
            * 
    * - * string path = 2; + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for path to set. * @return This builder for chaining. @@ -6033,11 +6033,13 @@ public interface NpmPackageOrBuilder * * *
    -     * Path to the package.json.
    +     * Optional. Path to the package.json.
          * e.g. workspace/path/to/package
    +     *
    +     * Only one of `archive` or `package_path` can be specified.
          * 
    * - * string package_path = 2; + * string package_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The packagePath. */ @@ -6047,11 +6049,13 @@ public interface NpmPackageOrBuilder * * *
    -     * Path to the package.json.
    +     * Optional. Path to the package.json.
          * e.g. workspace/path/to/package
    +     *
    +     * Only one of `archive` or `package_path` can be specified.
          * 
    * - * string package_path = 2; + * string package_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for packagePath. */ @@ -6175,11 +6179,13 @@ public com.google.protobuf.ByteString getRepositoryBytes() { * * *
    -     * Path to the package.json.
    +     * Optional. Path to the package.json.
          * e.g. workspace/path/to/package
    +     *
    +     * Only one of `archive` or `package_path` can be specified.
          * 
    * - * string package_path = 2; + * string package_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The packagePath. */ @@ -6200,11 +6206,13 @@ public java.lang.String getPackagePath() { * * *
    -     * Path to the package.json.
    +     * Optional. Path to the package.json.
          * e.g. workspace/path/to/package
    +     *
    +     * Only one of `archive` or `package_path` can be specified.
          * 
    * - * string package_path = 2; + * string package_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for packagePath. */ @@ -6730,11 +6738,13 @@ public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { * * *
    -       * Path to the package.json.
    +       * Optional. Path to the package.json.
            * e.g. workspace/path/to/package
    +       *
    +       * Only one of `archive` or `package_path` can be specified.
            * 
    * - * string package_path = 2; + * string package_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The packagePath. */ @@ -6754,11 +6764,13 @@ public java.lang.String getPackagePath() { * * *
    -       * Path to the package.json.
    +       * Optional. Path to the package.json.
            * e.g. workspace/path/to/package
    +       *
    +       * Only one of `archive` or `package_path` can be specified.
            * 
    * - * string package_path = 2; + * string package_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for packagePath. */ @@ -6778,11 +6790,13 @@ public com.google.protobuf.ByteString getPackagePathBytes() { * * *
    -       * Path to the package.json.
    +       * Optional. Path to the package.json.
            * e.g. workspace/path/to/package
    +       *
    +       * Only one of `archive` or `package_path` can be specified.
            * 
    * - * string package_path = 2; + * string package_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The packagePath to set. * @return This builder for chaining. @@ -6801,11 +6815,13 @@ public Builder setPackagePath(java.lang.String value) { * * *
    -       * Path to the package.json.
    +       * Optional. Path to the package.json.
            * e.g. workspace/path/to/package
    +       *
    +       * Only one of `archive` or `package_path` can be specified.
            * 
    * - * string package_path = 2; + * string package_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -6820,11 +6836,13 @@ public Builder clearPackagePath() { * * *
    -       * Path to the package.json.
    +       * Optional. Path to the package.json.
            * e.g. workspace/path/to/package
    +       *
    +       * Only one of `archive` or `package_path` can be specified.
            * 
    * - * string package_path = 2; + * string package_path = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for packagePath to set. * @return This builder for chaining. diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Build.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Build.java index e7bbb0296ea5..03236f06acb7 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Build.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Build.java @@ -2805,10 +2805,12 @@ public com.google.protobuf.ByteString getStatusDetailBytes() { * * *
    -   * The location of the source files to build.
    +   * Optional. The location of the source files to build.
        * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the source field is set. */ @@ -2821,10 +2823,12 @@ public boolean hasSource() { * * *
    -   * The location of the source files to build.
    +   * Optional. The location of the source files to build.
        * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The source. */ @@ -2837,10 +2841,12 @@ public com.google.cloudbuild.v1.Source getSource() { * * *
    -   * The location of the source files to build.
    +   * Optional. The location of the source files to build.
        * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloudbuild.v1.SourceOrBuilder getSourceOrBuilder() { @@ -6653,10 +6659,12 @@ public Builder setStatusDetailBytes(com.google.protobuf.ByteString value) { * * *
    -     * The location of the source files to build.
    +     * Optional. The location of the source files to build.
          * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the source field is set. */ @@ -6668,10 +6676,12 @@ public boolean hasSource() { * * *
    -     * The location of the source files to build.
    +     * Optional. The location of the source files to build.
          * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The source. */ @@ -6687,10 +6697,12 @@ public com.google.cloudbuild.v1.Source getSource() { * * *
    -     * The location of the source files to build.
    +     * Optional. The location of the source files to build.
          * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSource(com.google.cloudbuild.v1.Source value) { if (sourceBuilder_ == null) { @@ -6710,10 +6722,12 @@ public Builder setSource(com.google.cloudbuild.v1.Source value) { * * *
    -     * The location of the source files to build.
    +     * Optional. The location of the source files to build.
          * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSource(com.google.cloudbuild.v1.Source.Builder builderForValue) { if (sourceBuilder_ == null) { @@ -6730,10 +6744,12 @@ public Builder setSource(com.google.cloudbuild.v1.Source.Builder builderForValue * * *
    -     * The location of the source files to build.
    +     * Optional. The location of the source files to build.
          * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSource(com.google.cloudbuild.v1.Source value) { if (sourceBuilder_ == null) { @@ -6758,10 +6774,12 @@ public Builder mergeSource(com.google.cloudbuild.v1.Source value) { * * *
    -     * The location of the source files to build.
    +     * Optional. The location of the source files to build.
          * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000020); @@ -6778,10 +6796,12 @@ public Builder clearSource() { * * *
    -     * The location of the source files to build.
    +     * Optional. The location of the source files to build.
          * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloudbuild.v1.Source.Builder getSourceBuilder() { bitField0_ |= 0x00000020; @@ -6793,10 +6813,12 @@ public com.google.cloudbuild.v1.Source.Builder getSourceBuilder() { * * *
    -     * The location of the source files to build.
    +     * Optional. The location of the source files to build.
          * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloudbuild.v1.SourceOrBuilder getSourceOrBuilder() { if (sourceBuilder_ != null) { @@ -6810,10 +6832,12 @@ public com.google.cloudbuild.v1.SourceOrBuilder getSourceOrBuilder() { * * *
    -     * The location of the source files to build.
    +     * Optional. The location of the source files to build.
          * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloudbuild.v1.Source, diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java index d472e0d717e4..04c671af3297 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptions.java @@ -2207,7 +2207,7 @@ public com.google.cloudbuild.v1.BuildOptions.LogStreamingOption getLogStreamingO * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2453 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 * @return The workerPool. */ @java.lang.Override @@ -2234,7 +2234,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2453 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 * @return The bytes for workerPool. */ @java.lang.Override @@ -4431,7 +4431,7 @@ public Builder clearLogStreamingOption() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2453 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 * @return The workerPool. */ @java.lang.Deprecated @@ -4457,7 +4457,7 @@ public java.lang.String getWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2453 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 * @return The bytes for workerPool. */ @java.lang.Deprecated @@ -4483,7 +4483,7 @@ public com.google.protobuf.ByteString getWorkerPoolBytes() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2453 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 * @param value The workerPool to set. * @return This builder for chaining. */ @@ -4508,7 +4508,7 @@ public Builder setWorkerPool(java.lang.String value) { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2453 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4529,7 +4529,7 @@ public Builder clearWorkerPool() { * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2453 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 * @param value The bytes for workerPool to set. * @return This builder for chaining. */ diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java index 616440d1096a..1a3026496df8 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOptionsOrBuilder.java @@ -270,7 +270,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2453 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 * @return The workerPool. */ @java.lang.Deprecated @@ -286,7 +286,7 @@ public interface BuildOptionsOrBuilder * string worker_pool = 7 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.BuildOptions.worker_pool is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2453 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2569 * @return The bytes for workerPool. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOrBuilder.java index 0010e1a234ca..63116a8e17d4 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuildOrBuilder.java @@ -166,10 +166,12 @@ public interface BuildOrBuilder * * *
    -   * The location of the source files to build.
    +   * Optional. The location of the source files to build.
        * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the source field is set. */ @@ -179,10 +181,12 @@ public interface BuildOrBuilder * * *
    -   * The location of the source files to build.
    +   * Optional. The location of the source files to build.
        * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The source. */ @@ -192,10 +196,12 @@ public interface BuildOrBuilder * * *
    -   * The location of the source files to build.
    +   * Optional. The location of the source files to build.
        * 
    * - * .google.devtools.cloudbuild.v1.Source source = 3; + * + * .google.devtools.cloudbuild.v1.Source source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloudbuild.v1.SourceOrBuilder getSourceOrBuilder(); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImage.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImage.java index fdf14f299119..7a0981d8eb13 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImage.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImage.java @@ -42,6 +42,7 @@ private BuiltImage(com.google.protobuf.GeneratedMessageV3.Builder builder) { private BuiltImage() { name_ = ""; digest_ = ""; + artifactRegistryPackage_ = ""; } @java.lang.Override @@ -233,6 +234,59 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { : pushTiming_; } + public static final int ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + @java.lang.Override + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -256,6 +310,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, artifactRegistryPackage_); + } getUnknownFields().writeTo(output); } @@ -274,6 +331,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, artifactRegistryPackage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -295,6 +355,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPushTiming()) { if (!getPushTiming().equals(other.getPushTiming())) return false; } + if (!getArtifactRegistryPackage().equals(other.getArtifactRegistryPackage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,6 +375,8 @@ public int hashCode() { hash = (37 * hash) + PUSH_TIMING_FIELD_NUMBER; hash = (53 * hash) + getPushTiming().hashCode(); } + hash = (37 * hash) + ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + getArtifactRegistryPackage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -469,6 +532,7 @@ public Builder clear() { pushTimingBuilder_.dispose(); pushTimingBuilder_ = null; } + artifactRegistryPackage_ = ""; return this; } @@ -515,6 +579,9 @@ private void buildPartial0(com.google.cloudbuild.v1.BuiltImage result) { result.pushTiming_ = pushTimingBuilder_ == null ? pushTiming_ : pushTimingBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.artifactRegistryPackage_ = artifactRegistryPackage_; + } result.bitField0_ |= to_bitField0_; } @@ -576,6 +643,11 @@ public Builder mergeFrom(com.google.cloudbuild.v1.BuiltImage other) { if (other.hasPushTiming()) { mergePushTiming(other.getPushTiming()); } + if (!other.getArtifactRegistryPackage().isEmpty()) { + artifactRegistryPackage_ = other.artifactRegistryPackage_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -620,6 +692,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 34 + case 42: + { + artifactRegistryPackage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1078,6 +1156,122 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { return pushTimingBuilder_; } + private java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactRegistryPackage. + */ + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for artifactRegistryPackage. + */ + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArtifactRegistryPackage() { + artifactRegistryPackage_ = getDefaultInstance().getArtifactRegistryPackage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImageOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImageOrBuilder.java index 0916998f7dae..d03d37cb80d5 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImageOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/BuiltImageOrBuilder.java @@ -120,4 +120,30 @@ public interface BuiltImageOrBuilder * */ com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + java.lang.String getArtifactRegistryPackage(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + com.google.protobuf.ByteString getArtifactRegistryPackageBytes(); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java index 14b05ea67f20..aa6369dd0c5e 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Cloudbuild.java @@ -28,6 +28,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_cloudbuild_v1_RetryBuildRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -56,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_devtools_cloudbuild_v1_StorageSourceManifest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_devtools_cloudbuild_v1_StorageSourceManifest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_devtools_cloudbuild_v1_Source_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -410,7 +422,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/api/resource.proto\032\030google/api/routin" + "g.proto\032#google/longrunning/operations.p" + "roto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"q\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"h\n" + + "\037GetDefaultServiceAccountRequest\022E\n" + + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + + "/cloudbuild.googleapis.com/DefaultServiceAccount\"\202\002\n" + + "\025DefaultServiceAccount\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022H\n" + + "\025service_account_email\030\002 \001(\tB)\340A\003\372A#\n" + + "!iam.googleapis.com/ServiceAccount:\213\001\352A\207\001\n" + + "/cloudbuild.googleapis.com/DefaultServiceAccount\022=projects/{project}/locati" + + "ons/{location}/defaultServiceAccount2\025defaultServiceAccount\"q\n" + "\021RetryBuildRequest\0222\n" + "\004name\030\003 \001(\tB$\372A!\n" + "\037cloudbuild.googleapis.com/Build\022\027\n\n" @@ -421,73 +442,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\027\n\n" + "trigger_id\030\002 \001(\tB\003\340A\002\0229\n" - + "\006source\030\003 \001(\0132).google.devtools.cloudbuild.v1.RepoSource\"\352\001\n\r" + + "\006source\030\003 \001(\0132).google.devtools.cloudbuild.v1.RepoSource\"\364\001\n\r" + "StorageSource\022\016\n" - + "\006bucket\030\001 \001(\t\022\016\n" - + "\006object\030\002 \001(\t\022\022\n\n" - + "generation\030\003 \001(\003\022W\n" - + "\016source_fetcher\030\005 \001(\0162:.google.devtools.cloud" - + "build.v1.StorageSource.SourceFetcherB\003\340A\001\"L\n\r" + + "\006bucket\030\001 \001(\t\022\023\n" + + "\006object\030\002 \001(\tB\003\340A\002\022\027\n\n" + + "generation\030\003 \001(\003B\003\340A\001\022W\n" + + "\016source_fetcher\030\005 \001(\0162:.goog" + + "le.devtools.cloudbuild.v1.StorageSource.SourceFetcherB\003\340A\001\"L\n\r" + "SourceFetcher\022\036\n" + "\032SOURCE_FETCHER_UNSPECIFIED\020\000\022\n\n" + "\006GSUTIL\020\001\022\017\n" - + "\013GCS_FETCHER\020\002\"7\n" - + "\tGitSource\022\013\n" - + "\003url\030\001 \001(\t\022\013\n" - + "\003dir\030\005 \001(\t\022\020\n" - + "\010revision\030\006 \001(\t\"\256\002\n\n" - + "RepoSource\022\022\n\n" - + "project_id\030\001 \001(\t\022\021\n" - + "\trepo_name\030\002 \001(\t\022\025\n" + + "\013GCS_FETCHER\020\002\"F\n" + + "\tGitSource\022\020\n" + + "\003url\030\001 \001(\tB\003\340A\002\022\020\n" + + "\003dir\030\005 \001(\tB\003\340A\001\022\025\n" + + "\010revision\030\006 \001(\tB\003\340A\001\"\307\002\n\n" + + "RepoSource\022\027\n\n" + + "project_id\030\001 \001(\tB\003\340A\001\022\026\n" + + "\trepo_name\030\002 \001(\tB\003\340A\002\022\025\n" + "\013branch_name\030\003 \001(\tH\000\022\022\n" + "\010tag_name\030\004 \001(\tH\000\022\024\n\n" - + "commit_sha\030\005 \001(\tH\000\022\013\n" - + "\003dir\030\007 \001(\t\022\024\n" - + "\014invert_regex\030\010 \001(\010\022S\n\r" - + "substitutions\030\t \003(\0132<.goog" - + "le.devtools.cloudbuild.v1.RepoSource.SubstitutionsEntry\0324\n" + + "commit_sha\030\005 \001(\tH\000\022\020\n" + + "\003dir\030\007 \001(\tB\003\340A\001\022\031\n" + + "\014invert_regex\030\010 \001(\010B\003\340A\001\022X\n\r" + + "substitutions\030\t" + + " \003(\0132<.google.devtools.cloudbuild.v1.RepoSource.SubstitutionsEntryB\003\340A\001\0324\n" + "\022SubstitutionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\n\n" - + "\010revision\"K\n" - + "\025StorageSourceManifest\022\016\n" - + "\006bucket\030\001 \001(\t\022\016\n" - + "\006object\030\002 \001(\t\022\022\n\n" - + "generation\030\003 \001(\003\"\265\002\n" + + "\010revision\"U\n" + + "\025StorageSourceManifest\022\023\n" + + "\006bucket\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006object\030\002 \001(\tB\003\340A\002\022\022\n\n" + + "generation\030\003 \001(\003\"\200\001\n" + + "\023ConnectedRepository\022@\n\n" + + "repository\030\001 \001(\tB,\340A\002\372A&\n" + + "$cloudbuild.googleapis.com/Repository\022\020\n" + + "\003dir\030\002 \001(\tB\003\340A\001\022\025\n" + + "\010revision\030\003 \001(\tB\003\340A\002\"\216\003\n" + "\006Source\022F\n" - + "\016storage_source\030\002 \001(\0132,.goog" - + "le.devtools.cloudbuild.v1.StorageSourceH\000\022@\n" + + "\016storage_source\030\002 \001(\0132,.google" + + ".devtools.cloudbuild.v1.StorageSourceH\000\022@\n" + "\013repo_source\030\003" + " \001(\0132).google.devtools.cloudbuild.v1.RepoSourceH\000\022>\n\n" + "git_source\030\005 \001(\0132(.google.devtools.cloudbuild.v1.GitSourceH\000\022W\n" - + "\027storage_source_manifest\030\010" - + " \001(\01324.google.devtools.cloudbuild.v1.StorageSourceManifestH\000B\010\n" - + "\006source\"m\n\n" + + "\027storage_source_manifest\030\010 \001" + + "(\01324.google.devtools.cloudbuild.v1.StorageSourceManifestH\000\022W\n" + + "\024connected_repository\030\t" + + " \001(\01322.google.devtools.cloudbuild.v1.ConnectedRepositoryB\003\340A\001H\000B\010\n" + + "\006source\"\225\001\n\n" + "BuiltImage\022\014\n" + "\004name\030\001 \001(\t\022\016\n" + "\006digest\030\003 \001(\t\022A\n" + "\013push_timing\030\004" - + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\"\247\001\n" + + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\022&\n" + + "\031artifact_registry_package\030\005 \001(\tB\003\340A\003\"\317\001\n" + "\025UploadedPythonPackage\022\013\n" + "\003uri\030\001 \001(\t\022>\n" + "\013file_hashes\030\002 \001(\0132).google.devtools.cloudbuild.v1.FileHashes\022A\n" - + "\013push_timing\030\003" - + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\"\247\001\n" + + "\013push_timing\030\003 \001(\0132\'.goog" + + "le.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\022&\n" + + "\031artifact_registry_package\030\004 \001(\tB\003\340A\003\"\317\001\n" + "\025UploadedMavenArtifact\022\013\n" + "\003uri\030\001 \001(\t\022>\n" + "\013file_hashes\030\002 \001(\0132).google.devtools.cloudbuild.v1.FileHashes\022A\n" - + "\013push_timing\030\003 \001(\0132\'.go" - + "ogle.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\"\242\001\n" + + "\013push_timing\030\003 " + + "\001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\022&\n" + + "\031artifact_registry_package\030\004 \001(\tB\003\340A\003\"\312\001\n" + "\020UploadedGoModule\022\013\n" + "\003uri\030\001 \001(\t\022>\n" + "\013file_hashes\030\002 \001(\0132).google.devtools.cloudbuild.v1.FileHashes\022A\n" - + "\013push_timing\030\003 \001(\013" - + "2\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\"\244\001\n" + + "\013push_timing\030\003" + + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\022&\n" + + "\031artifact_registry_package\030\004 \001(\tB\003\340A\003\"\314\001\n" + "\022UploadedNpmPackage\022\013\n" + "\003uri\030\001 \001(\t\022>\n" + "\013file_hashes\030\002 \001(\0132).google.devtools.cloudbuild.v1.FileHashes\022A\n" + "\013push_timing\030\003" - + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\"\305\004\n" + + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\022&\n" + + "\031artifact_registry_package\030\007 \001(\tB\003\340A\003\"\305\004\n" + "\tBuildStep\022\014\n" + "\004name\030\001 \001(\t\022\013\n" + "\003env\030\002 \003(\t\022\014\n" @@ -503,8 +536,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013pull_timing\030\r" + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\022*\n" + "\007timeout\030\013 \001(\0132\031.google.protobuf.Duration\022@\n" - + "\006status\030\014 \001(\0162+.g" - + "oogle.devtools.cloudbuild.v1.Build.StatusB\003\340A\003\022\025\n\r" + + "\006status\030\014" + + " \001(\0162+.google.devtools.cloudbuild.v1.Build.StatusB\003\340A\003\022\025\n\r" + "allow_failure\030\016 \001(\010\022\026\n" + "\texit_code\030\020 \001(\005B\003\340A\003\022\030\n" + "\020allow_exit_codes\030\022 \003(\005\022\016\n" @@ -521,25 +554,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "num_artifacts\030\005 \001(\003\022\032\n" + "\022build_step_outputs\030\006 \003(\014\022@\n" + "\017artifact_timing\030\007 \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpan\022M\n" - + "\017python_packages\030\010" - + " \003(\01324.google.devtools.cloudbuild.v1.UploadedPythonPackage\022M\n" - + "\017maven_artifacts\030\t" - + " \003(\01324.google.devtools.cloudbuild.v1.UploadedMavenArtifact\022H\n\n" + + "\017python_packages\030\010 \003(\01324.google." + + "devtools.cloudbuild.v1.UploadedPythonPackage\022M\n" + + "\017maven_artifacts\030\t \003(\01324.google.d" + + "evtools.cloudbuild.v1.UploadedMavenArtifact\022H\n\n" + "go_modules\030\n" + " \003(\0132/.google.devtools.cloudbuild.v1.UploadedGoModuleB\003\340A\001\022G\n" + "\014npm_packages\030\014" + " \003(\01321.google.devtools.cloudbuild.v1.UploadedNpmPackage\"`\n" + "\016ArtifactResult\022\020\n" + "\010location\030\001 \001(\t\022<\n" - + "\tfile_hash\030\002 \003(\0132).google.devtools.cloudbuild.v1.FileHashes\"\272\023\n" + + "\tfile_hash\030\002 \003(\0132).google.devtools.cloudbuild.v1.FileHashes\"\277\023\n" + "\005Build\022\021\n" + "\004name\030- \001(\tB\003\340A\003\022\017\n" + "\002id\030\001 \001(\tB\003\340A\003\022\027\n\n" + "project_id\030\020 \001(\tB\003\340A\003\022@\n" + "\006status\030\002" + " \001(\0162+.google.devtools.cloudbuild.v1.Build.StatusB\003\340A\003\022\032\n\r" - + "status_detail\030\030 \001(\tB\003\340A\003\0225\n" - + "\006source\030\003 \001(\0132%.google.devtools.cloudbuild.v1.Source\0227\n" + + "status_detail\030\030 \001(\tB\003\340A\003\022:\n" + + "\006source\030\003" + + " \001(\0132%.google.devtools.cloudbuild.v1.SourceB\003\340A\001\0227\n" + "\005steps\030\013 \003(\0132(.google.devtools.cloudbuild.v1.BuildStep\022<\n" + "\007results\030\n" + " \001(\0132&.google.devtools.cloudbuild.v1.ResultsB\003\340A\003\0224\n" @@ -553,42 +587,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tqueue_ttl\030( \001(\0132\031.google.protobuf.Duration\022;\n" + "\tartifacts\030% \001(\0132(.google.devtools.cloudbuild.v1.Artifacts\022\023\n" + "\013logs_bucket\030\023 \001(\t\022O\n" - + "\021source_provenance\030\025 \001(\0132/.go" - + "ogle.devtools.cloudbuild.v1.SourceProvenanceB\003\340A\003\022\035\n" + + "\021source_provenance\030\025" + + " \001(\0132/.google.devtools.cloudbuild.v1.SourceProvenanceB\003\340A\003\022\035\n" + "\020build_trigger_id\030\026 \001(\tB\003\340A\003\022<\n" + "\007options\030\027 \001(\0132+.google.devtools.cloudbuild.v1.BuildOptions\022\024\n" + "\007log_url\030\031 \001(\tB\003\340A\003\022N\n\r" - + "substitutions\030\035 \003(\01327.google.dev" - + "tools.cloudbuild.v1.Build.SubstitutionsEntry\022\014\n" + + "substitutions\030\035 \003(\013" + + "27.google.devtools.cloudbuild.v1.Build.SubstitutionsEntry\022\014\n" + "\004tags\030\037 \003(\t\0226\n" + "\007secrets\030 \003(\0132%.google.devtools.cloudbuild.v1.Secret\022E\n" - + "\006timing\030!" - + " \003(\01320.google.devtools.cloudbuild.v1.Build.TimingEntryB\003\340A\003\022C\n" - + "\010approval\030, " - + "\001(\0132,.google.devtools.cloudbuild.v1.BuildApprovalB\003\340A\003\022?\n" + + "\006timing\030! \003(\01320.google.devtool" + + "s.cloudbuild.v1.Build.TimingEntryB\003\340A\003\022C\n" + + "\010approval\030," + + " \001(\0132,.google.devtools.cloudbuild.v1.BuildApprovalB\003\340A\003\022?\n" + "\017service_account\030* \001(\tB&\372A#\n" + "!iam.googleapis.com/ServiceAccount\022A\n" + "\021available_secrets\030/ \001(\0132&.google.devtools.cloudbuild.v1.Secrets\022C\n" + "\010warnings\0301" + " \003(\0132,.google.devtools.cloudbuild.v1.Build.WarningB\003\340A\003\022A\n\n" - + "git_config\0300 \001(\0132(.go" - + "ogle.devtools.cloudbuild.v1.GitConfigB\003\340A\001\022K\n" - + "\014failure_info\0303 \001(\01320.google.devtoo" - + "ls.cloudbuild.v1.Build.FailureInfoB\003\340A\003\022D\n" - + "\014dependencies\0308" - + " \003(\0132).google.devtools.cloudbuild.v1.DependencyB\003\340A\001\032\250\001\n" + + "git_config\0300" + + " \001(\0132(.google.devtools.cloudbuild.v1.GitConfigB\003\340A\001\022K\n" + + "\014failure_info\0303 \001(\01320." + + "google.devtools.cloudbuild.v1.Build.FailureInfoB\003\340A\003\022D\n" + + "\014dependencies\0308 \003(\0132).goo" + + "gle.devtools.cloudbuild.v1.DependencyB\003\340A\001\032\250\001\n" + "\007Warning\022\014\n" + "\004text\030\001 \001(\t\022G\n" - + "\010priority\030\002 \001(\01625.goog" - + "le.devtools.cloudbuild.v1.Build.Warning.Priority\"F\n" + + "\010priority\030\002" + + " \001(\01625.google.devtools.cloudbuild.v1.Build.Warning.Priority\"F\n" + "\010Priority\022\030\n" + "\024PRIORITY_UNSPECIFIED\020\000\022\010\n" + "\004INFO\020\001\022\013\n" + "\007WARNING\020\002\022\t\n" + "\005ALERT\020\003\032\236\002\n" + "\013FailureInfo\022J\n" - + "\004type\030\001 \001(\0162<.google." - + "devtools.cloudbuild.v1.Build.FailureInfo.FailureType\022\016\n" + + "\004type\030\001 " + + "\001(\0162<.google.devtools.cloudbuild.v1.Build.FailureInfo.FailureType\022\016\n" + "\006detail\030\002 \001(\t\"\262\001\n" + "\013FailureType\022\034\n" + "\030FAILURE_TYPE_UNSPECIFIED\020\000\022\017\n" @@ -603,8 +637,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\032V\n" + "\013TimingEntry\022\013\n" + "\003key\030\001 \001(\t\0226\n" - + "\005value\030\002" - + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpan:\0028\001\"\231\001\n" + + "\005value\030\002 \001(\0132" + + "\'.google.devtools.cloudbuild.v1.TimeSpan:\0028\001\"\231\001\n" + "\006Status\022\022\n" + "\016STATUS_UNKNOWN\020\000\022\013\n" + "\007PENDING\020\n" @@ -617,16 +651,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007TIMEOUT\020\006\022\r\n" + "\tCANCELLED\020\007\022\013\n" + "\007EXPIRED\020\t:\217\001\352A\213\001\n" - + "\037cloudbuild.googleapis.com/Build\022!projects/{p" - + "roject}/builds/{build}\0226projects/{projec" - + "t}/locations/{location}/builds/{build}*\006builds2\005build\"\325\003\n\n" + + "\037cloudbuild.googleapis.com/Build\022!projects/{project}/builds/{build}\0226pro" + + "jects/{project}/locations/{location}/builds/{build}*\006builds2\005build\"\325\003\n\n" + "Dependency\022\017\n" + "\005empty\030\001 \001(\010H\000\022S\n\n" - + "git_source\030\002 \001(\0132=.google.devto" - + "ols.cloudbuild.v1.Dependency.GitSourceDependencyH\000\032\321\001\n" + + "git_source\030\002 \001(\0132=" + + ".google.devtools.cloudbuild.v1.Dependency.GitSourceDependencyH\000\032\321\001\n" + "\023GitSourceDependency\022V\n\n" - + "repository\030\001 \001(\0132=.google.devtools.cloudbu" - + "ild.v1.Dependency.GitSourceRepositoryB\003\340A\002\022\025\n" + + "repository\030\001 \001(\0132=.google.dev" + + "tools.cloudbuild.v1.Dependency.GitSourceRepositoryB\003\340A\002\022\025\n" + "\010revision\030\002 \001(\tB\003\340A\002\022\037\n" + "\022recurse_submodules\030\003 \001(\010B\003\340A\001\022\022\n" + "\005depth\030\004 \001(\003B\003\340A\001\022\026\n" @@ -638,31 +671,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010repotypeB\005\n" + "\003dep\"\260\001\n" + "\tGitConfig\022A\n" - + "\004http\030\001 \001(\01323.goog" - + "le.devtools.cloudbuild.v1.GitConfig.HttpConfig\032`\n\n" + + "\004http\030\001" + + " \001(\01323.google.devtools.cloudbuild.v1.GitConfig.HttpConfig\032`\n\n" + "HttpConfig\022R\n" + "\031proxy_secret_version_name\030\001 \001(\tB/\372A,\n" - + "*secretmanager.googleapis.com/SecretVersion\"\252\007\n" + + "*secretmanager.googleapis.com/SecretVersion\"\264\007\n" + "\tArtifacts\022\016\n" + "\006images\030\001 \003(\t\022I\n" - + "\007objects\030\002 \001(\01328.google" - + ".devtools.cloudbuild.v1.Artifacts.ArtifactObjects\022O\n" - + "\017maven_artifacts\030\003 \003(\01326.goo" - + "gle.devtools.cloudbuild.v1.Artifacts.MavenArtifact\022J\n\n" - + "go_modules\030\004 \003(\01321.google." - + "devtools.cloudbuild.v1.Artifacts.GoModuleB\003\340A\001\022O\n" - + "\017python_packages\030\005 \003(\01326.google" - + ".devtools.cloudbuild.v1.Artifacts.PythonPackage\022I\n" - + "\014npm_packages\030\006 \003(\01323.google.d" - + "evtools.cloudbuild.v1.Artifacts.NpmPackage\032p\n" + + "\007objects\030\002" + + " \001(\01328.google.devtools.cloudbuild.v1.Artifacts.ArtifactObjects\022O\n" + + "\017maven_artifacts\030\003" + + " \003(\01326.google.devtools.cloudbuild.v1.Artifacts.MavenArtifact\022J\n\n" + + "go_modules\030\004 " + + "\003(\01321.google.devtools.cloudbuild.v1.Artifacts.GoModuleB\003\340A\001\022O\n" + + "\017python_packages\030\005" + + " \003(\01326.google.devtools.cloudbuild.v1.Artifacts.PythonPackage\022I\n" + + "\014npm_packages\030\006 \003" + + "(\01323.google.devtools.cloudbuild.v1.Artifacts.NpmPackage\032p\n" + "\017ArtifactObjects\022\020\n" + "\010location\030\001 \001(\t\022\r\n" + "\005paths\030\002 \003(\t\022<\n" - + "\006timing\030\003" - + " \001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\032i\n\r" + + "\006timing\030\003 " + + "\001(\0132\'.google.devtools.cloudbuild.v1.TimeSpanB\003\340A\003\032n\n\r" + "MavenArtifact\022\022\n\n" - + "repository\030\001 \001(\t\022\014\n" - + "\004path\030\002 \001(\t\022\023\n" + + "repository\030\001 \001(\t\022\021\n" + + "\004path\030\002 \001(\tB\003\340A\001\022\023\n" + "\013artifact_id\030\003 \001(\t\022\020\n" + "\010group_id\030\004 \001(\t\022\017\n" + "\007version\030\005 \001(\t\032\277\001\n" @@ -675,28 +708,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016module_version\030\006 \001(\tB\003\340A\001\0322\n\r" + "PythonPackage\022\022\n\n" + "repository\030\001 \001(\t\022\r\n" - + "\005paths\030\002 \003(\t\0326\n\n" + + "\005paths\030\002 \003(\t\032;\n\n" + "NpmPackage\022\022\n\n" - + "repository\030\001 \001(\t\022\024\n" - + "\014package_path\030\002 \001(\t\"h\n" + + "repository\030\001 \001(\t\022\031\n" + + "\014package_path\030\002 \001(\tB\003\340A\001\"h\n" + "\010TimeSpan\022.\n\n" + "start_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"M\n" + "\026BuildOperationMetadata\0223\n" - + "\005build\030\001 \001(\0132$.google.devtools.cloudbuild.v1.Build\"\303\003\n" + + "\005build\030\001 \001(\0132$.google.devtools.cloudbuild.v1.Build\"\357\004\n" + "\020SourceProvenance\022M\n" + "\027resolved_storage_source\030\003" + " \001(\0132,.google.devtools.cloudbuild.v1.StorageSource\022G\n" - + "\024resolved_repo_source\030\006 \001(\013" - + "2).google.devtools.cloudbuild.v1.RepoSource\022^\n" - + " resolved_storage_source_manifest\030\t" - + " \001(\01324.google.devtools.cloudbuild.v1.StorageSourceManifest\022Y\n" - + "\013file_hashes\030\004 \003(\013" - + "2?.google.devtools.cloudbuild.v1.SourceProvenance.FileHashesEntryB\003\340A\003\032\\\n" + + "\024resolved_repo_source\030\006" + + " \001(\0132).google.devtools.cloudbuild.v1.RepoSource\022^\n" + + " resolved_storage_source_manifest\030\t \001(\01324.google.de" + + "vtools.cloudbuild.v1.StorageSourceManifest\022^\n" + + "\035resolved_connected_repository\030\n" + + " \001(\01322.google.devtools.cloudbuild.v1.ConnectedRepositoryB\003\340A\003\022J\n" + + "\023resolved_git_source\030\013" + + " \001(\0132(.google.devtools.cloudbuild.v1.GitSourceB\003\340A\003\022Y\n" + + "\013file_hashes\030\004 \003(\0132?.go" + + "ogle.devtools.cloudbuild.v1.SourceProvenance.FileHashesEntryB\003\340A\003\032\\\n" + "\017FileHashesEntry\022\013\n" + "\003key\030\001 \001(\t\0228\n" - + "\005value\030\002 \001(\0132)." - + "google.devtools.cloudbuild.v1.FileHashes:\0028\001\"D\n\n" + + "\005value\030\002 \001(\0132).googl" + + "e.devtools.cloudbuild.v1.FileHashes:\0028\001\"D\n\n" + "FileHashes\0226\n" + "\tfile_hash\030\001 \003(\0132#.google.devtools.cloudbuild.v1.Hash\"\232\001\n" + "\004Hash\022:\n" @@ -709,14 +746,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014GO_MODULE_H1\020\003\022\n\n" + "\006SHA512\020\004\"\222\001\n" + "\007Secrets\022J\n" - + "\016secret_manager\030\001 \003(\01322.google.dev" - + "tools.cloudbuild.v1.SecretManagerSecret\022;\n" + + "\016secret_manager\030\001" + + " \003(\01322.google.devtools.cloudbuild.v1.SecretManagerSecret\022;\n" + "\006inline\030\002 \003(\0132+.google.devtools.cloudbuild.v1.InlineSecret\"\305\001\n" + "\014InlineSecret\022<\n" + "\014kms_key_name\030\001 \001(\tB&\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022H\n" - + "\007env_map\030\002 \003(\01327.g" - + "oogle.devtools.cloudbuild.v1.InlineSecret.EnvMapEntry\032-\n" + + "\007env_map\030\002 \003(\01327.google" + + ".devtools.cloudbuild.v1.InlineSecret.EnvMapEntry\032-\n" + "\013EnvMapEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\014:\0028\001\"i\n" @@ -743,8 +780,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ListBuildsRequest\0224\n" + "\006parent\030\t \001(\tB$\372A!\022\037cloudbuild.googleapis.com/Build\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n" - + "\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022\016\n" + "\006filter\030\010 \001(\t\"c\n" + "\022ListBuildsResponse\0224\n" @@ -757,13 +793,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\002id\030\002 \001(\tB\003\340A\002\"p\n" + "\023ApproveBuildRequest\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022F\n" - + "\017approval_result\030\002 \001(\0132-." - + "google.devtools.cloudbuild.v1.ApprovalResult\"\267\002\n\r" + + "\017approval_result\030\002 \001(\0132-.googl" + + "e.devtools.cloudbuild.v1.ApprovalResult\"\267\002\n\r" + "BuildApproval\022F\n" - + "\005state\030\001 \001(\01622." - + "google.devtools.cloudbuild.v1.BuildApproval.StateB\003\340A\003\022B\n" - + "\006config\030\002 \001(\0132-.google." - + "devtools.cloudbuild.v1.ApprovalConfigB\003\340A\003\022B\n" + + "\005state\030\001 \001(\01622.googl" + + "e.devtools.cloudbuild.v1.BuildApproval.StateB\003\340A\003\022B\n" + + "\006config\030\002" + + " \001(\0132-.google.devtools.cloudbuild.v1.ApprovalConfigB\003\340A\003\022B\n" + "\006result\030\003" + " \001(\0132-.google.devtools.cloudbuild.v1.ApprovalResultB\003\340A\003\"V\n" + "\005State\022\025\n" @@ -777,8 +813,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ApprovalResult\022\035\n" + "\020approver_account\030\002 \001(\tB\003\340A\003\0226\n\r" + "approval_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n" - + "\010decision\030\004" - + " \001(\01626.google.devtools.cloudbuild.v1.ApprovalResult.DecisionB\003\340A\002\022\024\n" + + "\010decision\030\004 \001" + + "(\01626.google.devtools.cloudbuild.v1.ApprovalResult.DecisionB\003\340A\002\022\024\n" + "\007comment\030\005 \001(\tB\003\340A\001\022\020\n" + "\003url\030\006 \001(\tB\003\340A\001\"@\n" + "\010Decision\022\030\n" @@ -801,8 +837,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uri\030\002 \001(\t\022?\n\n" + "repository\030\007 \001(\tB)\372A&\n" + "$cloudbuild.googleapis.com/RepositoryH\000\022H\n" - + "\trepo_type\030\003" - + " \001(\01625.google.devtools.cloudbuild.v1.GitFileSource.RepoType\022\020\n" + + "\trepo_type\030\003 " + + "\001(\01625.google.devtools.cloudbuild.v1.GitFileSource.RepoType\022\020\n" + "\010revision\030\004 \001(\t\022Y\n" + "\030github_enterprise_config\030\005 \001(\tB5\372A2\n" + "0cloudbuild.googleapis.com/GithubEnterpriseConfigH\001\"d\n" @@ -814,30 +850,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006GITLAB\020\004B\010\n" + "\006sourceB\023\n" + "\021enterprise_config\"\322\t\n" - + "\014BuildTrigger\022\025\n\r" + + "\014BuildTrigger\022\025\n" + + "\r" + "resource_name\030\" \001(\t\022\017\n" + "\002id\030\001 \001(\tB\003\340A\003\022\023\n" + "\013description\030\n" + " \001(\t\022\014\n" + "\004name\030\025 \001(\t\022\014\n" + "\004tags\030\023 \003(\t\022C\n" - + "\020trigger_template\030\007 \001(\0132)." - + "google.devtools.cloudbuild.v1.RepoSource\022A\n" + + "\020trigger_template\030\007" + + " \001(\0132).google.devtools.cloudbuild.v1.RepoSource\022A\n" + "\006github\030\r" + " \001(\01321.google.devtools.cloudbuild.v1.GitHubEventsConfig\022B\n\r" + "pubsub_config\030\035 \001(\0132+.google.devtools.cloudbuild.v1.PubsubConfig\022D\n" - + "\016webhook_config\030\037 \001(\0132" - + ",.google.devtools.cloudbuild.v1.WebhookConfig\022\024\n\n" + + "\016webhook_config\030\037 \001(\0132,.goo" + + "gle.devtools.cloudbuild.v1.WebhookConfig\022\024\n\n" + "autodetect\030\022 \001(\010H\000\0225\n" + "\005build\030\004 \001(\0132$.google.devtools.cloudbuild.v1.BuildH\000\022\022\n" + "\010filename\030\010 \001(\tH\000\022G\n" - + "\017git_file_source\030\030" - + " \001(\0132,.google.devtools.cloudbuild.v1.GitFileSourceH\000\0224\n" + + "\017git_file_source\030\030 \001" + + "(\0132,.google.devtools.cloudbuild.v1.GitFileSourceH\000\0224\n" + "\013create_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\020\n" + "\010disabled\030\t \001(\010\022U\n\r" - + "substitutions\030\013 \003(\0132>.google." - + "devtools.cloudbuild.v1.BuildTrigger.SubstitutionsEntry\022\025\n\r" + + "substitutions\030\013 \003(\0132>.google.devto" + + "ols.cloudbuild.v1.BuildTrigger.SubstitutionsEntry\022\025\n\r" + "ignored_files\030\017 \003(\t\022\026\n" + "\016included_files\030\020 \003(\t\022\023\n" + "\006filter\030\036 \001(\tB\003\340A\001\022E\n" @@ -850,17 +887,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022SubstitutionsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\242\001\352A\236\001\n" - + "&cloudbuild.googleapis.com/BuildTrigger\022%projects/{project}/triggers/{tri" - + "gger}\022:projects/{project}/locations/{loc" - + "ation}/triggers/{trigger}*\010triggers2\007triggerB\020\n" + + "&cloudbuild.googleapis.com/BuildTrigger\022%projects/{project}/triggers/{trigger}" + + "\022:projects/{project}/locations/{location" + + "}/triggers/{trigger}*\010triggers2\007triggerB\020\n" + "\016build_template\"\265\003\n" + "\025RepositoryEventConfig\022=\n\n" + "repository\030\001 \001(\tB)\372A&\n" + "$cloudbuild.googleapis.com/Repository\022a\n" - + "\017repository_type\030\002 \001(\0162C.google.devtools.cloud" - + "build.v1.RepositoryEventConfig.RepositoryTypeB\003\340A\003\022H\n" - + "\014pull_request\030\003 \001(\01320.googl" - + "e.devtools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + + "\017repository_type\030\002 \001(\0162C.google.devtools.cloudbuild" + + ".v1.RepositoryEventConfig.RepositoryTypeB\003\340A\003\022H\n" + + "\014pull_request\030\003 \001(\01320.google.dev" + + "tools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + "\004push\030\004 \001(\0132).google.devtools.cloudbuild.v1.PushFilterH\000\"k\n" + "\016RepositoryType\022\037\n" + "\033REPOSITORY_TYPE_UNSPECIFIED\020\000\022\n\n" @@ -872,14 +909,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017installation_id\030\001 \001(\003B\002\030\001\022\r\n" + "\005owner\030\006 \001(\t\022\014\n" + "\004name\030\007 \001(\t\022H\n" - + "\014pull_request\030\004" - + " \001(\01320.google.devtools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + + "\014pull_request\030\004 \001(\013" + + "20.google.devtools.cloudbuild.v1.PullRequestFilterH\000\0229\n" + "\004push\030\005 \001(\0132).google.devtools.cloudbuild.v1.PushFilterH\000B\007\n" - + "\005event\"\377\002\n" + + "\005event\"\202\003\n" + "\014PubsubConfig\022@\n" + "\014subscription\030\001 \001(\tB*\340A\003\372A$\n" - + "\"pubsub.googleapis.com/Subscription\022/\n" - + "\005topic\030\002 \001(\tB \372A\035\n" + + "\"pubsub.googleapis.com/Subscription\0222\n" + + "\005topic\030\002 \001(\tB#\340A\001\372A\035\n" + "\033pubsub.googleapis.com/Topic\022E\n" + "\025service_account_email\030\003 \001(\tB&\372A#\n" + "!iam.googleapis.com/ServiceAccount\022@\n" @@ -918,8 +955,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\003 \001(" + "\tB+\372A(\022&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022A\n" - + "\007trigger\030\002 \001(\0132+.goog" - + "le.devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\"\205\001\n" + + "\007trigger\030\002 \001(\0132+.google" + + ".devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\"\205\001\n" + "\026GetBuildTriggerRequest\0229\n" + "\004name\030\003 \001(\tB+\372A(\n" + "&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" @@ -934,7 +971,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListBuildTriggersResponse\022=\n" + "\010triggers\030\001 \003(\0132+.google.devtools.cloudbuild.v1.BuildTrigger\022\027\n" + "\017next_page_token\030\002 \001(\t\"\210\001\n" - + "\031DeleteBuildTriggerRequest\0229\n" + + "\031DeleteBuildTriggerRequest\0229", + "\n" + "\004name\030\003 \001(\tB+\372A(\n" + "&cloudbuild.googleapis.com/BuildTrigger\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\027\n\n" @@ -946,31 +984,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132+.google.devtools.cloudbuild.v1.BuildTriggerB\003\340A\002\022/\n" + "\013update_mask\030\005 \001(\0132\032.google.protobuf.FieldMask\"\242\014\n" + "\014BuildOptions\022L\n" - + "\026source_provenance_hash\030\001 \003(\0162,.goo" - + "gle.devtools.cloudbuild.v1.Hash.HashType\022Y\n" - + "\027requested_verify_option\030\002 \001(\01628.goog" - + "le.devtools.cloudbuild.v1.BuildOptions.VerifyOption\022M\n" - + "\014machine_type\030\003 \001(\01627.goog" - + "le.devtools.cloudbuild.v1.BuildOptions.MachineType\022\024\n" + + "\026source_provenance_hash\030\001 \003(\0162,.googl" + + "e.devtools.cloudbuild.v1.Hash.HashType\022Y\n" + + "\027requested_verify_option\030\002 \001(\01628.google" + + ".devtools.cloudbuild.v1.BuildOptions.VerifyOption\022M\n" + + "\014machine_type\030\003 \001(\01627.google" + + ".devtools.cloudbuild.v1.BuildOptions.MachineType\022\024\n" + "\014disk_size_gb\030\006 \001(\003\022[\n" - + "\023substitution_option\030\004 \001(\0162>.google.devtools." - + "cloudbuild.v1.BuildOptions.SubstitutionOption\022\035\n" + + "\023substitution_option\030\004 \001(\0162>.google.devtools.cl" + + "oudbuild.v1.BuildOptions.SubstitutionOption\022\035\n" + "\025dynamic_substitutions\030\021 \001(\010\022\035\n" + "\025automap_substitutions\030\026 \001(\010\022\\\n" - + "\024log_streaming_option\030\005 \001(\0162>.google.devtools.clou" - + "dbuild.v1.BuildOptions.LogStreamingOption\022\027\n" + + "\024log_streaming_option\030\005 \001(\0162>.google.devtools.cloudb" + + "uild.v1.BuildOptions.LogStreamingOption\022\027\n" + "\013worker_pool\030\007 \001(\tB\002\030\001\022I\n" - + "\004pool\030\023 \001(\013" - + "26.google.devtools.cloudbuild.v1.BuildOptions.PoolOptionB\003\340A\001\022H\n" - + "\007logging\030\013 \001(\01627" - + ".google.devtools.cloudbuild.v1.BuildOptions.LoggingMode\022\013\n" + + "\004pool\030\023 \001(\01326" + + ".google.devtools.cloudbuild.v1.BuildOptions.PoolOptionB\003\340A\001\022H\n" + + "\007logging\030\013 \001(\01627.g" + + "oogle.devtools.cloudbuild.v1.BuildOptions.LoggingMode\022\013\n" + "\003env\030\014 \003(\t\022\022\n\n" - + "secret_e", - "nv\030\r" + + "secret_env\030\r" + " \003(\t\0226\n" + "\007volumes\030\016 \003(\0132%.google.devtools.cloudbuild.v1.Volume\022p\n" - + "\034default_logs_bucket_behavior\030\025 \001(\0162E.google.devtools" - + ".cloudbuild.v1.BuildOptions.DefaultLogsBucketBehaviorB\003\340A\001\022&\n" + + "\034default_logs_bucket_behavior\030\025 \001(\0162E.google.devtools.c" + + "loudbuild.v1.BuildOptions.DefaultLogsBucketBehaviorB\003\340A\001\022&\n" + "\031enable_structured_logging\030\027 \001(\010B\003\340A\001\032E\n\n" + "PoolOption\0227\n" + "\004name\030\001 \001(\tB)\372A&\n" @@ -1009,23 +1046,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "project_id\030\002 \001(\t\022\017\n" + "\007trigger\030\003 \001(\t\022\016\n" + "\006secret\030\004 \001(\t\"\037\n" - + "\035ReceiveTriggerWebhookResponse\"\211\004\n" - + "\026GitHubEnterpriseConfig\022\021\n" - + "\004name\030\007 \001(\tB\003\340A\001\022\020\n" + + "\035ReceiveTriggerWebhookResponse\"\216\004\n" + + "\026GitHubEnterpriseConfig\022\014\n" + + "\004name\030\007 \001(\t\022\020\n" + "\010host_url\030\003 \001(\t\022\023\n" + "\006app_id\030\004 \001(\003B\003\340A\002\0224\n" + "\013create_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\013webhook_key\030\010 \001(\t\022>\n" + "\016peered_network\030\t \001(\tB&\340A\001\372A \n" - + "\036compute.googleapis.com/Network\022G\n" + + "\036compute.googleapis.com/Network\022L\n" + "\007secrets\030\n" - + " \001(\01326.google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets\022\024\n" - + "\014display_name\030\013 \001(\t\022\023\n" + + " \001(" + + "\01326.google.devtools.cloudbuild.v1.GitHubEnterpriseSecretsB\003\340A\001\022\031\n" + + "\014display_name\030\013 \001(\tB\003\340A\001\022\023\n" + "\006ssl_ca\030\014 \001(\tB\003\340A\001:\265\001\352A\261\001\n" - + "0cloudbuild.googleapis.com/GithubEnterpriseCo" - + "nfig\0223projects/{project}/githubEnterpriseConfigs/{config}\022Hprojects/{project}/lo" - + "cations/{location}/githubEnterpriseConfigs/{config}\"\355\002\n" + + "0cloudbuild.googleapis.com/GithubEnterpriseConfig\0223projects/{project}/githubEnterp" + + "riseConfigs/{config}\022Hprojects/{project}" + + "/locations/{location}/githubEnterpriseConfigs/{config}\"\355\002\n" + "\027GitHubEnterpriseSecrets\022Q\n" + "\030private_key_version_name\030\005 \001(\tB/\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022T\n" @@ -1039,15 +1077,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + "\014display_name\030\002 \001(\t\022\020\n" + "\003uid\030\003 \001(\tB\003\340A\003\022O\n" - + "\013annotations\030\004 \003(\0132:.goo" - + "gle.devtools.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + + "\013annotations\030\004 \003(\0132:." + + "google.devtools.cloudbuild.v1.WorkerPool.AnnotationsEntry\0224\n" + "\013create_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013delete_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C\n" - + "\005state\030\010 \001(\0162/.google" - + ".devtools.cloudbuild.v1.WorkerPool.StateB\003\340A\003\022T\n" - + "\026private_pool_v1_config\030\014 \001(\01322." - + "google.devtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + + "\005state\030\010 \001(\0162/.goo" + + "gle.devtools.cloudbuild.v1.WorkerPool.StateB\003\340A\003\022T\n" + + "\026private_pool_v1_config\030\014 \001(\013" + + "22.google.devtools.cloudbuild.v1.PrivatePoolV1ConfigH\000\022\021\n" + "\004etag\030\013 \001(\tB\003\340A\003\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -1059,28 +1097,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DELETING\020\003\022\013\n" + "\007DELETED\020\004\022\014\n" + "\010UPDATING\020\005:\211\001\352A\205\001\n" - + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects/{p" - + "roject}/locations/{location}/workerPools/{worker_pool}*\013workerPools2\n" + + "$cloudbuild.googleapis.com/WorkerPool\022Aprojects" + + "/{project}/locations/{location}/workerPools/{worker_pool}*\013workerPools2\n" + "workerPoolR\001\001B\010\n" + "\006config\"\272\007\n" + "\023PrivatePoolV1Config\022V\n\r" - + "worker_config\030\001 \001(\0132?.google.devtools.cl" - + "oudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" - + "\016network_config\030\002 \001(\0132@.google.de" - + "vtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" - + "\027private_service_connect\030\005 \001(\0132H.google.devtools.cloudbuild.v1." - + "PrivatePoolV1Config.PrivateServiceConnectB\003\340A\005\032\220\001\n" + + "worker_config\030\001 \001(\0132?.google.devtools" + + ".cloudbuild.v1.PrivatePoolV1Config.WorkerConfig\022X\n" + + "\016network_config\030\002 \001(\0132@.google" + + ".devtools.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig\022n\n" + + "\027private_service_connect\030\005 \001(\0132H.google.devtools.cloudbuild." + + "v1.PrivatePoolV1Config.PrivateServiceConnectB\003\340A\005\032\220\001\n" + "\014WorkerConfig\022\031\n" + "\014machine_type\030\001 \001(\tB\003\340A\001\022\024\n" + "\014disk_size_gb\030\002 \001(\003\022.\n" + "\034enable_nested_virtualization\030\003" + " \001(\010B\003\340A\001H\000\210\001\001B\037\n" - + "\035_enable_nested_virtualization\032\266\002\n\r" + + "\035_enable_nested_virtualization\032\266\002\n" + + "\r" + "NetworkConfig\022A\n" + "\016peered_network\030\001 \001(\tB)\340A\005\340A\002\372A \n" + "\036compute.googleapis.com/Network\022d\n\r" - + "egress_option\030\002 \001(\0162M.google.devtools." - + "cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption\022$\n" + + "egress_option\030\002 \001(\0162M.google.devtoo" + + "ls.cloudbuild.v1.PrivatePoolV1Config.NetworkConfig.EgressOption\022$\n" + "\027peered_network_ip_range\030\003 \001(\tB\003\340A\005\"V\n" + "\014EgressOption\022\035\n" + "\031EGRESS_OPTION_UNSPECIFIED\020\000\022\024\n" @@ -1094,10 +1133,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CreateWorkerPoolRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022C\n" - + "\013worker_pool\030\002 \001(\0132)." - + "google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\022\036\n" - + "\016worker_pool_id\030\003 \001(\tB\006\340A\005\340A\002\022\025\n" - + "\r" + + "\013worker_pool\030\002 \001(\013" + + "2).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\022\036\n" + + "\016worker_pool_id\030\003 \001(\tB\006\340A\005\340A\002\022\025\n\r" + "validate_only\030\004 \001(\010\"R\n" + "\024GetWorkerPoolRequest\022:\n" + "\004name\030\001 \001(\tB,\340A\002\372A&\n" @@ -1106,12 +1144,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + "$cloudbuild.googleapis.com/WorkerPool\022\021\n" + "\004etag\030\002 \001(\tB\003\340A\001\022\025\n\r" - + "allow_missing\030\003 \001(\010\022\025\n\r" - + "validate_only\030\004 \001(\010\"\246\001\n" + + "allow_missing\030\003 \001(\010\022\025\n" + + "\r" + + "validate_only\030\004 \001(\010\"\253\001\n" + "\027UpdateWorkerPoolRequest\022C\n" + "\013worker_pool\030\001" - + " \001(\0132).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\022\025\n\r" + + " \001(\0132).google.devtools.cloudbuild.v1.WorkerPoolB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\025\n\r" + "validate_only\030\004 \001(\010\"z\n" + "\026ListWorkerPoolsRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" @@ -1119,8 +1159,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"s\n" + "\027ListWorkerPoolsResponse\022?\n" - + "\014worker_pools\030\001 \003(\0132" - + ").google.devtools.cloudbuild.v1.WorkerPool\022\027\n" + + "\014worker_pools\030\001" + + " \003(\0132).google.devtools.cloudbuild.v1.WorkerPool\022\027\n" + "\017next_page_token\030\002 \001(\t\"\307\001\n" + "!CreateWorkerPoolOperationMetadata\022>\n" + "\013worker_pool\030\001 \001(\tB)\372A&\n" @@ -1136,143 +1176,149 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013worker_pool\030\001 \001(\tB)\372A&\n" + "$cloudbuild.googleapis.com/WorkerPool\022/\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" - + "complete_time\030\003 \001(\0132\032.google.protobuf.Timestamp2\241+\n\n" - + "CloudBuild\022\256\002\n" - + "\013CreateBuild\0221.google.devtoo" - + "ls.cloudbuild.v1.CreateBuildRequest\032\035.google.longrunning.Operation\"\314\001\312A\037\n" - + "\005Build\022" - + "\026BuildOperationMetadata\332A\020project_id,build\202\323\344\223\002^\"" - + " /v1/projects/{project_id}/buil" - + "ds:\005buildZ3\"*/v1/{parent=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" - + "\006parent\022!projects/*/locations/{location=*}\022\210\002\n" - + "\010GetBuild\022..google.devtools.cloudbuild.v1.G" - + "etBuildRequest\032$.google.devtools.cloudbuild.v1.Build\"\245\001\332A\r" - + "project_id,id\202\323\344\223\002U\022%/v1/projects/{project_id}/builds/{id}Z,\022*" - + "/v1/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + + "complete_time\030\003 \001(\0132\032.google.protobuf.Timestamp2\371-\n\n" + + "CloudBuild\022\267\002\n" + + "\013CreateBuild\0221.google.devtools.cloudbuild.v1.CreateBuildRequ" + + "est\032\035.google.longrunning.Operation\"\325\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\020project_id,build\332A\006parent\202\323\344\223\002^\"" + + " /v1/projects/{project_id}/builds:\005buildZ3\"*/v1/{paren" + + "t=projects/*/locations/*}/builds:\005build\212\323\344\223\002-\022+\n" + + "\006parent\022!projects/*/locations/{location=*}\022\217\002\n" + + "\010GetBuild\022..google.devtool" + + "s.cloudbuild.v1.GetBuildRequest\032$.google.devtools.cloudbuild.v1.Build\"\254\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002U\022%/v1/projects/{pro" + + "ject_id}/builds/{id}Z,\022*/v1/{name=projects/*/locations/*/builds/*}\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\221\002\n\n" - + "ListBuilds\0220.google.devtools.cloudbuild.v1.ListBuildsRe" - + "quest\0321.google.devtools.cloudbuild.v1.Li" - + "stBuildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" - + " /v1/projects/{project_id}/buildsZ" - + ",\022*/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" - + "\006parent\022!projects/*/locations/{location=*}\022\242\002\n" - + "\013CancelBuild\0221.google.devtools.cloudbuild.v1.CancelBuildRequ" - + "est\032$.google.devtools.cloudbuild.v1.Build\"\271\001\332A\r" - + "project_id,id\202\323\344\223\002i\",/v1/projects" - + "/{project_id}/builds/{id}:cancel:\001*Z6\"1/" - + "v1/{name=projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" - + "\004name\022*projects/*/locations/{location=*}/builds/*\022\271\002\n\n" - + "RetryBuild\0220.google.devtools.cloudbuild.v1.Ret" - + "ryBuildRequest\032\035.google.longrunning.Operation\"\331\001\312A\037\n" + + "ListBuilds\0220.google.devtools.cloudbuild.v1.ListBuildsRequest\0321.google.d" + + "evtools.cloudbuild.v1.ListBuildsResponse\"\235\001\332A\021project_id,filter\202\323\344\223\002P\022" + + " /v1/proje" + + "cts/{project_id}/buildsZ,\022*/v1/{parent=projects/*/locations/*}/builds\212\323\344\223\002-\022+\n" + + "\006parent\022!projects/*/locations/{location=*}\022\251\002\n" + + "\013CancelBuild\0221.google.devtools.cloud" + + "build.v1.CancelBuildRequest\032$.google.devtools.cloudbuild.v1.Build\"\300\001\332A\r" + + "project_id,id\332A\004name\202\323\344\223\002i\",/v1/projects/{project" + + "_id}/builds/{id}:cancel:\001*Z6\"1/v1/{name=" + + "projects/*/locations/*/builds/*}:cancel:\001*\212\323\344\223\0024\0222\n" + + "\004name\022*projects/*/locations/{location=*}/builds/*\022\300\002\n\n" + + "RetryBuild\0220.google.devtools.cloudbuild.v1.RetryBuildRe" + + "quest\032\035.google.longrunning.Operation\"\340\001\312A\037\n" + "\005Build\022\026BuildOperationMetadata\332A\r" - + "project_id,id\202\323\344\223\002g\"+/v1/projects/{" - + "project_id}/builds/{id}:retry:\001*Z5\"0/v1/" - + "{name=projects/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + + "project_id,id\332A\004name\202\323\344\223\002g\"+/v1/projects/{pr" + + "oject_id}/builds/{id}:retry:\001*Z5\"0/v1/{n" + + "ame=projects/*/locations/*/builds/*}:retry:\001*\212\323\344\223\0024\0222\n" + "\004name\022*projects/*/locations/{location=*}/builds/*\022\301\002\n" - + "\014ApproveBuild\0222.google.devtools.cloudbuild.v1.Appro" - + "veBuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" - + "\005Build\022\026BuildOperationMetada" - + "ta\332A\024name,approval_result\202\323\344\223\002d\"&/v1/{na" - + "me=projects/*/builds/*}:approve:\001*Z7\"2/v" - + "1/{name=projects/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" - + "\004name\022*projects/*/locations/{location=*}/builds/*\022\262\002\n" - + "\022CreateBuildTrigger\0228.google.devtools.cloudbuil" - + "d.v1.CreateBuildTriggerRequest\032+.google." - + "devtools.cloudbuild.v1.BuildTrigger\"\264\001\332A" - + "\022project_id,trigger\202\323\344\223\002f\"\"/v1/projects/" - + "{project_id}/triggers:\007triggerZ7\",/v1/{p" - + "arent=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" - + "\006parent\022!projects/*/locations/{location=*}\022\263\002\n" - + "\017GetBuildTrigger\0225.google.devtools.cloudbuild.v1.GetBuildT" - + "riggerRequest\032+.google.devtools.cloudbui" - + "ld.v1.BuildTrigger\"\273\001\332A\025project_id,trigg" - + "er_id\202\323\344\223\002a\022//v1/projects/{project_id}/t" - + "riggers/{trigger_id}Z.\022,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\014ApproveBuild\0222.google.devtools.cloudbuild.v1.Approve" + + "BuildRequest\032\035.google.longrunning.Operation\"\335\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata" + + "\332A\024name,approval_result\202\323\344\223\002d\"&/v1/{name" + + "=projects/*/builds/*}:approve:\001*Z7\"2/v1/" + + "{name=projects/*/locations/*/builds/*}:approve:\001*\212\323\344\223\0024\0222\n" + + "\004name\022*projects/*/locations/{location=*}/builds/*\022\273\002\n" + + "\022CreateBuildTrigger\0228.google.devtools.cloudbuild." + + "v1.CreateBuildTriggerRequest\032+.google.de" + + "vtools.cloudbuild.v1.BuildTrigger\"\275\001\332A\022p" + + "roject_id,trigger\332A\006parent\202\323\344\223\002f\"\"/v1/pr" + + "ojects/{project_id}/triggers:\007triggerZ7\"" + + ",/v1/{parent=projects/*/locations/*}/triggers:\007trigger\212\323\344\223\002-\022+\n" + + "\006parent\022!projects/*/locations/{location=*}\022\272\002\n" + + "\017GetBuildTrigger\0225.google.devtools.cloudbuild.v1.Ge" + + "tBuildTriggerRequest\032+.google.devtools.c" + + "loudbuild.v1.BuildTrigger\"\302\001\332A\025project_i" + + "d,trigger_id\332A\004name\202\323\344\223\002a\022//v1/projects/" + + "{project_id}/triggers/{trigger_id}Z.\022,/v" + + "1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\243\002\n" - + "\021ListBuildTriggers\0227.google.devtools.cloudbuild.v1.ListBuildTriggers" - + "Request\0328.google.devtools.cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" - + "project_id\202\323\344\223\002T\022\"/v1/projects/{project_id}/trigg" - + "ersZ.\022,/v1/{parent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" - + "\006parent\022!projects/*/locations/{location=*}\022\244\002\n" - + "\022DeleteBuildTrigger\0228.google.devtools.cloudbuild.v1.De" - + "leteBuildTriggerRequest\032\026.google.protobu" - + "f.Empty\"\273\001\332A\025project_id,trigger_id\202\323\344\223\002a" - + "*//v1/projects/{project_id}/triggers/{tr" - + "igger_id}Z.*,/v1/{name=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + + "\021ListBuildTriggers\0227.google.devtools.cloudbuild.v1.Lis" + + "tBuildTriggersRequest\0328.google.devtools." + + "cloudbuild.v1.ListBuildTriggersResponse\"\232\001\332A\n" + + "project_id\202\323\344\223\002T\022\"/v1/projects/{pro" + + "ject_id}/triggersZ.\022,/v1/{parent=projects/*/locations/*}/triggers\212\323\344\223\002-\022+\n" + + "\006parent\022!projects/*/locations/{location=*}\022\253\002\n" + + "\022DeleteBuildTrigger\0228.google.devtools.cl" + + "oudbuild.v1.DeleteBuildTriggerRequest\032\026." + + "google.protobuf.Empty\"\302\001\332A\025project_id,tr" + + "igger_id\332A\004name\202\323\344\223\002a*//v1/projects/{pro" + + "ject_id}/triggers/{trigger_id}Z.*,/v1/{n" + + "ame=projects/*/locations/*/triggers/*}\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\366\002\n" - + "\022UpdateBuildTrigger\0228.google.devtools.c" - + "loudbuild.v1.UpdateBuildTriggerRequest\032+.google.devtools.cloudbuild.v1.BuildTrig" - + "ger\"\370\001\332A\035project_id,trigger_id,trigger\202\323" - + "\344\223\002\204\0012//v1/projects/{project_id}/trigger" - + "s/{trigger_id}:\007triggerZH2=/v1/{trigger." - + "resource_name=projects/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" - + "\025trigger.resou" - + "rce_name\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" - + "\017RunBuildTrigger\0225.google.devtools.cloudbuild.v1.RunBuildTrigg" - + "erRequest\032\035.google.longrunning.Operation\"\367\001\312A\037\n" - + "\005Build\022\026BuildOperationMetadata\332A\034" - + "project_id,trigger_id,source\202\323\344\223\002t\"3/v1/" - + "projects/{project_id}/triggers/{trigger_" - + "id}:run:\006sourceZ5\"0/v1/{name=projects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + + "\022UpdateBuildTrigger\0228.google.devtools.cloudbuild.v1.Update" + + "BuildTriggerRequest\032+.google.devtools.cl" + + "oudbuild.v1.BuildTrigger\"\370\001\332A\035project_id" + + ",trigger_id,trigger\202\323\344\223\002\204\0012//v1/projects" + + "/{project_id}/triggers/{trigger_id}:\007triggerZH2=/v1/{trigger.resource_name=proje" + + "cts/*/locations/*/triggers/*}:\007trigger\212\323\344\223\002G\022E\n" + + "\025trigger.resource_name\022,projects/*/locations/{location=*}/triggers/*\022\341\002\n" + + "\017RunBuildTrigger\0225.google.devtools.cloudb" + + "uild.v1.RunBuildTriggerRequest\032\035.google.longrunning.Operation\"\367\001\312A\037\n" + + "\005Build\022\026BuildOperationMetadata\332A\034project_id,trigger_" + + "id,source\202\323\344\223\002t\"3/v1/projects/{project_i" + + "d}/triggers/{trigger_id}:run:\006sourceZ5\"0" + + "/v1/{name=projects/*/locations/*/triggers/*}:run:\001*\212\323\344\223\0026\0224\n" + "\004name\022,projects/*/locations/{location=*}/triggers/*\022\225\002\n" - + "\025ReceiveTriggerWebhook\022;.google.devtools.cloudbuild.v1.ReceiveTrig" - + "gerWebhookRequest\032<.google.devtools.cloudbuild.v1.ReceiveTriggerWebhookResponse\"" - + "\200\001\202\323\344\223\002z\"4/v1/projects/{project_id}/trig" - + "gers/{trigger}:webhook:\004bodyZ<\"4/v1/{nam" - + "e=projects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" - + "\020CreateWorkerPool\0226.google.devtools.cloudbuild.v1.CreateWorkerPool" - + "Request\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" - + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!parent,worker_pool,worker_" - + "pool_id\202\323\344\223\002>\"//v1/{parent=projects/*/lo" - + "cations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + + "\025ReceiveTriggerWebhook\022;.google.devtools.clou" + + "dbuild.v1.ReceiveTriggerWebhookRequest\032<.google.devtools.cloudbuild.v1.ReceiveTr" + + "iggerWebhookResponse\"\200\001\202\323\344\223\002z\"4/v1/proje" + + "cts/{project_id}/triggers/{trigger}:webh" + + "ook:\004bodyZ<\"4/v1/{name=projects/*/locations/*/triggers/*}:webhook:\004body\022\271\002\n" + + "\020CreateWorkerPool\0226.google.devtools.cloudbuil" + + "d.v1.CreateWorkerPoolRequest\032\035.google.longrunning.Operation\"\315\001\312A/\n\n" + + "WorkerPool\022!CreateWorkerPoolOperationMetadata\332A!paren" + + "t,worker_pool,worker_pool_id\202\323\344\223\002>\"//v1/" + + "{parent=projects/*/locations/*}/workerPools:\013worker_pool\212\323\344\223\002-\022+\n" + "\006parent\022!projects/*/locations/{location=*}\022\356\001\n\r" - + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.GetWorkerPoolRequest\032)." - + "google.devtools.cloudbuild.v1.WorkerPool" - + "\"}\332A\004name\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "GetWorkerPool\0223.google.devtools.cloudbuild.v1.Ge" + + "tWorkerPoolRequest\032).google.devtools.clo" + + "udbuild.v1.WorkerPool\"}\332A\004name\202\323\344\223\0021\022//v" + + "1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\246\002\n" - + "\020DeleteWorkerPool\0226.google.devtools.cloudbuild.v1.DeleteWorkerPoolReq" - + "uest\032\035.google.longrunning.Operation\"\272\001\312A:\n" - + "\025google.protobuf.Empty\022!DeleteWorkerPo" - + "olOperationMetadata\332A\004name\202\323\344\223\0021*//v1/{n" - + "ame=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + + "\020DeleteWorkerPool\0226.google.devtools.cloudbuild.v" + + "1.DeleteWorkerPoolRequest\032\035.google.longrunning.Operation\"\272\001\312A:\n" + + "\025google.protobuf.Empty\022!DeleteWorkerPoolOperationMetadata" + + "\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/workerPools/*}\212\323\344\223\0029\0227\n" + "\004name\022/projects/*/locations/{location=*}/workerPools/*\022\323\002\n" - + "\020UpdateWorkerPool\0226.google.devtools.cloudbuild.v1.Up" - + "dateWorkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n\n" - + "WorkerPool\022!UpdateWorkerPoolOperationMetadata\332A\027worker_pool," - + "update_mask\202\323\344\223\002J2;/v1/{worker_pool.name" - + "=projects/*/locations/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + + "\020UpdateWorkerPool\0226.google.devt" + + "ools.cloudbuild.v1.UpdateWorkerPoolRequest\032\035.google.longrunning.Operation\"\347\001\312A/\n" + + "\n" + + "WorkerPool\022!UpdateWorkerPoolOperationMe" + + "tadata\332A\027worker_pool,update_mask\202\323\344\223\002J2;" + + "/v1/{worker_pool.name=projects/*/locatio" + + "ns/*/workerPools/*}:\013worker_pool\212\323\344\223\002E\022C\n" + "\020worker_pool.name\022/projects/*/locations/{location=*}/workerPools/*\022\365\001\n" - + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1.ListWorkerPoolsReques" - + "t\0326.google.devtools.cloudbuild.v1.ListWo" - + "rkerPoolsResponse\"s\332A\006parent\202\323\344\223\0021\022//v1/" - + "{parent=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" - + "\006parent\022!projects/*/locations/{location=*}\032M\312A\031cloudbuild.googleapis" - + ".com\322A.https://www.googleapis.com/auth/cloud-platformB\256\n\n" - + "\030com.google.cloudbuild.v1P\001ZAcloud.google.com/go/cloudbuild/api" - + "v1/v2/cloudbuildpb;cloudbuildpb\242\002\003GCB\252\002\032" - + "Google.Cloud.CloudBuild.V1\312\002\025Google\\Clou" - + "d\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" - + "\036compute.googleapis.com/Network\022,projec" - + "ts/{project}/global/networks/{network}\352AY\n" - + "!iam.googleapis.com/ServiceAccount\0224pr" - + "ojects/{project}/serviceAccounts/{service_account}\352AJ\n" + + "\017ListWorkerPools\0225.google.devtools.cloudbuild.v1." + + "ListWorkerPoolsRequest\0326.google.devtools.cloudbuild.v1.ListWorkerPoolsResponse\"s" + + "\332A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/workerPools\212\323\344\223\002-\022+\n" + + "\006parent\022!projects/*/locations/{location=*}\022\240\002\n" + + "\030GetDefaultServiceAccount\022>.google.devtoo" + + "ls.cloudbuild.v1.GetDefaultServiceAccountRequest\0324.google.devtools.cloudbuild.v1" + + ".DefaultServiceAccount\"\215\001\332A\004name\202\323\344\223\0029\0227" + + "/v1/{name=projects/*/locations/*/defaultServiceAccount}\212\323\344\223\002A\022?\n" + + "\004name\0227projects/*/locations/{location=*}/defaultServiceA" + + "ccount\032M\312A\031cloudbuild.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-platformB\256\n\n" + + "\030com.google.cloudbuild.v1P\001ZAcloud.google.com/go/cloudbuild/apiv1/v2/cl" + + "oudbuildpb;cloudbuildpb\242\002\003GCB\252\002\032Google.C" + + "loud.CloudBuild.V1\312\002\025Google\\Cloud\\Build\\V1\352\002\030Google::Cloud::Build::V1\352AN\n" + + "\036comput" + + "e.googleapis.com/Network\022,projects/{project}/global/networks/{network}\352AY\n" + + "!iam.googleapis.com/ServiceAccount\0224projects/{" + + "project}/serviceAccounts/{service_account}\352AJ\n" + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secret}\352Ad\n" - + "*secretmanager.googleapis.com" - + "/SecretVersion\0226projects/{project}/secrets/{secret}/versions/{version}\352Af\n" - + " gkehub.googleapis.com/Membership\022Bprojects/{p" - + "roject}/locations/{location}/memberships/{cluster_name}\352Ap\n" - + "!cloudkms.googleapis.com/CryptoKey\022Kprojects/{project}/locati" - + "ons/{location}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" - + "\"pubsub.googleapis.com/Sub" - + "scription\022/projects/{project}/subscriptions/{subscription}\352A@\n" + + "*secretmanager.googleapis.com/SecretV" + + "ersion\0226projects/{project}/secrets/{secret}/versions/{version}\352Af\n" + + " gkehub.googleapis.com/Membership\022Bprojects/{project}/" + + "locations/{location}/memberships/{cluster_name}\352Ap\n" + + "!cloudkms.googleapis.com/CryptoKey\022Kprojects/{project}/locations/{loc" + + "ation}/keyRings/{keyring}/cryptoKeys/{key}\352AU\n" + + "\"pubsub.googleapis.com/Subscriptio" + + "n\022/projects/{project}/subscriptions/{subscription}\352A@\n" + "\033pubsub.googleapis.com/Topic\022!projects/{project}/topics/{topic}\352Av\n" - + "(compute.googleapis.com/NetworkAttachment\022Jprojects/{project}/regions/{" - + "region}/networkAttachments/{networkattachment}\352A\236\001\n" - + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project" - + "}/locations/{location}/connections/{conn" - + "ection}/gitRepositoryLinks/{git_repository_link}\352A\202\001\n" - + "$cloudbuild.googleapis.com/Repository\022Zprojects/{project}/locations" - + "/{location}/connections/{connection}/repositories/{repository}b\006proto3" + + "(compute.googleapis.com/NetworkAttachment\022Jprojects/{project}/regions/{region}/" + + "networkAttachments/{networkattachment}\352A\236\001\n" + + "1developerconnect.googleapis.com/GitRepositoryLink\022iprojects/{project}/locati" + + "ons/{location}/connections/{connection}/" + + "gitRepositoryLinks/{git_repository_link}\352A\202\001\n" + + "$cloudbuild.googleapis.com/Repository\022Zprojects/{project}/locations/{locati" + + "on}/connections/{connection}/repositories/{repository}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1290,8 +1336,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_devtools_cloudbuild_v1_RetryBuildRequest_descriptor = + internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_descriptor, + new java.lang.String[] { + "Name", "ServiceAccountEmail", + }); + internal_static_google_devtools_cloudbuild_v1_RetryBuildRequest_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_google_devtools_cloudbuild_v1_RetryBuildRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_RetryBuildRequest_descriptor, @@ -1299,7 +1361,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "Id", }); internal_static_google_devtools_cloudbuild_v1_RunBuildTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(3); internal_static_google_devtools_cloudbuild_v1_RunBuildTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_RunBuildTriggerRequest_descriptor, @@ -1307,7 +1369,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "TriggerId", "Source", }); internal_static_google_devtools_cloudbuild_v1_StorageSource_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(4); internal_static_google_devtools_cloudbuild_v1_StorageSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_StorageSource_descriptor, @@ -1315,7 +1377,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bucket", "Object", "Generation", "SourceFetcher", }); internal_static_google_devtools_cloudbuild_v1_GitSource_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_google_devtools_cloudbuild_v1_GitSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GitSource_descriptor, @@ -1323,7 +1385,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Url", "Dir", "Revision", }); internal_static_google_devtools_cloudbuild_v1_RepoSource_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_devtools_cloudbuild_v1_RepoSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_RepoSource_descriptor, @@ -1347,63 +1409,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_StorageSourceManifest_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_devtools_cloudbuild_v1_StorageSourceManifest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_StorageSourceManifest_descriptor, new java.lang.String[] { "Bucket", "Object", "Generation", }); + internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_descriptor, + new java.lang.String[] { + "Repository", "Dir", "Revision", + }); internal_static_google_devtools_cloudbuild_v1_Source_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(9); internal_static_google_devtools_cloudbuild_v1_Source_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Source_descriptor, new java.lang.String[] { - "StorageSource", "RepoSource", "GitSource", "StorageSourceManifest", "Source", + "StorageSource", + "RepoSource", + "GitSource", + "StorageSourceManifest", + "ConnectedRepository", + "Source", }); internal_static_google_devtools_cloudbuild_v1_BuiltImage_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(10); internal_static_google_devtools_cloudbuild_v1_BuiltImage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuiltImage_descriptor, new java.lang.String[] { - "Name", "Digest", "PushTiming", + "Name", "Digest", "PushTiming", "ArtifactRegistryPackage", }); internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(11); internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UploadedPythonPackage_descriptor, new java.lang.String[] { - "Uri", "FileHashes", "PushTiming", + "Uri", "FileHashes", "PushTiming", "ArtifactRegistryPackage", }); internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(12); internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UploadedMavenArtifact_descriptor, new java.lang.String[] { - "Uri", "FileHashes", "PushTiming", + "Uri", "FileHashes", "PushTiming", "ArtifactRegistryPackage", }); internal_static_google_devtools_cloudbuild_v1_UploadedGoModule_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(13); internal_static_google_devtools_cloudbuild_v1_UploadedGoModule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UploadedGoModule_descriptor, new java.lang.String[] { - "Uri", "FileHashes", "PushTiming", + "Uri", "FileHashes", "PushTiming", "ArtifactRegistryPackage", }); internal_static_google_devtools_cloudbuild_v1_UploadedNpmPackage_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(14); internal_static_google_devtools_cloudbuild_v1_UploadedNpmPackage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UploadedNpmPackage_descriptor, new java.lang.String[] { - "Uri", "FileHashes", "PushTiming", + "Uri", "FileHashes", "PushTiming", "ArtifactRegistryPackage", }); internal_static_google_devtools_cloudbuild_v1_BuildStep_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(15); internal_static_google_devtools_cloudbuild_v1_BuildStep_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildStep_descriptor, @@ -1428,7 +1503,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutomapSubstitutions", }); internal_static_google_devtools_cloudbuild_v1_Volume_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(16); internal_static_google_devtools_cloudbuild_v1_Volume_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Volume_descriptor, @@ -1436,7 +1511,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Path", }); internal_static_google_devtools_cloudbuild_v1_Results_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(17); internal_static_google_devtools_cloudbuild_v1_Results_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Results_descriptor, @@ -1453,7 +1528,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NpmPackages", }); internal_static_google_devtools_cloudbuild_v1_ArtifactResult_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(18); internal_static_google_devtools_cloudbuild_v1_ArtifactResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ArtifactResult_descriptor, @@ -1461,7 +1536,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "FileHash", }); internal_static_google_devtools_cloudbuild_v1_Build_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(19); internal_static_google_devtools_cloudbuild_v1_Build_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Build_descriptor, @@ -1531,7 +1606,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_Dependency_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(20); internal_static_google_devtools_cloudbuild_v1_Dependency_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Dependency_descriptor, @@ -1555,7 +1630,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Url", "DeveloperConnect", "Repotype", }); internal_static_google_devtools_cloudbuild_v1_GitConfig_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_devtools_cloudbuild_v1_GitConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GitConfig_descriptor, @@ -1571,7 +1646,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProxySecretVersionName", }); internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_devtools_cloudbuild_v1_Artifacts_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Artifacts_descriptor, @@ -1624,7 +1699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Repository", "PackagePath", }); internal_static_google_devtools_cloudbuild_v1_TimeSpan_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_devtools_cloudbuild_v1_TimeSpan_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_TimeSpan_descriptor, @@ -1632,7 +1707,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", }); internal_static_google_devtools_cloudbuild_v1_BuildOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_devtools_cloudbuild_v1_BuildOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildOperationMetadata_descriptor, @@ -1640,7 +1715,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Build", }); internal_static_google_devtools_cloudbuild_v1_SourceProvenance_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_google_devtools_cloudbuild_v1_SourceProvenance_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_SourceProvenance_descriptor, @@ -1648,6 +1723,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ResolvedStorageSource", "ResolvedRepoSource", "ResolvedStorageSourceManifest", + "ResolvedConnectedRepository", + "ResolvedGitSource", "FileHashes", }); internal_static_google_devtools_cloudbuild_v1_SourceProvenance_FileHashesEntry_descriptor = @@ -1661,7 +1738,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_FileHashes_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(26); internal_static_google_devtools_cloudbuild_v1_FileHashes_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_FileHashes_descriptor, @@ -1669,7 +1746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileHash", }); internal_static_google_devtools_cloudbuild_v1_Hash_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(27); internal_static_google_devtools_cloudbuild_v1_Hash_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Hash_descriptor, @@ -1677,7 +1754,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Value", }); internal_static_google_devtools_cloudbuild_v1_Secrets_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(28); internal_static_google_devtools_cloudbuild_v1_Secrets_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Secrets_descriptor, @@ -1685,7 +1762,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SecretManager", "Inline", }); internal_static_google_devtools_cloudbuild_v1_InlineSecret_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(29); internal_static_google_devtools_cloudbuild_v1_InlineSecret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_InlineSecret_descriptor, @@ -1703,7 +1780,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_SecretManagerSecret_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(30); internal_static_google_devtools_cloudbuild_v1_SecretManagerSecret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_SecretManagerSecret_descriptor, @@ -1711,7 +1788,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VersionName", "Env", }); internal_static_google_devtools_cloudbuild_v1_Secret_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(31); internal_static_google_devtools_cloudbuild_v1_Secret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_Secret_descriptor, @@ -1727,7 +1804,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_CreateBuildRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(32); internal_static_google_devtools_cloudbuild_v1_CreateBuildRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CreateBuildRequest_descriptor, @@ -1735,7 +1812,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ProjectId", "Build", }); internal_static_google_devtools_cloudbuild_v1_GetBuildRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(33); internal_static_google_devtools_cloudbuild_v1_GetBuildRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GetBuildRequest_descriptor, @@ -1743,7 +1820,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "Id", }); internal_static_google_devtools_cloudbuild_v1_ListBuildsRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(34); internal_static_google_devtools_cloudbuild_v1_ListBuildsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListBuildsRequest_descriptor, @@ -1751,7 +1828,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ProjectId", "PageSize", "PageToken", "Filter", }); internal_static_google_devtools_cloudbuild_v1_ListBuildsResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(35); internal_static_google_devtools_cloudbuild_v1_ListBuildsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListBuildsResponse_descriptor, @@ -1759,7 +1836,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Builds", "NextPageToken", }); internal_static_google_devtools_cloudbuild_v1_CancelBuildRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(36); internal_static_google_devtools_cloudbuild_v1_CancelBuildRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CancelBuildRequest_descriptor, @@ -1767,7 +1844,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "Id", }); internal_static_google_devtools_cloudbuild_v1_ApproveBuildRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(37); internal_static_google_devtools_cloudbuild_v1_ApproveBuildRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ApproveBuildRequest_descriptor, @@ -1775,7 +1852,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ApprovalResult", }); internal_static_google_devtools_cloudbuild_v1_BuildApproval_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(38); internal_static_google_devtools_cloudbuild_v1_BuildApproval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildApproval_descriptor, @@ -1783,7 +1860,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "Config", "Result", }); internal_static_google_devtools_cloudbuild_v1_ApprovalConfig_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(39); internal_static_google_devtools_cloudbuild_v1_ApprovalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ApprovalConfig_descriptor, @@ -1791,7 +1868,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApprovalRequired", }); internal_static_google_devtools_cloudbuild_v1_ApprovalResult_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(40); internal_static_google_devtools_cloudbuild_v1_ApprovalResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ApprovalResult_descriptor, @@ -1799,7 +1876,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApproverAccount", "ApprovalTime", "Decision", "Comment", "Url", }); internal_static_google_devtools_cloudbuild_v1_GitRepoSource_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(41); internal_static_google_devtools_cloudbuild_v1_GitRepoSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GitRepoSource_descriptor, @@ -1813,7 +1890,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnterpriseConfig", }); internal_static_google_devtools_cloudbuild_v1_GitFileSource_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(42); internal_static_google_devtools_cloudbuild_v1_GitFileSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GitFileSource_descriptor, @@ -1828,7 +1905,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnterpriseConfig", }); internal_static_google_devtools_cloudbuild_v1_BuildTrigger_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(43); internal_static_google_devtools_cloudbuild_v1_BuildTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildTrigger_descriptor, @@ -1868,7 +1945,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_RepositoryEventConfig_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(44); internal_static_google_devtools_cloudbuild_v1_RepositoryEventConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_RepositoryEventConfig_descriptor, @@ -1876,7 +1953,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Repository", "RepositoryType", "PullRequest", "Push", "Filter", }); internal_static_google_devtools_cloudbuild_v1_GitHubEventsConfig_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(45); internal_static_google_devtools_cloudbuild_v1_GitHubEventsConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GitHubEventsConfig_descriptor, @@ -1884,7 +1961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstallationId", "Owner", "Name", "PullRequest", "Push", "Event", }); internal_static_google_devtools_cloudbuild_v1_PubsubConfig_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(46); internal_static_google_devtools_cloudbuild_v1_PubsubConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PubsubConfig_descriptor, @@ -1892,7 +1969,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Subscription", "Topic", "ServiceAccountEmail", "State", }); internal_static_google_devtools_cloudbuild_v1_WebhookConfig_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(47); internal_static_google_devtools_cloudbuild_v1_WebhookConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_WebhookConfig_descriptor, @@ -1900,7 +1977,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Secret", "State", "AuthMethod", }); internal_static_google_devtools_cloudbuild_v1_PullRequestFilter_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(48); internal_static_google_devtools_cloudbuild_v1_PullRequestFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PullRequestFilter_descriptor, @@ -1908,7 +1985,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Branch", "CommentControl", "InvertRegex", "GitRef", }); internal_static_google_devtools_cloudbuild_v1_PushFilter_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(49); internal_static_google_devtools_cloudbuild_v1_PushFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PushFilter_descriptor, @@ -1916,7 +1993,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Branch", "Tag", "InvertRegex", "GitRef", }); internal_static_google_devtools_cloudbuild_v1_CreateBuildTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(50); internal_static_google_devtools_cloudbuild_v1_CreateBuildTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CreateBuildTriggerRequest_descriptor, @@ -1924,7 +2001,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ProjectId", "Trigger", }); internal_static_google_devtools_cloudbuild_v1_GetBuildTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(51); internal_static_google_devtools_cloudbuild_v1_GetBuildTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GetBuildTriggerRequest_descriptor, @@ -1932,7 +2009,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "TriggerId", }); internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(52); internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersRequest_descriptor, @@ -1940,7 +2017,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ProjectId", "PageSize", "PageToken", }); internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersResponse_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(53); internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListBuildTriggersResponse_descriptor, @@ -1948,7 +2025,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Triggers", "NextPageToken", }); internal_static_google_devtools_cloudbuild_v1_DeleteBuildTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(54); internal_static_google_devtools_cloudbuild_v1_DeleteBuildTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_DeleteBuildTriggerRequest_descriptor, @@ -1956,7 +2033,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ProjectId", "TriggerId", }); internal_static_google_devtools_cloudbuild_v1_UpdateBuildTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(55); internal_static_google_devtools_cloudbuild_v1_UpdateBuildTriggerRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UpdateBuildTriggerRequest_descriptor, @@ -1964,7 +2041,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "TriggerId", "Trigger", "UpdateMask", }); internal_static_google_devtools_cloudbuild_v1_BuildOptions_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(56); internal_static_google_devtools_cloudbuild_v1_BuildOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_BuildOptions_descriptor, @@ -1997,7 +2074,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(57); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookRequest_descriptor, @@ -2005,13 +2082,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Body", "ProjectId", "Trigger", "Secret", }); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookResponse_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(58); internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ReceiveTriggerWebhookResponse_descriptor, new java.lang.String[] {}); internal_static_google_devtools_cloudbuild_v1_GitHubEnterpriseConfig_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(59); internal_static_google_devtools_cloudbuild_v1_GitHubEnterpriseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GitHubEnterpriseConfig_descriptor, @@ -2027,7 +2104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SslCa", }); internal_static_google_devtools_cloudbuild_v1_GitHubEnterpriseSecrets_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(60); internal_static_google_devtools_cloudbuild_v1_GitHubEnterpriseSecrets_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GitHubEnterpriseSecrets_descriptor, @@ -2038,7 +2115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OauthClientIdVersionName", }); internal_static_google_devtools_cloudbuild_v1_WorkerPool_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(61); internal_static_google_devtools_cloudbuild_v1_WorkerPool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_WorkerPool_descriptor, @@ -2064,7 +2141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(62); internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_PrivatePoolV1Config_descriptor, @@ -2102,7 +2179,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkAttachment", "PublicIpAddressDisabled", "RouteAllTraffic", }); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(63); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolRequest_descriptor, @@ -2110,7 +2187,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkerPool", "WorkerPoolId", "ValidateOnly", }); internal_static_google_devtools_cloudbuild_v1_GetWorkerPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(64); internal_static_google_devtools_cloudbuild_v1_GetWorkerPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_GetWorkerPoolRequest_descriptor, @@ -2118,7 +2195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(65); internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolRequest_descriptor, @@ -2126,7 +2203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Etag", "AllowMissing", "ValidateOnly", }); internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolRequest_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(66); internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolRequest_descriptor, @@ -2134,7 +2211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPool", "UpdateMask", "ValidateOnly", }); internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsRequest_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(67); internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsRequest_descriptor, @@ -2142,7 +2219,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsResponse_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(68); internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_ListWorkerPoolsResponse_descriptor, @@ -2150,7 +2227,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPools", "NextPageToken", }); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(69); internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_CreateWorkerPoolOperationMetadata_descriptor, @@ -2158,7 +2235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPool", "CreateTime", "CompleteTime", }); internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(70); internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_UpdateWorkerPoolOperationMetadata_descriptor, @@ -2166,7 +2243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPool", "CreateTime", "CompleteTime", }); internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(71); internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_devtools_cloudbuild_v1_DeleteWorkerPoolOperationMetadata_descriptor, diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ConnectedRepository.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ConnectedRepository.java new file mode 100644 index 000000000000..9539ed29bb10 --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ConnectedRepository.java @@ -0,0 +1,1046 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloudbuild.v1; + +/** + * + * + *
    + * Location of the source in a 2nd-gen Google Cloud Build repository resource.
    + * 
    + * + * Protobuf type {@code google.devtools.cloudbuild.v1.ConnectedRepository} + */ +public final class ConnectedRepository extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.ConnectedRepository) + ConnectedRepositoryOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ConnectedRepository.newBuilder() to construct. + private ConnectedRepository(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConnectedRepository() { + repository_ = ""; + dir_ = ""; + revision_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConnectedRepository(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.ConnectedRepository.class, + com.google.cloudbuild.v1.ConnectedRepository.Builder.class); + } + + public static final int REPOSITORY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object repository_ = ""; + + /** + * + * + *
    +   * Required. Name of the Google Cloud Build repository, formatted as
    +   * `projects/*/locations/*/connections/*/repositories/*`.
    +   * 
    + * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The repository. + */ + @java.lang.Override + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. Name of the Google Cloud Build repository, formatted as
    +   * `projects/*/locations/*/connections/*/repositories/*`.
    +   * 
    + * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for repository. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dir_ = ""; + + /** + * + * + *
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
    +   * 
    + * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dir. + */ + @java.lang.Override + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
    +   * 
    + * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dir. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVISION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object revision_ = ""; + + /** + * + * + *
    +   * Required. The revision to fetch from the Git repository such as a branch, a
    +   * tag, a commit SHA, or any Git ref.
    +   * 
    + * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revision. + */ + @java.lang.Override + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revision_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The revision to fetch from the Git repository such as a branch, a
    +   * tag, a commit SHA, or any Git ref.
    +   * 
    + * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revision_ = 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(repository_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repository_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dir_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, revision_); + } + 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(repository_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repository_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dir_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dir_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(revision_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, revision_); + } + 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.cloudbuild.v1.ConnectedRepository)) { + return super.equals(obj); + } + com.google.cloudbuild.v1.ConnectedRepository other = + (com.google.cloudbuild.v1.ConnectedRepository) obj; + + if (!getRepository().equals(other.getRepository())) return false; + if (!getDir().equals(other.getDir())) return false; + if (!getRevision().equals(other.getRevision())) 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) + REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getRepository().hashCode(); + hash = (37 * hash) + DIR_FIELD_NUMBER; + hash = (53 * hash) + getDir().hashCode(); + hash = (37 * hash) + REVISION_FIELD_NUMBER; + hash = (53 * hash) + getRevision().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloudbuild.v1.ConnectedRepository parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.ConnectedRepository parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.ConnectedRepository parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.ConnectedRepository parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.ConnectedRepository parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.ConnectedRepository parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.ConnectedRepository parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.ConnectedRepository 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.cloudbuild.v1.ConnectedRepository parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.ConnectedRepository 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.cloudbuild.v1.ConnectedRepository parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.ConnectedRepository 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.cloudbuild.v1.ConnectedRepository 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; + } + + /** + * + * + *
    +   * Location of the source in a 2nd-gen Google Cloud Build repository resource.
    +   * 
    + * + * Protobuf type {@code google.devtools.cloudbuild.v1.ConnectedRepository} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.ConnectedRepository) + com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.ConnectedRepository.class, + com.google.cloudbuild.v1.ConnectedRepository.Builder.class); + } + + // Construct using com.google.cloudbuild.v1.ConnectedRepository.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + repository_ = ""; + dir_ = ""; + revision_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_ConnectedRepository_descriptor; + } + + @java.lang.Override + public com.google.cloudbuild.v1.ConnectedRepository getDefaultInstanceForType() { + return com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloudbuild.v1.ConnectedRepository build() { + com.google.cloudbuild.v1.ConnectedRepository result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloudbuild.v1.ConnectedRepository buildPartial() { + com.google.cloudbuild.v1.ConnectedRepository result = + new com.google.cloudbuild.v1.ConnectedRepository(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloudbuild.v1.ConnectedRepository result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.repository_ = repository_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dir_ = dir_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.revision_ = revision_; + } + } + + @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.cloudbuild.v1.ConnectedRepository) { + return mergeFrom((com.google.cloudbuild.v1.ConnectedRepository) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloudbuild.v1.ConnectedRepository other) { + if (other == com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance()) return this; + if (!other.getRepository().isEmpty()) { + repository_ = other.repository_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDir().isEmpty()) { + dir_ = other.dir_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRevision().isEmpty()) { + revision_ = other.revision_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + repository_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + revision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object repository_ = ""; + + /** + * + * + *
    +     * Required. Name of the Google Cloud Build repository, formatted as
    +     * `projects/*/locations/*/connections/*/repositories/*`.
    +     * 
    + * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The repository. + */ + public java.lang.String getRepository() { + java.lang.Object ref = repository_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repository_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. Name of the Google Cloud Build repository, formatted as
    +     * `projects/*/locations/*/connections/*/repositories/*`.
    +     * 
    + * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for repository. + */ + public com.google.protobuf.ByteString getRepositoryBytes() { + java.lang.Object ref = repository_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repository_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. Name of the Google Cloud Build repository, formatted as
    +     * `projects/*/locations/*/connections/*/repositories/*`.
    +     * 
    + * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The repository to set. + * @return This builder for chaining. + */ + public Builder setRepository(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repository_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Name of the Google Cloud Build repository, formatted as
    +     * `projects/*/locations/*/connections/*/repositories/*`.
    +     * 
    + * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRepository() { + repository_ = getDefaultInstance().getRepository(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. Name of the Google Cloud Build repository, formatted as
    +     * `projects/*/locations/*/connections/*/repositories/*`.
    +     * 
    + * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for repository to set. + * @return This builder for chaining. + */ + public Builder setRepositoryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repository_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object dir_ = ""; + + /** + * + * + *
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
    +     * 
    + * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dir. + */ + public java.lang.String getDir() { + java.lang.Object ref = dir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
    +     * 
    + * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dir. + */ + public com.google.protobuf.ByteString getDirBytes() { + java.lang.Object ref = dir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
    +     * 
    + * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dir to set. + * @return This builder for chaining. + */ + public Builder setDir(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
    +     * 
    + * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDir() { + dir_ = getDefaultInstance().getDir(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
    +     * 
    + * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for dir to set. + * @return This builder for chaining. + */ + public Builder setDirBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dir_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object revision_ = ""; + + /** + * + * + *
    +     * Required. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
    +     * 
    + * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revision. + */ + public java.lang.String getRevision() { + java.lang.Object ref = revision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + revision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
    +     * 
    + * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revision. + */ + public com.google.protobuf.ByteString getRevisionBytes() { + java.lang.Object ref = revision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + revision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
    +     * 
    + * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The revision to set. + * @return This builder for chaining. + */ + public Builder setRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
    +     * 
    + * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRevision() { + revision_ = getDefaultInstance().getRevision(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
    +     * 
    + * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for revision to set. + * @return This builder for chaining. + */ + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.ConnectedRepository) + } + + // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.ConnectedRepository) + private static final com.google.cloudbuild.v1.ConnectedRepository DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloudbuild.v1.ConnectedRepository(); + } + + public static com.google.cloudbuild.v1.ConnectedRepository getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectedRepository 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.cloudbuild.v1.ConnectedRepository getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ConnectedRepositoryOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ConnectedRepositoryOrBuilder.java new file mode 100644 index 000000000000..9e24dfd6ae1e --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ConnectedRepositoryOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloudbuild.v1; + +public interface ConnectedRepositoryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.ConnectedRepository) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. Name of the Google Cloud Build repository, formatted as
    +   * `projects/*/locations/*/connections/*/repositories/*`.
    +   * 
    + * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The repository. + */ + java.lang.String getRepository(); + + /** + * + * + *
    +   * Required. Name of the Google Cloud Build repository, formatted as
    +   * `projects/*/locations/*/connections/*/repositories/*`.
    +   * 
    + * + * + * string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for repository. + */ + com.google.protobuf.ByteString getRepositoryBytes(); + + /** + * + * + *
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
    +   * 
    + * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dir. + */ + java.lang.String getDir(); + + /** + * + * + *
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
    +   * 
    + * + * string dir = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for dir. + */ + com.google.protobuf.ByteString getDirBytes(); + + /** + * + * + *
    +   * Required. The revision to fetch from the Git repository such as a branch, a
    +   * tag, a commit SHA, or any Git ref.
    +   * 
    + * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The revision. + */ + java.lang.String getRevision(); + + /** + * + * + *
    +   * Required. The revision to fetch from the Git repository such as a branch, a
    +   * tag, a commit SHA, or any Git ref.
    +   * 
    + * + * string revision = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for revision. + */ + com.google.protobuf.ByteString getRevisionBytes(); +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccount.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccount.java new file mode 100644 index 000000000000..5324f30a341b --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccount.java @@ -0,0 +1,906 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloudbuild.v1; + +/** + * + * + *
    + * The default service account used for `Builds`.
    + * 
    + * + * Protobuf type {@code google.devtools.cloudbuild.v1.DefaultServiceAccount} + */ +public final class DefaultServiceAccount extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.DefaultServiceAccount) + DefaultServiceAccountOrBuilder { + private static final long serialVersionUID = 0L; + + // Use DefaultServiceAccount.newBuilder() to construct. + private DefaultServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DefaultServiceAccount() { + name_ = ""; + serviceAccountEmail_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DefaultServiceAccount(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.DefaultServiceAccount.class, + com.google.cloudbuild.v1.DefaultServiceAccount.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Identifier. Format:
    +   * `projects/{project}/locations/{location}/defaultServiceAccount
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Identifier. Format:
    +   * `projects/{project}/locations/{location}/defaultServiceAccount
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceAccountEmail_ = ""; + + /** + * + * + *
    +   * Output only. The email address of the service account identity that will be
    +   * used for a build by default.
    +   *
    +   * This is returned in the format
    +   * `projects/{project}/serviceAccounts/{service_account}` where
    +   * `{service_account}` could be the legacy Cloud Build SA, in the format
    +   * [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
    +   * format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
    +   *
    +   * If no service account will be used by default, this will be empty.
    +   * 
    + * + * + * string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAccountEmail. + */ + @java.lang.Override + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. The email address of the service account identity that will be
    +   * used for a build by default.
    +   *
    +   * This is returned in the format
    +   * `projects/{project}/serviceAccounts/{service_account}` where
    +   * `{service_account}` could be the legacy Cloud Build SA, in the format
    +   * [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
    +   * format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
    +   *
    +   * If no service account will be used by default, this will be empty.
    +   * 
    + * + * + * string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAccountEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = 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(serviceAccountEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccountEmail_); + } + 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(serviceAccountEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccountEmail_); + } + 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.cloudbuild.v1.DefaultServiceAccount)) { + return super.equals(obj); + } + com.google.cloudbuild.v1.DefaultServiceAccount other = + (com.google.cloudbuild.v1.DefaultServiceAccount) obj; + + if (!getName().equals(other.getName())) return false; + if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) 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) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountEmail().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount 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.cloudbuild.v1.DefaultServiceAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount 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.cloudbuild.v1.DefaultServiceAccount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount 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.cloudbuild.v1.DefaultServiceAccount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * The default service account used for `Builds`.
    +   * 
    + * + * Protobuf type {@code google.devtools.cloudbuild.v1.DefaultServiceAccount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.DefaultServiceAccount) + com.google.cloudbuild.v1.DefaultServiceAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.DefaultServiceAccount.class, + com.google.cloudbuild.v1.DefaultServiceAccount.Builder.class); + } + + // Construct using com.google.cloudbuild.v1.DefaultServiceAccount.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + serviceAccountEmail_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_DefaultServiceAccount_descriptor; + } + + @java.lang.Override + public com.google.cloudbuild.v1.DefaultServiceAccount getDefaultInstanceForType() { + return com.google.cloudbuild.v1.DefaultServiceAccount.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloudbuild.v1.DefaultServiceAccount build() { + com.google.cloudbuild.v1.DefaultServiceAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloudbuild.v1.DefaultServiceAccount buildPartial() { + com.google.cloudbuild.v1.DefaultServiceAccount result = + new com.google.cloudbuild.v1.DefaultServiceAccount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloudbuild.v1.DefaultServiceAccount result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceAccountEmail_ = serviceAccountEmail_; + } + } + + @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.cloudbuild.v1.DefaultServiceAccount) { + return mergeFrom((com.google.cloudbuild.v1.DefaultServiceAccount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloudbuild.v1.DefaultServiceAccount other) { + if (other == com.google.cloudbuild.v1.DefaultServiceAccount.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getServiceAccountEmail().isEmpty()) { + serviceAccountEmail_ = other.serviceAccountEmail_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Identifier. Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Identifier. Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Identifier. Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Identifier. Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object serviceAccountEmail_ = ""; + + /** + * + * + *
    +     * Output only. The email address of the service account identity that will be
    +     * used for a build by default.
    +     *
    +     * This is returned in the format
    +     * `projects/{project}/serviceAccounts/{service_account}` where
    +     * `{service_account}` could be the legacy Cloud Build SA, in the format
    +     * [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
    +     * format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
    +     *
    +     * If no service account will be used by default, this will be empty.
    +     * 
    + * + * + * string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAccountEmail. + */ + public java.lang.String getServiceAccountEmail() { + java.lang.Object ref = serviceAccountEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. The email address of the service account identity that will be
    +     * used for a build by default.
    +     *
    +     * This is returned in the format
    +     * `projects/{project}/serviceAccounts/{service_account}` where
    +     * `{service_account}` could be the legacy Cloud Build SA, in the format
    +     * [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
    +     * format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
    +     *
    +     * If no service account will be used by default, this will be empty.
    +     * 
    + * + * + * string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAccountEmail. + */ + public com.google.protobuf.ByteString getServiceAccountEmailBytes() { + java.lang.Object ref = serviceAccountEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. The email address of the service account identity that will be
    +     * used for a build by default.
    +     *
    +     * This is returned in the format
    +     * `projects/{project}/serviceAccounts/{service_account}` where
    +     * `{service_account}` could be the legacy Cloud Build SA, in the format
    +     * [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
    +     * format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
    +     *
    +     * If no service account will be used by default, this will be empty.
    +     * 
    + * + * + * string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountEmail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The email address of the service account identity that will be
    +     * used for a build by default.
    +     *
    +     * This is returned in the format
    +     * `projects/{project}/serviceAccounts/{service_account}` where
    +     * `{service_account}` could be the legacy Cloud Build SA, in the format
    +     * [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
    +     * format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
    +     *
    +     * If no service account will be used by default, this will be empty.
    +     * 
    + * + * + * string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountEmail() { + serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. The email address of the service account identity that will be
    +     * used for a build by default.
    +     *
    +     * This is returned in the format
    +     * `projects/{project}/serviceAccounts/{service_account}` where
    +     * `{service_account}` could be the legacy Cloud Build SA, in the format
    +     * [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
    +     * format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
    +     *
    +     * If no service account will be used by default, this will be empty.
    +     * 
    + * + * + * string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for serviceAccountEmail to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountEmail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.DefaultServiceAccount) + } + + // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.DefaultServiceAccount) + private static final com.google.cloudbuild.v1.DefaultServiceAccount DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloudbuild.v1.DefaultServiceAccount(); + } + + public static com.google.cloudbuild.v1.DefaultServiceAccount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DefaultServiceAccount 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.cloudbuild.v1.DefaultServiceAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountName.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountName.java new file mode 100644 index 000000000000..387b28ba091d --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountName.java @@ -0,0 +1,194 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloudbuild.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 DefaultServiceAccountName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/defaultServiceAccount"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected DefaultServiceAccountName() { + project = null; + location = null; + } + + private DefaultServiceAccountName(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 DefaultServiceAccountName 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 DefaultServiceAccountName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, + "DefaultServiceAccountName.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 (DefaultServiceAccountName 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()) { + DefaultServiceAccountName that = ((DefaultServiceAccountName) 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}/defaultServiceAccount. */ + 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(DefaultServiceAccountName defaultServiceAccountName) { + this.project = defaultServiceAccountName.project; + this.location = defaultServiceAccountName.location; + } + + public DefaultServiceAccountName build() { + return new DefaultServiceAccountName(this); + } + } +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountOrBuilder.java new file mode 100644 index 000000000000..56b6ca1b0b6e --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/DefaultServiceAccountOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloudbuild.v1; + +public interface DefaultServiceAccountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.DefaultServiceAccount) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Identifier. Format:
    +   * `projects/{project}/locations/{location}/defaultServiceAccount
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Identifier. Format:
    +   * `projects/{project}/locations/{location}/defaultServiceAccount
    +   * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Output only. The email address of the service account identity that will be
    +   * used for a build by default.
    +   *
    +   * This is returned in the format
    +   * `projects/{project}/serviceAccounts/{service_account}` where
    +   * `{service_account}` could be the legacy Cloud Build SA, in the format
    +   * [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
    +   * format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
    +   *
    +   * If no service account will be used by default, this will be empty.
    +   * 
    + * + * + * string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The serviceAccountEmail. + */ + java.lang.String getServiceAccountEmail(); + + /** + * + * + *
    +   * Output only. The email address of the service account identity that will be
    +   * used for a build by default.
    +   *
    +   * This is returned in the format
    +   * `projects/{project}/serviceAccounts/{service_account}` where
    +   * `{service_account}` could be the legacy Cloud Build SA, in the format
    +   * [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the
    +   * format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com.
    +   *
    +   * If no service account will be used by default, this will be empty.
    +   * 
    + * + * + * string service_account_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for serviceAccountEmail. + */ + com.google.protobuf.ByteString getServiceAccountEmailBytes(); +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java index 3453ea2a3b08..2f46462e253a 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Dependency.java @@ -1569,8 +1569,7 @@ public interface GitSourceRepositoryOrBuilder * * *
    -     * The Developer Connect Git repository link or the url that matches a
    -     * repository link in the current project, formatted as
    +     * The Developer Connect Git repository link formatted as
          * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
          * 
    * @@ -1584,8 +1583,7 @@ public interface GitSourceRepositoryOrBuilder * * *
    -     * The Developer Connect Git repository link or the url that matches a
    -     * repository link in the current project, formatted as
    +     * The Developer Connect Git repository link formatted as
          * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
          * 
    * @@ -1599,8 +1597,7 @@ public interface GitSourceRepositoryOrBuilder * * *
    -     * The Developer Connect Git repository link or the url that matches a
    -     * repository link in the current project, formatted as
    +     * The Developer Connect Git repository link formatted as
          * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
          * 
    * @@ -1785,8 +1782,7 @@ public com.google.protobuf.ByteString getUrlBytes() { * * *
    -     * The Developer Connect Git repository link or the url that matches a
    -     * repository link in the current project, formatted as
    +     * The Developer Connect Git repository link formatted as
          * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
          * 
    * @@ -1802,8 +1798,7 @@ public boolean hasDeveloperConnect() { * * *
    -     * The Developer Connect Git repository link or the url that matches a
    -     * repository link in the current project, formatted as
    +     * The Developer Connect Git repository link formatted as
          * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
          * 
    * @@ -1832,8 +1827,7 @@ public java.lang.String getDeveloperConnect() { * * *
    -     * The Developer Connect Git repository link or the url that matches a
    -     * repository link in the current project, formatted as
    +     * The Developer Connect Git repository link formatted as
          * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
          * 
    * @@ -2417,8 +2411,7 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { * * *
    -       * The Developer Connect Git repository link or the url that matches a
    -       * repository link in the current project, formatted as
    +       * The Developer Connect Git repository link formatted as
            * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
            * 
    * @@ -2435,8 +2428,7 @@ public boolean hasDeveloperConnect() { * * *
    -       * The Developer Connect Git repository link or the url that matches a
    -       * repository link in the current project, formatted as
    +       * The Developer Connect Git repository link formatted as
            * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
            * 
    * @@ -2466,8 +2458,7 @@ public java.lang.String getDeveloperConnect() { * * *
    -       * The Developer Connect Git repository link or the url that matches a
    -       * repository link in the current project, formatted as
    +       * The Developer Connect Git repository link formatted as
            * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
            * 
    * @@ -2497,8 +2488,7 @@ public com.google.protobuf.ByteString getDeveloperConnectBytes() { * * *
    -       * The Developer Connect Git repository link or the url that matches a
    -       * repository link in the current project, formatted as
    +       * The Developer Connect Git repository link formatted as
            * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
            * 
    * @@ -2521,8 +2511,7 @@ public Builder setDeveloperConnect(java.lang.String value) { * * *
    -       * The Developer Connect Git repository link or the url that matches a
    -       * repository link in the current project, formatted as
    +       * The Developer Connect Git repository link formatted as
            * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
            * 
    * @@ -2543,8 +2532,7 @@ public Builder clearDeveloperConnect() { * * *
    -       * The Developer Connect Git repository link or the url that matches a
    -       * repository link in the current project, formatted as
    +       * The Developer Connect Git repository link formatted as
            * `projects/*/locations/*/connections/*/gitRepositoryLink/*`
            * 
    * diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetDefaultServiceAccountRequest.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetDefaultServiceAccountRequest.java new file mode 100644 index 000000000000..378f450edf9e --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetDefaultServiceAccountRequest.java @@ -0,0 +1,664 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloudbuild.v1; + +/** + * + * + *
    + * Returns the default service account that will be used for `Builds`.
    + * 
    + * + * Protobuf type {@code google.devtools.cloudbuild.v1.GetDefaultServiceAccountRequest} + */ +public final class GetDefaultServiceAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.devtools.cloudbuild.v1.GetDefaultServiceAccountRequest) + GetDefaultServiceAccountRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetDefaultServiceAccountRequest.newBuilder() to construct. + private GetDefaultServiceAccountRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDefaultServiceAccountRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDefaultServiceAccountRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest.class, + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the `DefaultServiceAccount` to retrieve.
    +   * Format:
    +   * `projects/{project}/locations/{location}/defaultServiceAccount`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the `DefaultServiceAccount` to retrieve.
    +   * Format:
    +   * `projects/{project}/locations/{location}/defaultServiceAccount`
    +   * 
    + * + * + * 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.cloudbuild.v1.GetDefaultServiceAccountRequest)) { + return super.equals(obj); + } + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest other = + (com.google.cloudbuild.v1.GetDefaultServiceAccountRequest) 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.cloudbuild.v1.GetDefaultServiceAccountRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest 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.cloudbuild.v1.GetDefaultServiceAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest 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.cloudbuild.v1.GetDefaultServiceAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest 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.cloudbuild.v1.GetDefaultServiceAccountRequest 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; + } + + /** + * + * + *
    +   * Returns the default service account that will be used for `Builds`.
    +   * 
    + * + * Protobuf type {@code google.devtools.cloudbuild.v1.GetDefaultServiceAccountRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.devtools.cloudbuild.v1.GetDefaultServiceAccountRequest) + com.google.cloudbuild.v1.GetDefaultServiceAccountRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest.class, + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest.Builder.class); + } + + // Construct using com.google.cloudbuild.v1.GetDefaultServiceAccountRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloudbuild.v1.Cloudbuild + .internal_static_google_devtools_cloudbuild_v1_GetDefaultServiceAccountRequest_descriptor; + } + + @java.lang.Override + public com.google.cloudbuild.v1.GetDefaultServiceAccountRequest getDefaultInstanceForType() { + return com.google.cloudbuild.v1.GetDefaultServiceAccountRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloudbuild.v1.GetDefaultServiceAccountRequest build() { + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloudbuild.v1.GetDefaultServiceAccountRequest buildPartial() { + com.google.cloudbuild.v1.GetDefaultServiceAccountRequest result = + new com.google.cloudbuild.v1.GetDefaultServiceAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloudbuild.v1.GetDefaultServiceAccountRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloudbuild.v1.GetDefaultServiceAccountRequest) { + return mergeFrom((com.google.cloudbuild.v1.GetDefaultServiceAccountRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloudbuild.v1.GetDefaultServiceAccountRequest other) { + if (other == com.google.cloudbuild.v1.GetDefaultServiceAccountRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the `DefaultServiceAccount` to retrieve.
    +     * Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `DefaultServiceAccount` to retrieve.
    +     * Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the `DefaultServiceAccount` to retrieve.
    +     * Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `DefaultServiceAccount` to retrieve.
    +     * Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the `DefaultServiceAccount` to retrieve.
    +     * Format:
    +     * `projects/{project}/locations/{location}/defaultServiceAccount`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.devtools.cloudbuild.v1.GetDefaultServiceAccountRequest) + } + + // @@protoc_insertion_point(class_scope:google.devtools.cloudbuild.v1.GetDefaultServiceAccountRequest) + private static final com.google.cloudbuild.v1.GetDefaultServiceAccountRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloudbuild.v1.GetDefaultServiceAccountRequest(); + } + + public static com.google.cloudbuild.v1.GetDefaultServiceAccountRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDefaultServiceAccountRequest 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.cloudbuild.v1.GetDefaultServiceAccountRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetDefaultServiceAccountRequestOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetDefaultServiceAccountRequestOrBuilder.java new file mode 100644 index 000000000000..abfd07c1d2e1 --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GetDefaultServiceAccountRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/devtools/cloudbuild/v1/cloudbuild.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloudbuild.v1; + +public interface GetDefaultServiceAccountRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.devtools.cloudbuild.v1.GetDefaultServiceAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the `DefaultServiceAccount` to retrieve.
    +   * Format:
    +   * `projects/{project}/locations/{location}/defaultServiceAccount`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the `DefaultServiceAccount` to retrieve.
    +   * Format:
    +   * `projects/{project}/locations/{location}/defaultServiceAccount`
    +   * 
    + * + * + * 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-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEnterpriseConfig.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEnterpriseConfig.java index ca371b210953..58189de51351 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEnterpriseConfig.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEnterpriseConfig.java @@ -80,12 +80,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Optional. The full resource name for the GitHubEnterpriseConfig
    +   * The full resource name for the GitHubEnterpriseConfig
        * For example:
        * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
        * 
    * - * string name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 7; * * @return The name. */ @@ -106,12 +106,12 @@ public java.lang.String getName() { * * *
    -   * Optional. The full resource name for the GitHubEnterpriseConfig
    +   * The full resource name for the GitHubEnterpriseConfig
        * For example:
        * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
        * 
    * - * string name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 7; * * @return The bytes for name. */ @@ -390,10 +390,12 @@ public com.google.protobuf.ByteString getPeeredNetworkBytes() { * * *
    -   * Names of secrets in Secret Manager.
    +   * Optional. Names of secrets in Secret Manager.
        * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the secrets field is set. */ @@ -406,10 +408,12 @@ public boolean hasSecrets() { * * *
    -   * Names of secrets in Secret Manager.
    +   * Optional. Names of secrets in Secret Manager.
        * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The secrets. */ @@ -424,10 +428,12 @@ public com.google.cloudbuild.v1.GitHubEnterpriseSecrets getSecrets() { * * *
    -   * Names of secrets in Secret Manager.
    +   * Optional. Names of secrets in Secret Manager.
        * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloudbuild.v1.GitHubEnterpriseSecretsOrBuilder getSecretsOrBuilder() { @@ -445,10 +451,10 @@ public com.google.cloudbuild.v1.GitHubEnterpriseSecretsOrBuilder getSecretsOrBui * * *
    -   * Name to display for this config.
    +   * Optional. Name to display for this config.
        * 
    * - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -469,10 +475,10 @@ public java.lang.String getDisplayName() { * * *
    -   * Name to display for this config.
    +   * Optional. Name to display for this config.
        * 
    * - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -1110,12 +1116,12 @@ public Builder mergeFrom( * * *
    -     * Optional. The full resource name for the GitHubEnterpriseConfig
    +     * The full resource name for the GitHubEnterpriseConfig
          * For example:
          * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
          * 
    * - * string name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 7; * * @return The name. */ @@ -1135,12 +1141,12 @@ public java.lang.String getName() { * * *
    -     * Optional. The full resource name for the GitHubEnterpriseConfig
    +     * The full resource name for the GitHubEnterpriseConfig
          * For example:
          * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
          * 
    * - * string name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 7; * * @return The bytes for name. */ @@ -1160,12 +1166,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * Optional. The full resource name for the GitHubEnterpriseConfig
    +     * The full resource name for the GitHubEnterpriseConfig
          * For example:
          * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
          * 
    * - * string name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 7; * * @param value The name to set. * @return This builder for chaining. @@ -1184,12 +1190,12 @@ public Builder setName(java.lang.String value) { * * *
    -     * Optional. The full resource name for the GitHubEnterpriseConfig
    +     * The full resource name for the GitHubEnterpriseConfig
          * For example:
          * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
          * 
    * - * string name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 7; * * @return This builder for chaining. */ @@ -1204,12 +1210,12 @@ public Builder clearName() { * * *
    -     * Optional. The full resource name for the GitHubEnterpriseConfig
    +     * The full resource name for the GitHubEnterpriseConfig
          * For example:
          * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
          * 
    * - * string name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 7; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1900,10 +1906,12 @@ public Builder setPeeredNetworkBytes(com.google.protobuf.ByteString value) { * * *
    -     * Names of secrets in Secret Manager.
    +     * Optional. Names of secrets in Secret Manager.
          * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the secrets field is set. */ @@ -1915,10 +1923,12 @@ public boolean hasSecrets() { * * *
    -     * Names of secrets in Secret Manager.
    +     * Optional. Names of secrets in Secret Manager.
          * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The secrets. */ @@ -1936,10 +1946,12 @@ public com.google.cloudbuild.v1.GitHubEnterpriseSecrets getSecrets() { * * *
    -     * Names of secrets in Secret Manager.
    +     * Optional. Names of secrets in Secret Manager.
          * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSecrets(com.google.cloudbuild.v1.GitHubEnterpriseSecrets value) { if (secretsBuilder_ == null) { @@ -1959,10 +1971,12 @@ public Builder setSecrets(com.google.cloudbuild.v1.GitHubEnterpriseSecrets value * * *
    -     * Names of secrets in Secret Manager.
    +     * Optional. Names of secrets in Secret Manager.
          * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSecrets( com.google.cloudbuild.v1.GitHubEnterpriseSecrets.Builder builderForValue) { @@ -1980,10 +1994,12 @@ public Builder setSecrets( * * *
    -     * Names of secrets in Secret Manager.
    +     * Optional. Names of secrets in Secret Manager.
          * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeSecrets(com.google.cloudbuild.v1.GitHubEnterpriseSecrets value) { if (secretsBuilder_ == null) { @@ -2008,10 +2024,12 @@ public Builder mergeSecrets(com.google.cloudbuild.v1.GitHubEnterpriseSecrets val * * *
    -     * Names of secrets in Secret Manager.
    +     * Optional. Names of secrets in Secret Manager.
          * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSecrets() { bitField0_ = (bitField0_ & ~0x00000040); @@ -2028,10 +2046,12 @@ public Builder clearSecrets() { * * *
    -     * Names of secrets in Secret Manager.
    +     * Optional. Names of secrets in Secret Manager.
          * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloudbuild.v1.GitHubEnterpriseSecrets.Builder getSecretsBuilder() { bitField0_ |= 0x00000040; @@ -2043,10 +2063,12 @@ public com.google.cloudbuild.v1.GitHubEnterpriseSecrets.Builder getSecretsBuilde * * *
    -     * Names of secrets in Secret Manager.
    +     * Optional. Names of secrets in Secret Manager.
          * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloudbuild.v1.GitHubEnterpriseSecretsOrBuilder getSecretsOrBuilder() { if (secretsBuilder_ != null) { @@ -2062,10 +2084,12 @@ public com.google.cloudbuild.v1.GitHubEnterpriseSecretsOrBuilder getSecretsOrBui * * *
    -     * Names of secrets in Secret Manager.
    +     * Optional. Names of secrets in Secret Manager.
          * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloudbuild.v1.GitHubEnterpriseSecrets, @@ -2090,10 +2114,10 @@ public com.google.cloudbuild.v1.GitHubEnterpriseSecretsOrBuilder getSecretsOrBui * * *
    -     * Name to display for this config.
    +     * Optional. Name to display for this config.
          * 
    * - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -2113,10 +2137,10 @@ public java.lang.String getDisplayName() { * * *
    -     * Name to display for this config.
    +     * Optional. Name to display for this config.
          * 
    * - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -2136,10 +2160,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
    -     * Name to display for this config.
    +     * Optional. Name to display for this config.
          * 
    * - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The displayName to set. * @return This builder for chaining. @@ -2158,10 +2182,10 @@ public Builder setDisplayName(java.lang.String value) { * * *
    -     * Name to display for this config.
    +     * Optional. Name to display for this config.
          * 
    * - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2176,10 +2200,10 @@ public Builder clearDisplayName() { * * *
    -     * Name to display for this config.
    +     * Optional. Name to display for this config.
          * 
    * - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for displayName to set. * @return This builder for chaining. diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEnterpriseConfigOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEnterpriseConfigOrBuilder.java index 700c47e1cbb1..c373188f4390 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEnterpriseConfigOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEnterpriseConfigOrBuilder.java @@ -28,12 +28,12 @@ public interface GitHubEnterpriseConfigOrBuilder * * *
    -   * Optional. The full resource name for the GitHubEnterpriseConfig
    +   * The full resource name for the GitHubEnterpriseConfig
        * For example:
        * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
        * 
    * - * string name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 7; * * @return The name. */ @@ -43,12 +43,12 @@ public interface GitHubEnterpriseConfigOrBuilder * * *
    -   * Optional. The full resource name for the GitHubEnterpriseConfig
    +   * The full resource name for the GitHubEnterpriseConfig
        * For example:
        * "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}"
        * 
    * - * string name = 7 [(.google.api.field_behavior) = OPTIONAL]; + * string name = 7; * * @return The bytes for name. */ @@ -214,10 +214,12 @@ public interface GitHubEnterpriseConfigOrBuilder * * *
    -   * Names of secrets in Secret Manager.
    +   * Optional. Names of secrets in Secret Manager.
        * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the secrets field is set. */ @@ -227,10 +229,12 @@ public interface GitHubEnterpriseConfigOrBuilder * * *
    -   * Names of secrets in Secret Manager.
    +   * Optional. Names of secrets in Secret Manager.
        * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The secrets. */ @@ -240,10 +244,12 @@ public interface GitHubEnterpriseConfigOrBuilder * * *
    -   * Names of secrets in Secret Manager.
    +   * Optional. Names of secrets in Secret Manager.
        * 
    * - * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10; + * + * .google.devtools.cloudbuild.v1.GitHubEnterpriseSecrets secrets = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloudbuild.v1.GitHubEnterpriseSecretsOrBuilder getSecretsOrBuilder(); @@ -251,10 +257,10 @@ public interface GitHubEnterpriseConfigOrBuilder * * *
    -   * Name to display for this config.
    +   * Optional. Name to display for this config.
        * 
    * - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -264,10 +270,10 @@ public interface GitHubEnterpriseConfigOrBuilder * * *
    -   * Name to display for this config.
    +   * Optional. Name to display for this config.
        * 
    * - * string display_name = 11; + * string display_name = 11 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java index 4b1fac33b388..d7f900c29744 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfig.java @@ -129,7 +129,7 @@ public EventCase getEventCase() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2024 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 * @return The installationId. */ @java.lang.Override @@ -860,7 +860,7 @@ public Builder clearEvent() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2024 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 * @return The installationId. */ @java.lang.Override @@ -879,7 +879,7 @@ public long getInstallationId() { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2024 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 * @param value The installationId to set. * @return This builder for chaining. */ @@ -902,7 +902,7 @@ public Builder setInstallationId(long value) { * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. - * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2024 + * See google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java index dbd387b94ad1..7659852ec723 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitHubEventsConfigOrBuilder.java @@ -34,7 +34,7 @@ public interface GitHubEventsConfigOrBuilder * int64 installation_id = 1 [deprecated = true]; * * @deprecated google.devtools.cloudbuild.v1.GitHubEventsConfig.installation_id is deprecated. See - * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2024 + * google/devtools/cloudbuild/v1/cloudbuild.proto;l=2139 * @return The installationId. */ @java.lang.Deprecated diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitSource.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitSource.java index 80ed20e49ae8..1d371a026cde 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitSource.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitSource.java @@ -75,13 +75,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Location of the Git repo to build.
    +   * Required. Location of the Git repo to build.
        *
        * This will be used as a `git remote`, see
        * https://git-scm.com/docs/git-remote.
        * 
    * - * string url = 1; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The url. */ @@ -102,13 +102,13 @@ public java.lang.String getUrl() { * * *
    -   * Location of the Git repo to build.
    +   * Required. Location of the Git repo to build.
        *
        * This will be used as a `git remote`, see
        * https://git-scm.com/docs/git-remote.
        * 
    * - * string url = 1; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for url. */ @@ -134,13 +134,14 @@ public com.google.protobuf.ByteString getUrlBytes() { * * *
    -   * Directory, relative to the source root, in which to run the build.
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
        *
        * This must be a relative path. If a step's `dir` is specified and is an
        * absolute path, this value is ignored for that step's execution.
        * 
    * - * string dir = 5; + * string dir = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dir. */ @@ -161,13 +162,14 @@ public java.lang.String getDir() { * * *
    -   * Directory, relative to the source root, in which to run the build.
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
        *
        * This must be a relative path. If a step's `dir` is specified and is an
        * absolute path, this value is ignored for that step's execution.
        * 
    * - * string dir = 5; + * string dir = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for dir. */ @@ -193,8 +195,8 @@ public com.google.protobuf.ByteString getDirBytes() { * * *
    -   * The revision to fetch from the Git repository such as a branch, a tag, a
    -   * commit SHA, or any Git ref.
    +   * Optional. The revision to fetch from the Git repository such as a branch, a
    +   * tag, a commit SHA, or any Git ref.
        *
        * Cloud Build uses `git fetch` to fetch the revision from the Git
        * repository; therefore make sure that the string you provide for `revision`
    @@ -204,7 +206,7 @@ public com.google.protobuf.ByteString getDirBytes() {
        * information on `git fetch`, see https://git-scm.com/docs/git-fetch.
        * 
    * - * string revision = 6; + * string revision = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The revision. */ @@ -225,8 +227,8 @@ public java.lang.String getRevision() { * * *
    -   * The revision to fetch from the Git repository such as a branch, a tag, a
    -   * commit SHA, or any Git ref.
    +   * Optional. The revision to fetch from the Git repository such as a branch, a
    +   * tag, a commit SHA, or any Git ref.
        *
        * Cloud Build uses `git fetch` to fetch the revision from the Git
        * repository; therefore make sure that the string you provide for `revision`
    @@ -236,7 +238,7 @@ public java.lang.String getRevision() {
        * information on `git fetch`, see https://git-scm.com/docs/git-fetch.
        * 
    * - * string revision = 6; + * string revision = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for revision. */ @@ -646,13 +648,13 @@ public Builder mergeFrom( * * *
    -     * Location of the Git repo to build.
    +     * Required. Location of the Git repo to build.
          *
          * This will be used as a `git remote`, see
          * https://git-scm.com/docs/git-remote.
          * 
    * - * string url = 1; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The url. */ @@ -672,13 +674,13 @@ public java.lang.String getUrl() { * * *
    -     * Location of the Git repo to build.
    +     * Required. Location of the Git repo to build.
          *
          * This will be used as a `git remote`, see
          * https://git-scm.com/docs/git-remote.
          * 
    * - * string url = 1; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for url. */ @@ -698,13 +700,13 @@ public com.google.protobuf.ByteString getUrlBytes() { * * *
    -     * Location of the Git repo to build.
    +     * Required. Location of the Git repo to build.
          *
          * This will be used as a `git remote`, see
          * https://git-scm.com/docs/git-remote.
          * 
    * - * string url = 1; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The url to set. * @return This builder for chaining. @@ -723,13 +725,13 @@ public Builder setUrl(java.lang.String value) { * * *
    -     * Location of the Git repo to build.
    +     * Required. Location of the Git repo to build.
          *
          * This will be used as a `git remote`, see
          * https://git-scm.com/docs/git-remote.
          * 
    * - * string url = 1; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -744,13 +746,13 @@ public Builder clearUrl() { * * *
    -     * Location of the Git repo to build.
    +     * Required. Location of the Git repo to build.
          *
          * This will be used as a `git remote`, see
          * https://git-scm.com/docs/git-remote.
          * 
    * - * string url = 1; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for url to set. * @return This builder for chaining. @@ -772,13 +774,14 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 5; + * string dir = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dir. */ @@ -798,13 +801,14 @@ public java.lang.String getDir() { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 5; + * string dir = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for dir. */ @@ -824,13 +828,14 @@ public com.google.protobuf.ByteString getDirBytes() { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 5; + * string dir = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The dir to set. * @return This builder for chaining. @@ -849,13 +854,14 @@ public Builder setDir(java.lang.String value) { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 5; + * string dir = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -870,13 +876,14 @@ public Builder clearDir() { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 5; + * string dir = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for dir to set. * @return This builder for chaining. @@ -898,8 +905,8 @@ public Builder setDirBytes(com.google.protobuf.ByteString value) { * * *
    -     * The revision to fetch from the Git repository such as a branch, a tag, a
    -     * commit SHA, or any Git ref.
    +     * Optional. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
          *
          * Cloud Build uses `git fetch` to fetch the revision from the Git
          * repository; therefore make sure that the string you provide for `revision`
    @@ -909,7 +916,7 @@ public Builder setDirBytes(com.google.protobuf.ByteString value) {
          * information on `git fetch`, see https://git-scm.com/docs/git-fetch.
          * 
    * - * string revision = 6; + * string revision = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The revision. */ @@ -929,8 +936,8 @@ public java.lang.String getRevision() { * * *
    -     * The revision to fetch from the Git repository such as a branch, a tag, a
    -     * commit SHA, or any Git ref.
    +     * Optional. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
          *
          * Cloud Build uses `git fetch` to fetch the revision from the Git
          * repository; therefore make sure that the string you provide for `revision`
    @@ -940,7 +947,7 @@ public java.lang.String getRevision() {
          * information on `git fetch`, see https://git-scm.com/docs/git-fetch.
          * 
    * - * string revision = 6; + * string revision = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for revision. */ @@ -960,8 +967,8 @@ public com.google.protobuf.ByteString getRevisionBytes() { * * *
    -     * The revision to fetch from the Git repository such as a branch, a tag, a
    -     * commit SHA, or any Git ref.
    +     * Optional. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
          *
          * Cloud Build uses `git fetch` to fetch the revision from the Git
          * repository; therefore make sure that the string you provide for `revision`
    @@ -971,7 +978,7 @@ public com.google.protobuf.ByteString getRevisionBytes() {
          * information on `git fetch`, see https://git-scm.com/docs/git-fetch.
          * 
    * - * string revision = 6; + * string revision = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The revision to set. * @return This builder for chaining. @@ -990,8 +997,8 @@ public Builder setRevision(java.lang.String value) { * * *
    -     * The revision to fetch from the Git repository such as a branch, a tag, a
    -     * commit SHA, or any Git ref.
    +     * Optional. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
          *
          * Cloud Build uses `git fetch` to fetch the revision from the Git
          * repository; therefore make sure that the string you provide for `revision`
    @@ -1001,7 +1008,7 @@ public Builder setRevision(java.lang.String value) {
          * information on `git fetch`, see https://git-scm.com/docs/git-fetch.
          * 
    * - * string revision = 6; + * string revision = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1016,8 +1023,8 @@ public Builder clearRevision() { * * *
    -     * The revision to fetch from the Git repository such as a branch, a tag, a
    -     * commit SHA, or any Git ref.
    +     * Optional. The revision to fetch from the Git repository such as a branch, a
    +     * tag, a commit SHA, or any Git ref.
          *
          * Cloud Build uses `git fetch` to fetch the revision from the Git
          * repository; therefore make sure that the string you provide for `revision`
    @@ -1027,7 +1034,7 @@ public Builder clearRevision() {
          * information on `git fetch`, see https://git-scm.com/docs/git-fetch.
          * 
    * - * string revision = 6; + * string revision = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for revision to set. * @return This builder for chaining. diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitSourceOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitSourceOrBuilder.java index 084069156422..e38a88710f0c 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitSourceOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/GitSourceOrBuilder.java @@ -28,13 +28,13 @@ public interface GitSourceOrBuilder * * *
    -   * Location of the Git repo to build.
    +   * Required. Location of the Git repo to build.
        *
        * This will be used as a `git remote`, see
        * https://git-scm.com/docs/git-remote.
        * 
    * - * string url = 1; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The url. */ @@ -44,13 +44,13 @@ public interface GitSourceOrBuilder * * *
    -   * Location of the Git repo to build.
    +   * Required. Location of the Git repo to build.
        *
        * This will be used as a `git remote`, see
        * https://git-scm.com/docs/git-remote.
        * 
    * - * string url = 1; + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for url. */ @@ -60,13 +60,14 @@ public interface GitSourceOrBuilder * * *
    -   * Directory, relative to the source root, in which to run the build.
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
        *
        * This must be a relative path. If a step's `dir` is specified and is an
        * absolute path, this value is ignored for that step's execution.
        * 
    * - * string dir = 5; + * string dir = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dir. */ @@ -76,13 +77,14 @@ public interface GitSourceOrBuilder * * *
    -   * Directory, relative to the source root, in which to run the build.
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
        *
        * This must be a relative path. If a step's `dir` is specified and is an
        * absolute path, this value is ignored for that step's execution.
        * 
    * - * string dir = 5; + * string dir = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for dir. */ @@ -92,8 +94,8 @@ public interface GitSourceOrBuilder * * *
    -   * The revision to fetch from the Git repository such as a branch, a tag, a
    -   * commit SHA, or any Git ref.
    +   * Optional. The revision to fetch from the Git repository such as a branch, a
    +   * tag, a commit SHA, or any Git ref.
        *
        * Cloud Build uses `git fetch` to fetch the revision from the Git
        * repository; therefore make sure that the string you provide for `revision`
    @@ -103,7 +105,7 @@ public interface GitSourceOrBuilder
        * information on `git fetch`, see https://git-scm.com/docs/git-fetch.
        * 
    * - * string revision = 6; + * string revision = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The revision. */ @@ -113,8 +115,8 @@ public interface GitSourceOrBuilder * * *
    -   * The revision to fetch from the Git repository such as a branch, a tag, a
    -   * commit SHA, or any Git ref.
    +   * Optional. The revision to fetch from the Git repository such as a branch, a
    +   * tag, a commit SHA, or any Git ref.
        *
        * Cloud Build uses `git fetch` to fetch the revision from the Git
        * repository; therefore make sure that the string you provide for `revision`
    @@ -124,7 +126,7 @@ public interface GitSourceOrBuilder
        * information on `git fetch`, see https://git-scm.com/docs/git-fetch.
        * 
    * - * string revision = 6; + * string revision = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for revision. */ diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java new file mode 100644 index 000000000000..ba3602bd2e62 --- /dev/null +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/ProjectName.java @@ -0,0 +1,168 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloudbuild.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 ProjectName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}"); + private volatile Map fieldValuesMap; + private final String project; + + @Deprecated + protected ProjectName() { + project = null; + } + + private ProjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ProjectName of(String project) { + return newBuilder().setProject(project).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + public static ProjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT.validatedMatch( + formattedString, "ProjectName.parse: formattedString not in valid format"); + return of(matchMap.get("project")); + } + + 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 (ProjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.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); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT.instantiate("project", project); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ProjectName that = ((ProjectName) o); + return Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** Builder for projects/{project}. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(ProjectName projectName) { + this.project = projectName.project; + } + + public ProjectName build() { + return new ProjectName(this); + } + } +} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PubsubConfig.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PubsubConfig.java index 5e47997140a7..98a5106b45a1 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PubsubConfig.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PubsubConfig.java @@ -342,11 +342,13 @@ public com.google.protobuf.ByteString getSubscriptionBytes() { * * *
    -   * The name of the topic from which this subscription is receiving messages.
    -   * Format is `projects/{project}/topics/{topic}`.
    +   * Optional. The name of the topic from which this subscription is receiving
    +   * messages. Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -367,11 +369,13 @@ public java.lang.String getTopic() { * * *
    -   * The name of the topic from which this subscription is receiving messages.
    -   * Format is `projects/{project}/topics/{topic}`.
    +   * Optional. The name of the topic from which this subscription is receiving
    +   * messages. Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -1023,11 +1027,13 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Optional. The name of the topic from which this subscription is receiving
    +     * messages. Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -1047,11 +1053,13 @@ public java.lang.String getTopic() { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Optional. The name of the topic from which this subscription is receiving
    +     * messages. Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ @@ -1071,11 +1079,13 @@ public com.google.protobuf.ByteString getTopicBytes() { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Optional. The name of the topic from which this subscription is receiving
    +     * messages. Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The topic to set. * @return This builder for chaining. @@ -1094,11 +1104,13 @@ public Builder setTopic(java.lang.String value) { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Optional. The name of the topic from which this subscription is receiving
    +     * messages. Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1113,11 +1125,13 @@ public Builder clearTopic() { * * *
    -     * The name of the topic from which this subscription is receiving messages.
    -     * Format is `projects/{project}/topics/{topic}`.
    +     * Optional. The name of the topic from which this subscription is receiving
    +     * messages. Format is `projects/{project}/topics/{topic}`.
          * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for topic to set. * @return This builder for chaining. diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PubsubConfigOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PubsubConfigOrBuilder.java index b8192721283b..cc758a27b9fb 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PubsubConfigOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PubsubConfigOrBuilder.java @@ -60,11 +60,13 @@ public interface PubsubConfigOrBuilder * * *
    -   * The name of the topic from which this subscription is receiving messages.
    -   * Format is `projects/{project}/topics/{topic}`.
    +   * Optional. The name of the topic from which this subscription is receiving
    +   * messages. Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The topic. */ @@ -74,11 +76,13 @@ public interface PubsubConfigOrBuilder * * *
    -   * The name of the topic from which this subscription is receiving messages.
    -   * Format is `projects/{project}/topics/{topic}`.
    +   * Optional. The name of the topic from which this subscription is receiving
    +   * messages. Format is `projects/{project}/topics/{topic}`.
        * 
    * - * string topic = 2 [(.google.api.resource_reference) = { ... } + * + * string topic = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The bytes for topic. */ diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilter.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilter.java index 9f4f3d32a049..0d12f7b2b39e 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilter.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/PullRequestFilter.java @@ -70,14 +70,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
        * Controls whether or not a `/gcbrun` comment is required from a user with
    -   * repository write permission or above in order to
    -   * trigger Build runs for pull requests. Pull Request update events differ
    -   * between repo types.
    -   * Check repo specific guides
    +   *  repository write permission or above in order to
    +   *  trigger Build runs for pull requests. Pull Request update events differ
    +   *  between repo types.
    +   *  Check repo specific guides
        * ([GitHub](https://cloud.google.com/build/docs/automating-builds/github/build-repos-from-github-enterprise#creating_a_github_enterprise_trigger),
        * [Bitbucket](https://cloud.google.com/build/docs/automating-builds/bitbucket/build-repos-from-bitbucket-server#creating_a_bitbucket_server_trigger),
        * [GitLab](https://cloud.google.com/build/docs/automating-builds/gitlab/build-repos-from-gitlab#creating_a_gitlab_trigger)
    -   * for details.
    +   *  for details.
        * 
    * * Protobuf enum {@code google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl} diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RepoSource.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RepoSource.java index 9112bf3e4776..856409e79a4c 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RepoSource.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RepoSource.java @@ -140,11 +140,11 @@ public RevisionCase getRevisionCase() { * * *
    -   * ID of the project that owns the Cloud Source Repository. If omitted, the
    -   * project ID requesting the build is assumed.
    +   * Optional. ID of the project that owns the Cloud Source Repository. If
    +   * omitted, the project ID requesting the build is assumed.
        * 
    * - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -165,11 +165,11 @@ public java.lang.String getProjectId() { * * *
    -   * ID of the project that owns the Cloud Source Repository. If omitted, the
    -   * project ID requesting the build is assumed.
    +   * Optional. ID of the project that owns the Cloud Source Repository. If
    +   * omitted, the project ID requesting the build is assumed.
        * 
    * - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -195,10 +195,10 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
    -   * Name of the Cloud Source Repository.
    +   * Required. Name of the Cloud Source Repository.
        * 
    * - * string repo_name = 2; + * string repo_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The repoName. */ @@ -219,10 +219,10 @@ public java.lang.String getRepoName() { * * *
    -   * Name of the Cloud Source Repository.
    +   * Required. Name of the Cloud Source Repository.
        * 
    * - * string repo_name = 2; + * string repo_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for repoName. */ @@ -485,13 +485,14 @@ public com.google.protobuf.ByteString getCommitShaBytes() { * * *
    -   * Directory, relative to the source root, in which to run the build.
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
        *
        * This must be a relative path. If a step's `dir` is specified and is an
        * absolute path, this value is ignored for that step's execution.
        * 
    * - * string dir = 7; + * string dir = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dir. */ @@ -512,13 +513,14 @@ public java.lang.String getDir() { * * *
    -   * Directory, relative to the source root, in which to run the build.
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
        *
        * This must be a relative path. If a step's `dir` is specified and is an
        * absolute path, this value is ignored for that step's execution.
        * 
    * - * string dir = 7; + * string dir = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for dir. */ @@ -542,11 +544,11 @@ public com.google.protobuf.ByteString getDirBytes() { * * *
    -   * Only trigger a build if the revision regex does NOT match the revision
    -   * regex.
    +   * Optional. Only trigger a build if the revision regex does NOT match the
    +   * revision regex.
        * 
    * - * bool invert_regex = 8; + * bool invert_regex = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The invertRegex. */ @@ -588,11 +590,12 @@ public int getSubstitutionsCount() { * * *
    -   * Substitutions to use in a triggered build.
    +   * Optional. Substitutions to use in a triggered build.
        * Should only be used with RunBuildTrigger
        * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsSubstitutions(java.lang.String key) { @@ -613,11 +616,12 @@ public java.util.Map getSubstitutions() { * * *
    -   * Substitutions to use in a triggered build.
    +   * Optional. Substitutions to use in a triggered build.
        * Should only be used with RunBuildTrigger
        * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getSubstitutionsMap() { @@ -628,11 +632,12 @@ public java.util.Map getSubstitutionsMap() { * * *
    -   * Substitutions to use in a triggered build.
    +   * Optional. Substitutions to use in a triggered build.
        * Should only be used with RunBuildTrigger
        * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getSubstitutionsOrDefault( @@ -650,11 +655,12 @@ public java.util.Map getSubstitutionsMap() { * * *
    -   * Substitutions to use in a triggered build.
    +   * Optional. Substitutions to use in a triggered build.
        * Should only be used with RunBuildTrigger
        * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getSubstitutionsOrThrow(java.lang.String key) { @@ -1259,11 +1265,11 @@ public Builder clearRevision() { * * *
    -     * ID of the project that owns the Cloud Source Repository. If omitted, the
    -     * project ID requesting the build is assumed.
    +     * Optional. ID of the project that owns the Cloud Source Repository. If
    +     * omitted, the project ID requesting the build is assumed.
          * 
    * - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -1283,11 +1289,11 @@ public java.lang.String getProjectId() { * * *
    -     * ID of the project that owns the Cloud Source Repository. If omitted, the
    -     * project ID requesting the build is assumed.
    +     * Optional. ID of the project that owns the Cloud Source Repository. If
    +     * omitted, the project ID requesting the build is assumed.
          * 
    * - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -1307,11 +1313,11 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
    -     * ID of the project that owns the Cloud Source Repository. If omitted, the
    -     * project ID requesting the build is assumed.
    +     * Optional. ID of the project that owns the Cloud Source Repository. If
    +     * omitted, the project ID requesting the build is assumed.
          * 
    * - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The projectId to set. * @return This builder for chaining. @@ -1330,11 +1336,11 @@ public Builder setProjectId(java.lang.String value) { * * *
    -     * ID of the project that owns the Cloud Source Repository. If omitted, the
    -     * project ID requesting the build is assumed.
    +     * Optional. ID of the project that owns the Cloud Source Repository. If
    +     * omitted, the project ID requesting the build is assumed.
          * 
    * - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1349,11 +1355,11 @@ public Builder clearProjectId() { * * *
    -     * ID of the project that owns the Cloud Source Repository. If omitted, the
    -     * project ID requesting the build is assumed.
    +     * Optional. ID of the project that owns the Cloud Source Repository. If
    +     * omitted, the project ID requesting the build is assumed.
          * 
    * - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for projectId to set. * @return This builder for chaining. @@ -1375,10 +1381,10 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
    -     * Name of the Cloud Source Repository.
    +     * Required. Name of the Cloud Source Repository.
          * 
    * - * string repo_name = 2; + * string repo_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The repoName. */ @@ -1398,10 +1404,10 @@ public java.lang.String getRepoName() { * * *
    -     * Name of the Cloud Source Repository.
    +     * Required. Name of the Cloud Source Repository.
          * 
    * - * string repo_name = 2; + * string repo_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for repoName. */ @@ -1421,10 +1427,10 @@ public com.google.protobuf.ByteString getRepoNameBytes() { * * *
    -     * Name of the Cloud Source Repository.
    +     * Required. Name of the Cloud Source Repository.
          * 
    * - * string repo_name = 2; + * string repo_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The repoName to set. * @return This builder for chaining. @@ -1443,10 +1449,10 @@ public Builder setRepoName(java.lang.String value) { * * *
    -     * Name of the Cloud Source Repository.
    +     * Required. Name of the Cloud Source Repository.
          * 
    * - * string repo_name = 2; + * string repo_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1461,10 +1467,10 @@ public Builder clearRepoName() { * * *
    -     * Name of the Cloud Source Repository.
    +     * Required. Name of the Cloud Source Repository.
          * 
    * - * string repo_name = 2; + * string repo_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for repoName to set. * @return This builder for chaining. @@ -1939,13 +1945,14 @@ public Builder setCommitShaBytes(com.google.protobuf.ByteString value) { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 7; + * string dir = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dir. */ @@ -1965,13 +1972,14 @@ public java.lang.String getDir() { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 7; + * string dir = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for dir. */ @@ -1991,13 +1999,14 @@ public com.google.protobuf.ByteString getDirBytes() { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 7; + * string dir = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The dir to set. * @return This builder for chaining. @@ -2016,13 +2025,14 @@ public Builder setDir(java.lang.String value) { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 7; + * string dir = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2037,13 +2047,14 @@ public Builder clearDir() { * * *
    -     * Directory, relative to the source root, in which to run the build.
    +     * Optional. Directory, relative to the source root, in which to run the
    +     * build.
          *
          * This must be a relative path. If a step's `dir` is specified and is an
          * absolute path, this value is ignored for that step's execution.
          * 
    * - * string dir = 7; + * string dir = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for dir to set. * @return This builder for chaining. @@ -2065,11 +2076,11 @@ public Builder setDirBytes(com.google.protobuf.ByteString value) { * * *
    -     * Only trigger a build if the revision regex does NOT match the revision
    -     * regex.
    +     * Optional. Only trigger a build if the revision regex does NOT match the
    +     * revision regex.
          * 
    * - * bool invert_regex = 8; + * bool invert_regex = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The invertRegex. */ @@ -2082,11 +2093,11 @@ public boolean getInvertRegex() { * * *
    -     * Only trigger a build if the revision regex does NOT match the revision
    -     * regex.
    +     * Optional. Only trigger a build if the revision regex does NOT match the
    +     * revision regex.
          * 
    * - * bool invert_regex = 8; + * bool invert_regex = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The invertRegex to set. * @return This builder for chaining. @@ -2103,11 +2114,11 @@ public Builder setInvertRegex(boolean value) { * * *
    -     * Only trigger a build if the revision regex does NOT match the revision
    -     * regex.
    +     * Optional. Only trigger a build if the revision regex does NOT match the
    +     * revision regex.
          * 
    * - * bool invert_regex = 8; + * bool invert_regex = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2151,11 +2162,12 @@ public int getSubstitutionsCount() { * * *
    -     * Substitutions to use in a triggered build.
    +     * Optional. Substitutions to use in a triggered build.
          * Should only be used with RunBuildTrigger
          * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public boolean containsSubstitutions(java.lang.String key) { @@ -2176,11 +2188,12 @@ public java.util.Map getSubstitutions() { * * *
    -     * Substitutions to use in a triggered build.
    +     * Optional. Substitutions to use in a triggered build.
          * Should only be used with RunBuildTrigger
          * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.util.Map getSubstitutionsMap() { @@ -2191,11 +2204,12 @@ public java.util.Map getSubstitutionsMap() { * * *
    -     * Substitutions to use in a triggered build.
    +     * Optional. Substitutions to use in a triggered build.
          * Should only be used with RunBuildTrigger
          * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public /* nullable */ java.lang.String getSubstitutionsOrDefault( @@ -2213,11 +2227,12 @@ public java.util.Map getSubstitutionsMap() { * * *
    -     * Substitutions to use in a triggered build.
    +     * Optional. Substitutions to use in a triggered build.
          * Should only be used with RunBuildTrigger
          * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public java.lang.String getSubstitutionsOrThrow(java.lang.String key) { @@ -2241,11 +2256,12 @@ public Builder clearSubstitutions() { * * *
    -     * Substitutions to use in a triggered build.
    +     * Optional. Substitutions to use in a triggered build.
          * Should only be used with RunBuildTrigger
          * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder removeSubstitutions(java.lang.String key) { if (key == null) { @@ -2266,11 +2282,12 @@ public java.util.Map getMutableSubstitutions * * *
    -     * Substitutions to use in a triggered build.
    +     * Optional. Substitutions to use in a triggered build.
          * Should only be used with RunBuildTrigger
          * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putSubstitutions(java.lang.String key, java.lang.String value) { if (key == null) { @@ -2288,11 +2305,12 @@ public Builder putSubstitutions(java.lang.String key, java.lang.String value) { * * *
    -     * Substitutions to use in a triggered build.
    +     * Optional. Substitutions to use in a triggered build.
          * Should only be used with RunBuildTrigger
          * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder putAllSubstitutions(java.util.Map values) { internalGetMutableSubstitutions().getMutableMap().putAll(values); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RepoSourceOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RepoSourceOrBuilder.java index a39ae44c8190..c8e7a46567b4 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RepoSourceOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/RepoSourceOrBuilder.java @@ -28,11 +28,11 @@ public interface RepoSourceOrBuilder * * *
    -   * ID of the project that owns the Cloud Source Repository. If omitted, the
    -   * project ID requesting the build is assumed.
    +   * Optional. ID of the project that owns the Cloud Source Repository. If
    +   * omitted, the project ID requesting the build is assumed.
        * 
    * - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The projectId. */ @@ -42,11 +42,11 @@ public interface RepoSourceOrBuilder * * *
    -   * ID of the project that owns the Cloud Source Repository. If omitted, the
    -   * project ID requesting the build is assumed.
    +   * Optional. ID of the project that owns the Cloud Source Repository. If
    +   * omitted, the project ID requesting the build is assumed.
        * 
    * - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for projectId. */ @@ -56,10 +56,10 @@ public interface RepoSourceOrBuilder * * *
    -   * Name of the Cloud Source Repository.
    +   * Required. Name of the Cloud Source Repository.
        * 
    * - * string repo_name = 2; + * string repo_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The repoName. */ @@ -69,10 +69,10 @@ public interface RepoSourceOrBuilder * * *
    -   * Name of the Cloud Source Repository.
    +   * Required. Name of the Cloud Source Repository.
        * 
    * - * string repo_name = 2; + * string repo_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for repoName. */ @@ -217,13 +217,14 @@ public interface RepoSourceOrBuilder * * *
    -   * Directory, relative to the source root, in which to run the build.
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
        *
        * This must be a relative path. If a step's `dir` is specified and is an
        * absolute path, this value is ignored for that step's execution.
        * 
    * - * string dir = 7; + * string dir = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The dir. */ @@ -233,13 +234,14 @@ public interface RepoSourceOrBuilder * * *
    -   * Directory, relative to the source root, in which to run the build.
    +   * Optional. Directory, relative to the source root, in which to run the
    +   * build.
        *
        * This must be a relative path. If a step's `dir` is specified and is an
        * absolute path, this value is ignored for that step's execution.
        * 
    * - * string dir = 7; + * string dir = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for dir. */ @@ -249,11 +251,11 @@ public interface RepoSourceOrBuilder * * *
    -   * Only trigger a build if the revision regex does NOT match the revision
    -   * regex.
    +   * Optional. Only trigger a build if the revision regex does NOT match the
    +   * revision regex.
        * 
    * - * bool invert_regex = 8; + * bool invert_regex = 8 [(.google.api.field_behavior) = OPTIONAL]; * * @return The invertRegex. */ @@ -263,11 +265,12 @@ public interface RepoSourceOrBuilder * * *
    -   * Substitutions to use in a triggered build.
    +   * Optional. Substitutions to use in a triggered build.
        * Should only be used with RunBuildTrigger
        * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ int getSubstitutionsCount(); @@ -275,11 +278,12 @@ public interface RepoSourceOrBuilder * * *
    -   * Substitutions to use in a triggered build.
    +   * Optional. Substitutions to use in a triggered build.
        * Should only be used with RunBuildTrigger
        * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ boolean containsSubstitutions(java.lang.String key); @@ -291,11 +295,12 @@ public interface RepoSourceOrBuilder * * *
    -   * Substitutions to use in a triggered build.
    +   * Optional. Substitutions to use in a triggered build.
        * Should only be used with RunBuildTrigger
        * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.util.Map getSubstitutionsMap(); @@ -303,11 +308,12 @@ public interface RepoSourceOrBuilder * * *
    -   * Substitutions to use in a triggered build.
    +   * Optional. Substitutions to use in a triggered build.
        * Should only be used with RunBuildTrigger
        * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ /* nullable */ java.lang.String getSubstitutionsOrDefault( @@ -319,11 +325,12 @@ java.lang.String getSubstitutionsOrDefault( * * *
    -   * Substitutions to use in a triggered build.
    +   * Optional. Substitutions to use in a triggered build.
        * Should only be used with RunBuildTrigger
        * 
    * - * map<string, string> substitutions = 9; + * map<string, string> substitutions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ java.lang.String getSubstitutionsOrThrow(java.lang.String key); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Source.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Source.java index 7c9dc4504c62..1e290fbd43df 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Source.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/Source.java @@ -74,6 +74,7 @@ public enum SourceCase REPO_SOURCE(3), GIT_SOURCE(5), STORAGE_SOURCE_MANIFEST(8), + CONNECTED_REPOSITORY(9), SOURCE_NOT_SET(0); private final int value; @@ -101,6 +102,8 @@ public static SourceCase forNumber(int value) { return GIT_SOURCE; case 8: return STORAGE_SOURCE_MANIFEST; + case 9: + return CONNECTED_REPOSITORY; case 0: return SOURCE_NOT_SET; default: @@ -343,6 +346,69 @@ public com.google.cloudbuild.v1.StorageSourceManifest getStorageSourceManifest() return com.google.cloudbuild.v1.StorageSourceManifest.getDefaultInstance(); } + public static final int CONNECTED_REPOSITORY_FIELD_NUMBER = 9; + + /** + * + * + *
    +   * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +   * Build repository resource.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectedRepository field is set. + */ + @java.lang.Override + public boolean hasConnectedRepository() { + return sourceCase_ == 9; + } + + /** + * + * + *
    +   * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +   * Build repository resource.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectedRepository. + */ + @java.lang.Override + public com.google.cloudbuild.v1.ConnectedRepository getConnectedRepository() { + if (sourceCase_ == 9) { + return (com.google.cloudbuild.v1.ConnectedRepository) source_; + } + return com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +   * Build repository resource.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder getConnectedRepositoryOrBuilder() { + if (sourceCase_ == 9) { + return (com.google.cloudbuild.v1.ConnectedRepository) source_; + } + return com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -369,6 +435,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 8) { output.writeMessage(8, (com.google.cloudbuild.v1.StorageSourceManifest) source_); } + if (sourceCase_ == 9) { + output.writeMessage(9, (com.google.cloudbuild.v1.ConnectedRepository) source_); + } getUnknownFields().writeTo(output); } @@ -398,6 +467,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, (com.google.cloudbuild.v1.StorageSourceManifest) source_); } + if (sourceCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloudbuild.v1.ConnectedRepository) source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -427,6 +501,9 @@ public boolean equals(final java.lang.Object obj) { case 8: if (!getStorageSourceManifest().equals(other.getStorageSourceManifest())) return false; break; + case 9: + if (!getConnectedRepository().equals(other.getConnectedRepository())) return false; + break; case 0: default: } @@ -458,6 +535,10 @@ public int hashCode() { hash = (37 * hash) + STORAGE_SOURCE_MANIFEST_FIELD_NUMBER; hash = (53 * hash) + getStorageSourceManifest().hashCode(); break; + case 9: + hash = (37 * hash) + CONNECTED_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getConnectedRepository().hashCode(); + break; case 0: default: } @@ -611,6 +692,9 @@ public Builder clear() { if (storageSourceManifestBuilder_ != null) { storageSourceManifestBuilder_.clear(); } + if (connectedRepositoryBuilder_ != null) { + connectedRepositoryBuilder_.clear(); + } sourceCase_ = 0; source_ = null; return this; @@ -666,6 +750,9 @@ private void buildPartialOneofs(com.google.cloudbuild.v1.Source result) { if (sourceCase_ == 8 && storageSourceManifestBuilder_ != null) { result.source_ = storageSourceManifestBuilder_.build(); } + if (sourceCase_ == 9 && connectedRepositoryBuilder_ != null) { + result.source_ = connectedRepositoryBuilder_.build(); + } } @java.lang.Override @@ -734,6 +821,11 @@ public Builder mergeFrom(com.google.cloudbuild.v1.Source other) { mergeStorageSourceManifest(other.getStorageSourceManifest()); break; } + case CONNECTED_REPOSITORY: + { + mergeConnectedRepository(other.getConnectedRepository()); + break; + } case SOURCE_NOT_SET: { break; @@ -790,6 +882,13 @@ public Builder mergeFrom( sourceCase_ = 8; break; } // case 66 + case 74: + { + input.readMessage( + getConnectedRepositoryFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 9; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1728,6 +1827,251 @@ public Builder clearStorageSourceManifest() { return storageSourceManifestBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.ConnectedRepository, + com.google.cloudbuild.v1.ConnectedRepository.Builder, + com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder> + connectedRepositoryBuilder_; + + /** + * + * + *
    +     * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +     * Build repository resource.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectedRepository field is set. + */ + @java.lang.Override + public boolean hasConnectedRepository() { + return sourceCase_ == 9; + } + + /** + * + * + *
    +     * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +     * Build repository resource.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectedRepository. + */ + @java.lang.Override + public com.google.cloudbuild.v1.ConnectedRepository getConnectedRepository() { + if (connectedRepositoryBuilder_ == null) { + if (sourceCase_ == 9) { + return (com.google.cloudbuild.v1.ConnectedRepository) source_; + } + return com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance(); + } else { + if (sourceCase_ == 9) { + return connectedRepositoryBuilder_.getMessage(); + } + return com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +     * Build repository resource.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectedRepository(com.google.cloudbuild.v1.ConnectedRepository value) { + if (connectedRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + connectedRepositoryBuilder_.setMessage(value); + } + sourceCase_ = 9; + return this; + } + + /** + * + * + *
    +     * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +     * Build repository resource.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConnectedRepository( + com.google.cloudbuild.v1.ConnectedRepository.Builder builderForValue) { + if (connectedRepositoryBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + connectedRepositoryBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 9; + return this; + } + + /** + * + * + *
    +     * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +     * Build repository resource.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConnectedRepository(com.google.cloudbuild.v1.ConnectedRepository value) { + if (connectedRepositoryBuilder_ == null) { + if (sourceCase_ == 9 + && source_ != com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance()) { + source_ = + com.google.cloudbuild.v1.ConnectedRepository.newBuilder( + (com.google.cloudbuild.v1.ConnectedRepository) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 9) { + connectedRepositoryBuilder_.mergeFrom(value); + } else { + connectedRepositoryBuilder_.setMessage(value); + } + } + sourceCase_ = 9; + return this; + } + + /** + * + * + *
    +     * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +     * Build repository resource.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConnectedRepository() { + if (connectedRepositoryBuilder_ == null) { + if (sourceCase_ == 9) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 9) { + sourceCase_ = 0; + source_ = null; + } + connectedRepositoryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +     * Build repository resource.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloudbuild.v1.ConnectedRepository.Builder getConnectedRepositoryBuilder() { + return getConnectedRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +     * Build repository resource.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder getConnectedRepositoryOrBuilder() { + if ((sourceCase_ == 9) && (connectedRepositoryBuilder_ != null)) { + return connectedRepositoryBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 9) { + return (com.google.cloudbuild.v1.ConnectedRepository) source_; + } + return com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance(); + } + } + + /** + * + * + *
    +     * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +     * Build repository resource.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.ConnectedRepository, + com.google.cloudbuild.v1.ConnectedRepository.Builder, + com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder> + getConnectedRepositoryFieldBuilder() { + if (connectedRepositoryBuilder_ == null) { + if (!(sourceCase_ == 9)) { + source_ = com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance(); + } + connectedRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.ConnectedRepository, + com.google.cloudbuild.v1.ConnectedRepository.Builder, + com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder>( + (com.google.cloudbuild.v1.ConnectedRepository) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 9; + onChanged(); + return connectedRepositoryBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceOrBuilder.java index ceb6bcba489d..49bdc6f89ea0 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceOrBuilder.java @@ -181,5 +181,51 @@ public interface SourceOrBuilder */ com.google.cloudbuild.v1.StorageSourceManifestOrBuilder getStorageSourceManifestOrBuilder(); + /** + * + * + *
    +   * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +   * Build repository resource.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the connectedRepository field is set. + */ + boolean hasConnectedRepository(); + + /** + * + * + *
    +   * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +   * Build repository resource.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The connectedRepository. + */ + com.google.cloudbuild.v1.ConnectedRepository getConnectedRepository(); + + /** + * + * + *
    +   * Optional. If provided, get the source from this 2nd-gen Google Cloud
    +   * Build repository resource.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository connected_repository = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder getConnectedRepositoryOrBuilder(); + com.google.cloudbuild.v1.Source.SourceCase getSourceCase(); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceProvenance.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceProvenance.java index 8e93bef8ff74..8de5d7644d5a 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceProvenance.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceProvenance.java @@ -254,6 +254,131 @@ public com.google.cloudbuild.v1.StorageSourceManifest getResolvedStorageSourceMa : resolvedStorageSourceManifest_; } + public static final int RESOLVED_CONNECTED_REPOSITORY_FIELD_NUMBER = 10; + private com.google.cloudbuild.v1.ConnectedRepository resolvedConnectedRepository_; + + /** + * + * + *
    +   * Output only. A copy of the build's `source.connected_repository`, if
    +   * exists, with any revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resolvedConnectedRepository field is set. + */ + @java.lang.Override + public boolean hasResolvedConnectedRepository() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +   * Output only. A copy of the build's `source.connected_repository`, if
    +   * exists, with any revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resolvedConnectedRepository. + */ + @java.lang.Override + public com.google.cloudbuild.v1.ConnectedRepository getResolvedConnectedRepository() { + return resolvedConnectedRepository_ == null + ? com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance() + : resolvedConnectedRepository_; + } + + /** + * + * + *
    +   * Output only. A copy of the build's `source.connected_repository`, if
    +   * exists, with any revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder + getResolvedConnectedRepositoryOrBuilder() { + return resolvedConnectedRepository_ == null + ? com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance() + : resolvedConnectedRepository_; + } + + public static final int RESOLVED_GIT_SOURCE_FIELD_NUMBER = 11; + private com.google.cloudbuild.v1.GitSource resolvedGitSource_; + + /** + * + * + *
    +   * Output only. A copy of the build's `source.git_source`, if exists, with any
    +   * revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resolvedGitSource field is set. + */ + @java.lang.Override + public boolean hasResolvedGitSource() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Output only. A copy of the build's `source.git_source`, if exists, with any
    +   * revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resolvedGitSource. + */ + @java.lang.Override + public com.google.cloudbuild.v1.GitSource getResolvedGitSource() { + return resolvedGitSource_ == null + ? com.google.cloudbuild.v1.GitSource.getDefaultInstance() + : resolvedGitSource_; + } + + /** + * + * + *
    +   * Output only. A copy of the build's `source.git_source`, if exists, with any
    +   * revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloudbuild.v1.GitSourceOrBuilder getResolvedGitSourceOrBuilder() { + return resolvedGitSource_ == null + ? com.google.cloudbuild.v1.GitSource.getDefaultInstance() + : resolvedGitSource_; + } + public static final int FILE_HASHES_FIELD_NUMBER = 4; private static final class FileHashesDefaultEntryHolder { @@ -436,6 +561,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(9, getResolvedStorageSourceManifest()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getResolvedConnectedRepository()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(11, getResolvedGitSource()); + } getUnknownFields().writeTo(output); } @@ -468,6 +599,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, getResolvedStorageSourceManifest()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getResolvedConnectedRepository()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getResolvedGitSource()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -498,6 +637,15 @@ public boolean equals(final java.lang.Object obj) { if (!getResolvedStorageSourceManifest().equals(other.getResolvedStorageSourceManifest())) return false; } + if (hasResolvedConnectedRepository() != other.hasResolvedConnectedRepository()) return false; + if (hasResolvedConnectedRepository()) { + if (!getResolvedConnectedRepository().equals(other.getResolvedConnectedRepository())) + return false; + } + if (hasResolvedGitSource() != other.hasResolvedGitSource()) return false; + if (hasResolvedGitSource()) { + if (!getResolvedGitSource().equals(other.getResolvedGitSource())) return false; + } if (!internalGetFileHashes().equals(other.internalGetFileHashes())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -522,6 +670,14 @@ public int hashCode() { hash = (37 * hash) + RESOLVED_STORAGE_SOURCE_MANIFEST_FIELD_NUMBER; hash = (53 * hash) + getResolvedStorageSourceManifest().hashCode(); } + if (hasResolvedConnectedRepository()) { + hash = (37 * hash) + RESOLVED_CONNECTED_REPOSITORY_FIELD_NUMBER; + hash = (53 * hash) + getResolvedConnectedRepository().hashCode(); + } + if (hasResolvedGitSource()) { + hash = (37 * hash) + RESOLVED_GIT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResolvedGitSource().hashCode(); + } if (!internalGetFileHashes().getMap().isEmpty()) { hash = (37 * hash) + FILE_HASHES_FIELD_NUMBER; hash = (53 * hash) + internalGetFileHashes().hashCode(); @@ -693,6 +849,8 @@ private void maybeForceBuilderInitialization() { getResolvedStorageSourceFieldBuilder(); getResolvedRepoSourceFieldBuilder(); getResolvedStorageSourceManifestFieldBuilder(); + getResolvedConnectedRepositoryFieldBuilder(); + getResolvedGitSourceFieldBuilder(); } } @@ -715,6 +873,16 @@ public Builder clear() { resolvedStorageSourceManifestBuilder_.dispose(); resolvedStorageSourceManifestBuilder_ = null; } + resolvedConnectedRepository_ = null; + if (resolvedConnectedRepositoryBuilder_ != null) { + resolvedConnectedRepositoryBuilder_.dispose(); + resolvedConnectedRepositoryBuilder_ = null; + } + resolvedGitSource_ = null; + if (resolvedGitSourceBuilder_ != null) { + resolvedGitSourceBuilder_.dispose(); + resolvedGitSourceBuilder_ = null; + } internalGetMutableFileHashes().clear(); return this; } @@ -775,6 +943,20 @@ private void buildPartial0(com.google.cloudbuild.v1.SourceProvenance result) { to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.resolvedConnectedRepository_ = + resolvedConnectedRepositoryBuilder_ == null + ? resolvedConnectedRepository_ + : resolvedConnectedRepositoryBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.resolvedGitSource_ = + resolvedGitSourceBuilder_ == null + ? resolvedGitSource_ + : resolvedGitSourceBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.fileHashes_ = internalGetFileHashes().build(FileHashesDefaultEntryHolder.defaultEntry); } @@ -835,8 +1017,14 @@ public Builder mergeFrom(com.google.cloudbuild.v1.SourceProvenance other) { if (other.hasResolvedStorageSourceManifest()) { mergeResolvedStorageSourceManifest(other.getResolvedStorageSourceManifest()); } + if (other.hasResolvedConnectedRepository()) { + mergeResolvedConnectedRepository(other.getResolvedConnectedRepository()); + } + if (other.hasResolvedGitSource()) { + mergeResolvedGitSource(other.getResolvedGitSource()); + } internalGetMutableFileHashes().mergeFrom(other.internalGetFileHashes()); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -880,7 +1068,7 @@ public Builder mergeFrom( internalGetMutableFileHashes() .ensureBuilderMap() .put(fileHashes__.getKey(), fileHashes__.getValue()); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 34 case 50: @@ -897,6 +1085,20 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 74 + case 82: + { + input.readMessage( + getResolvedConnectedRepositoryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 82 + case 90: + { + input.readMessage( + getResolvedGitSourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1561,6 +1763,455 @@ public Builder clearResolvedStorageSourceManifest() { return resolvedStorageSourceManifestBuilder_; } + private com.google.cloudbuild.v1.ConnectedRepository resolvedConnectedRepository_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.ConnectedRepository, + com.google.cloudbuild.v1.ConnectedRepository.Builder, + com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder> + resolvedConnectedRepositoryBuilder_; + + /** + * + * + *
    +     * Output only. A copy of the build's `source.connected_repository`, if
    +     * exists, with any revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resolvedConnectedRepository field is set. + */ + public boolean hasResolvedConnectedRepository() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.connected_repository`, if
    +     * exists, with any revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resolvedConnectedRepository. + */ + public com.google.cloudbuild.v1.ConnectedRepository getResolvedConnectedRepository() { + if (resolvedConnectedRepositoryBuilder_ == null) { + return resolvedConnectedRepository_ == null + ? com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance() + : resolvedConnectedRepository_; + } else { + return resolvedConnectedRepositoryBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.connected_repository`, if
    +     * exists, with any revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResolvedConnectedRepository( + com.google.cloudbuild.v1.ConnectedRepository value) { + if (resolvedConnectedRepositoryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resolvedConnectedRepository_ = value; + } else { + resolvedConnectedRepositoryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.connected_repository`, if
    +     * exists, with any revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResolvedConnectedRepository( + com.google.cloudbuild.v1.ConnectedRepository.Builder builderForValue) { + if (resolvedConnectedRepositoryBuilder_ == null) { + resolvedConnectedRepository_ = builderForValue.build(); + } else { + resolvedConnectedRepositoryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.connected_repository`, if
    +     * exists, with any revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeResolvedConnectedRepository( + com.google.cloudbuild.v1.ConnectedRepository value) { + if (resolvedConnectedRepositoryBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && resolvedConnectedRepository_ != null + && resolvedConnectedRepository_ + != com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance()) { + getResolvedConnectedRepositoryBuilder().mergeFrom(value); + } else { + resolvedConnectedRepository_ = value; + } + } else { + resolvedConnectedRepositoryBuilder_.mergeFrom(value); + } + if (resolvedConnectedRepository_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.connected_repository`, if
    +     * exists, with any revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResolvedConnectedRepository() { + bitField0_ = (bitField0_ & ~0x00000008); + resolvedConnectedRepository_ = null; + if (resolvedConnectedRepositoryBuilder_ != null) { + resolvedConnectedRepositoryBuilder_.dispose(); + resolvedConnectedRepositoryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.connected_repository`, if
    +     * exists, with any revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloudbuild.v1.ConnectedRepository.Builder + getResolvedConnectedRepositoryBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getResolvedConnectedRepositoryFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.connected_repository`, if
    +     * exists, with any revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder + getResolvedConnectedRepositoryOrBuilder() { + if (resolvedConnectedRepositoryBuilder_ != null) { + return resolvedConnectedRepositoryBuilder_.getMessageOrBuilder(); + } else { + return resolvedConnectedRepository_ == null + ? com.google.cloudbuild.v1.ConnectedRepository.getDefaultInstance() + : resolvedConnectedRepository_; + } + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.connected_repository`, if
    +     * exists, with any revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.ConnectedRepository, + com.google.cloudbuild.v1.ConnectedRepository.Builder, + com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder> + getResolvedConnectedRepositoryFieldBuilder() { + if (resolvedConnectedRepositoryBuilder_ == null) { + resolvedConnectedRepositoryBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.ConnectedRepository, + com.google.cloudbuild.v1.ConnectedRepository.Builder, + com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder>( + getResolvedConnectedRepository(), getParentForChildren(), isClean()); + resolvedConnectedRepository_ = null; + } + return resolvedConnectedRepositoryBuilder_; + } + + private com.google.cloudbuild.v1.GitSource resolvedGitSource_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.GitSource, + com.google.cloudbuild.v1.GitSource.Builder, + com.google.cloudbuild.v1.GitSourceOrBuilder> + resolvedGitSourceBuilder_; + + /** + * + * + *
    +     * Output only. A copy of the build's `source.git_source`, if exists, with any
    +     * revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resolvedGitSource field is set. + */ + public boolean hasResolvedGitSource() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.git_source`, if exists, with any
    +     * revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resolvedGitSource. + */ + public com.google.cloudbuild.v1.GitSource getResolvedGitSource() { + if (resolvedGitSourceBuilder_ == null) { + return resolvedGitSource_ == null + ? com.google.cloudbuild.v1.GitSource.getDefaultInstance() + : resolvedGitSource_; + } else { + return resolvedGitSourceBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.git_source`, if exists, with any
    +     * revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResolvedGitSource(com.google.cloudbuild.v1.GitSource value) { + if (resolvedGitSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resolvedGitSource_ = value; + } else { + resolvedGitSourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.git_source`, if exists, with any
    +     * revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setResolvedGitSource( + com.google.cloudbuild.v1.GitSource.Builder builderForValue) { + if (resolvedGitSourceBuilder_ == null) { + resolvedGitSource_ = builderForValue.build(); + } else { + resolvedGitSourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.git_source`, if exists, with any
    +     * revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeResolvedGitSource(com.google.cloudbuild.v1.GitSource value) { + if (resolvedGitSourceBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && resolvedGitSource_ != null + && resolvedGitSource_ != com.google.cloudbuild.v1.GitSource.getDefaultInstance()) { + getResolvedGitSourceBuilder().mergeFrom(value); + } else { + resolvedGitSource_ = value; + } + } else { + resolvedGitSourceBuilder_.mergeFrom(value); + } + if (resolvedGitSource_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.git_source`, if exists, with any
    +     * revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearResolvedGitSource() { + bitField0_ = (bitField0_ & ~0x00000010); + resolvedGitSource_ = null; + if (resolvedGitSourceBuilder_ != null) { + resolvedGitSourceBuilder_.dispose(); + resolvedGitSourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.git_source`, if exists, with any
    +     * revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloudbuild.v1.GitSource.Builder getResolvedGitSourceBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getResolvedGitSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.git_source`, if exists, with any
    +     * revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloudbuild.v1.GitSourceOrBuilder getResolvedGitSourceOrBuilder() { + if (resolvedGitSourceBuilder_ != null) { + return resolvedGitSourceBuilder_.getMessageOrBuilder(); + } else { + return resolvedGitSource_ == null + ? com.google.cloudbuild.v1.GitSource.getDefaultInstance() + : resolvedGitSource_; + } + } + + /** + * + * + *
    +     * Output only. A copy of the build's `source.git_source`, if exists, with any
    +     * revisions resolved.
    +     * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.GitSource, + com.google.cloudbuild.v1.GitSource.Builder, + com.google.cloudbuild.v1.GitSourceOrBuilder> + getResolvedGitSourceFieldBuilder() { + if (resolvedGitSourceBuilder_ == null) { + resolvedGitSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloudbuild.v1.GitSource, + com.google.cloudbuild.v1.GitSource.Builder, + com.google.cloudbuild.v1.GitSourceOrBuilder>( + getResolvedGitSource(), getParentForChildren(), isClean()); + resolvedGitSource_ = null; + } + return resolvedGitSourceBuilder_; + } + private static final class FileHashesConverter implements com.google.protobuf.MapFieldBuilder.Converter< java.lang.String, @@ -1613,7 +2264,7 @@ public com.google.cloudbuild.v1.FileHashes build( if (fileHashes_ == null) { fileHashes_ = new com.google.protobuf.MapFieldBuilder<>(fileHashesConverter); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return fileHashes_; } @@ -1749,7 +2400,7 @@ public com.google.cloudbuild.v1.FileHashes getFileHashesOrThrow(java.lang.String } public Builder clearFileHashes() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); internalGetMutableFileHashes().clear(); return this; } @@ -1786,7 +2437,7 @@ public Builder removeFileHashes(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableFileHashes() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; return internalGetMutableFileHashes().ensureMessageMap(); } @@ -1818,7 +2469,7 @@ public Builder putFileHashes(java.lang.String key, com.google.cloudbuild.v1.File throw new NullPointerException("map value"); } internalGetMutableFileHashes().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; return this; } @@ -1851,7 +2502,7 @@ public Builder putAllFileHashes( } } internalGetMutableFileHashes().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; return this; } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceProvenanceOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceProvenanceOrBuilder.java index bfbcd436269f..9c7dd7d713dd 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceProvenanceOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/SourceProvenanceOrBuilder.java @@ -154,6 +154,98 @@ public interface SourceProvenanceOrBuilder com.google.cloudbuild.v1.StorageSourceManifestOrBuilder getResolvedStorageSourceManifestOrBuilder(); + /** + * + * + *
    +   * Output only. A copy of the build's `source.connected_repository`, if
    +   * exists, with any revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resolvedConnectedRepository field is set. + */ + boolean hasResolvedConnectedRepository(); + + /** + * + * + *
    +   * Output only. A copy of the build's `source.connected_repository`, if
    +   * exists, with any revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resolvedConnectedRepository. + */ + com.google.cloudbuild.v1.ConnectedRepository getResolvedConnectedRepository(); + + /** + * + * + *
    +   * Output only. A copy of the build's `source.connected_repository`, if
    +   * exists, with any revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.ConnectedRepository resolved_connected_repository = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloudbuild.v1.ConnectedRepositoryOrBuilder getResolvedConnectedRepositoryOrBuilder(); + + /** + * + * + *
    +   * Output only. A copy of the build's `source.git_source`, if exists, with any
    +   * revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the resolvedGitSource field is set. + */ + boolean hasResolvedGitSource(); + + /** + * + * + *
    +   * Output only. A copy of the build's `source.git_source`, if exists, with any
    +   * revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The resolvedGitSource. + */ + com.google.cloudbuild.v1.GitSource getResolvedGitSource(); + + /** + * + * + *
    +   * Output only. A copy of the build's `source.git_source`, if exists, with any
    +   * revisions resolved.
    +   * 
    + * + * + * .google.devtools.cloudbuild.v1.GitSource resolved_git_source = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloudbuild.v1.GitSourceOrBuilder getResolvedGitSourceOrBuilder(); + /** * * diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSource.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSource.java index e88457d82caa..5f51f2e161d4 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSource.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSource.java @@ -80,7 +80,7 @@ public enum SourceFetcher implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * Unspecified. Defaults to GSUTIL.
    +     * Unspecified defaults to GSUTIL.
          * 
    * * SOURCE_FETCHER_UNSPECIFIED = 0; @@ -113,7 +113,7 @@ public enum SourceFetcher implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * Unspecified. Defaults to GSUTIL.
    +     * Unspecified defaults to GSUTIL.
          * 
    * * SOURCE_FETCHER_UNSPECIFIED = 0; @@ -291,13 +291,13 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
    -   * Cloud Storage object containing the source.
    +   * Required. Cloud Storage object containing the source.
        *
        * This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
        * containing source to build.
        * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -318,13 +318,13 @@ public java.lang.String getObject() { * * *
    -   * Cloud Storage object containing the source.
    +   * Required. Cloud Storage object containing the source.
        *
        * This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
        * containing source to build.
        * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for object. */ @@ -348,11 +348,11 @@ public com.google.protobuf.ByteString getObjectBytes() { * * *
    -   * Cloud Storage generation for the object. If the generation is
    +   * Optional. Cloud Storage generation for the object. If the generation is
        * omitted, the latest generation will be used.
        * 
    * - * int64 generation = 3; + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The generation. */ @@ -368,7 +368,8 @@ public long getGeneration() { * * *
    -   * Option to specify the tool to fetch the source file for the build.
    +   * Optional. Option to specify the tool to fetch the source file for the
    +   * build.
        * 
    * * @@ -386,7 +387,8 @@ public int getSourceFetcherValue() { * * *
    -   * Option to specify the tool to fetch the source file for the build.
    +   * Optional. Option to specify the tool to fetch the source file for the
    +   * build.
        * 
    * * @@ -944,13 +946,13 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * * *
    -     * Cloud Storage object containing the source.
    +     * Required. Cloud Storage object containing the source.
          *
          * This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
          * containing source to build.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -970,13 +972,13 @@ public java.lang.String getObject() { * * *
    -     * Cloud Storage object containing the source.
    +     * Required. Cloud Storage object containing the source.
          *
          * This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
          * containing source to build.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for object. */ @@ -996,13 +998,13 @@ public com.google.protobuf.ByteString getObjectBytes() { * * *
    -     * Cloud Storage object containing the source.
    +     * Required. Cloud Storage object containing the source.
          *
          * This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
          * containing source to build.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The object to set. * @return This builder for chaining. @@ -1021,13 +1023,13 @@ public Builder setObject(java.lang.String value) { * * *
    -     * Cloud Storage object containing the source.
    +     * Required. Cloud Storage object containing the source.
          *
          * This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
          * containing source to build.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -1042,13 +1044,13 @@ public Builder clearObject() { * * *
    -     * Cloud Storage object containing the source.
    +     * Required. Cloud Storage object containing the source.
          *
          * This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
          * containing source to build.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for object to set. * @return This builder for chaining. @@ -1070,11 +1072,11 @@ public Builder setObjectBytes(com.google.protobuf.ByteString value) { * * *
    -     * Cloud Storage generation for the object. If the generation is
    +     * Optional. Cloud Storage generation for the object. If the generation is
          * omitted, the latest generation will be used.
          * 
    * - * int64 generation = 3; + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The generation. */ @@ -1087,11 +1089,11 @@ public long getGeneration() { * * *
    -     * Cloud Storage generation for the object. If the generation is
    +     * Optional. Cloud Storage generation for the object. If the generation is
          * omitted, the latest generation will be used.
          * 
    * - * int64 generation = 3; + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The generation to set. * @return This builder for chaining. @@ -1108,11 +1110,11 @@ public Builder setGeneration(long value) { * * *
    -     * Cloud Storage generation for the object. If the generation is
    +     * Optional. Cloud Storage generation for the object. If the generation is
          * omitted, the latest generation will be used.
          * 
    * - * int64 generation = 3; + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1129,7 +1131,8 @@ public Builder clearGeneration() { * * *
    -     * Option to specify the tool to fetch the source file for the build.
    +     * Optional. Option to specify the tool to fetch the source file for the
    +     * build.
          * 
    * * @@ -1147,7 +1150,8 @@ public int getSourceFetcherValue() { * * *
    -     * Option to specify the tool to fetch the source file for the build.
    +     * Optional. Option to specify the tool to fetch the source file for the
    +     * build.
          * 
    * * @@ -1168,7 +1172,8 @@ public Builder setSourceFetcherValue(int value) { * * *
    -     * Option to specify the tool to fetch the source file for the build.
    +     * Optional. Option to specify the tool to fetch the source file for the
    +     * build.
          * 
    * * @@ -1190,7 +1195,8 @@ public com.google.cloudbuild.v1.StorageSource.SourceFetcher getSourceFetcher() { * * *
    -     * Option to specify the tool to fetch the source file for the build.
    +     * Optional. Option to specify the tool to fetch the source file for the
    +     * build.
          * 
    * * @@ -1214,7 +1220,8 @@ public Builder setSourceFetcher(com.google.cloudbuild.v1.StorageSource.SourceFet * * *
    -     * Option to specify the tool to fetch the source file for the build.
    +     * Optional. Option to specify the tool to fetch the source file for the
    +     * build.
          * 
    * * diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceManifest.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceManifest.java index cd8c82da3865..05d3ee2129c9 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceManifest.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceManifest.java @@ -76,12 +76,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
    -   * Cloud Storage bucket containing the source manifest (see [Bucket
    +   * Required. Cloud Storage bucket containing the source manifest (see [Bucket
        * Name
        * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
        * 
    * - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bucket. */ @@ -102,12 +102,12 @@ public java.lang.String getBucket() { * * *
    -   * Cloud Storage bucket containing the source manifest (see [Bucket
    +   * Required. Cloud Storage bucket containing the source manifest (see [Bucket
        * Name
        * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
        * 
    * - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for bucket. */ @@ -133,12 +133,12 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
    -   * Cloud Storage object containing the source manifest.
    +   * Required. Cloud Storage object containing the source manifest.
        *
        * This object must be a JSON file.
        * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -159,12 +159,12 @@ public java.lang.String getObject() { * * *
    -   * Cloud Storage object containing the source manifest.
    +   * Required. Cloud Storage object containing the source manifest.
        *
        * This object must be a JSON file.
        * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for object. */ @@ -597,12 +597,12 @@ public Builder mergeFrom( * * *
    -     * Cloud Storage bucket containing the source manifest (see [Bucket
    +     * Required. Cloud Storage bucket containing the source manifest (see [Bucket
          * Name
          * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
          * 
    * - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bucket. */ @@ -622,12 +622,12 @@ public java.lang.String getBucket() { * * *
    -     * Cloud Storage bucket containing the source manifest (see [Bucket
    +     * Required. Cloud Storage bucket containing the source manifest (see [Bucket
          * Name
          * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
          * 
    * - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for bucket. */ @@ -647,12 +647,12 @@ public com.google.protobuf.ByteString getBucketBytes() { * * *
    -     * Cloud Storage bucket containing the source manifest (see [Bucket
    +     * Required. Cloud Storage bucket containing the source manifest (see [Bucket
          * Name
          * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
          * 
    * - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bucket to set. * @return This builder for chaining. @@ -671,12 +671,12 @@ public Builder setBucket(java.lang.String value) { * * *
    -     * Cloud Storage bucket containing the source manifest (see [Bucket
    +     * Required. Cloud Storage bucket containing the source manifest (see [Bucket
          * Name
          * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
          * 
    * - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -691,12 +691,12 @@ public Builder clearBucket() { * * *
    -     * Cloud Storage bucket containing the source manifest (see [Bucket
    +     * Required. Cloud Storage bucket containing the source manifest (see [Bucket
          * Name
          * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
          * 
    * - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for bucket to set. * @return This builder for chaining. @@ -718,12 +718,12 @@ public Builder setBucketBytes(com.google.protobuf.ByteString value) { * * *
    -     * Cloud Storage object containing the source manifest.
    +     * Required. Cloud Storage object containing the source manifest.
          *
          * This object must be a JSON file.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -743,12 +743,12 @@ public java.lang.String getObject() { * * *
    -     * Cloud Storage object containing the source manifest.
    +     * Required. Cloud Storage object containing the source manifest.
          *
          * This object must be a JSON file.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for object. */ @@ -768,12 +768,12 @@ public com.google.protobuf.ByteString getObjectBytes() { * * *
    -     * Cloud Storage object containing the source manifest.
    +     * Required. Cloud Storage object containing the source manifest.
          *
          * This object must be a JSON file.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The object to set. * @return This builder for chaining. @@ -792,12 +792,12 @@ public Builder setObject(java.lang.String value) { * * *
    -     * Cloud Storage object containing the source manifest.
    +     * Required. Cloud Storage object containing the source manifest.
          *
          * This object must be a JSON file.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -812,12 +812,12 @@ public Builder clearObject() { * * *
    -     * Cloud Storage object containing the source manifest.
    +     * Required. Cloud Storage object containing the source manifest.
          *
          * This object must be a JSON file.
          * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for object to set. * @return This builder for chaining. diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceManifestOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceManifestOrBuilder.java index 664c6f6ed08d..e0dcc6d631db 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceManifestOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceManifestOrBuilder.java @@ -28,12 +28,12 @@ public interface StorageSourceManifestOrBuilder * * *
    -   * Cloud Storage bucket containing the source manifest (see [Bucket
    +   * Required. Cloud Storage bucket containing the source manifest (see [Bucket
        * Name
        * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
        * 
    * - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bucket. */ @@ -43,12 +43,12 @@ public interface StorageSourceManifestOrBuilder * * *
    -   * Cloud Storage bucket containing the source manifest (see [Bucket
    +   * Required. Cloud Storage bucket containing the source manifest (see [Bucket
        * Name
        * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
        * 
    * - * string bucket = 1; + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for bucket. */ @@ -58,12 +58,12 @@ public interface StorageSourceManifestOrBuilder * * *
    -   * Cloud Storage object containing the source manifest.
    +   * Required. Cloud Storage object containing the source manifest.
        *
        * This object must be a JSON file.
        * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -73,12 +73,12 @@ public interface StorageSourceManifestOrBuilder * * *
    -   * Cloud Storage object containing the source manifest.
    +   * Required. Cloud Storage object containing the source manifest.
        *
        * This object must be a JSON file.
        * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for object. */ diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceOrBuilder.java index 984e9f218a8e..ed2ce1df9263 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/StorageSourceOrBuilder.java @@ -58,13 +58,13 @@ public interface StorageSourceOrBuilder * * *
    -   * Cloud Storage object containing the source.
    +   * Required. Cloud Storage object containing the source.
        *
        * This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
        * containing source to build.
        * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The object. */ @@ -74,13 +74,13 @@ public interface StorageSourceOrBuilder * * *
    -   * Cloud Storage object containing the source.
    +   * Required. Cloud Storage object containing the source.
        *
        * This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`)
        * containing source to build.
        * 
    * - * string object = 2; + * string object = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for object. */ @@ -90,11 +90,11 @@ public interface StorageSourceOrBuilder * * *
    -   * Cloud Storage generation for the object. If the generation is
    +   * Optional. Cloud Storage generation for the object. If the generation is
        * omitted, the latest generation will be used.
        * 
    * - * int64 generation = 3; + * int64 generation = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The generation. */ @@ -104,7 +104,8 @@ public interface StorageSourceOrBuilder * * *
    -   * Option to specify the tool to fetch the source file for the build.
    +   * Optional. Option to specify the tool to fetch the source file for the
    +   * build.
        * 
    * * @@ -119,7 +120,8 @@ public interface StorageSourceOrBuilder * * *
    -   * Option to specify the tool to fetch the source file for the build.
    +   * Optional. Option to specify the tool to fetch the source file for the
    +   * build.
        * 
    * * diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UpdateWorkerPoolRequest.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UpdateWorkerPoolRequest.java index f101cefacd64..a0aae90c0263 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UpdateWorkerPoolRequest.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UpdateWorkerPoolRequest.java @@ -138,10 +138,11 @@ public com.google.cloudbuild.v1.WorkerPoolOrBuilder getWorkerPoolOrBuilder() { * * *
    -   * A mask specifying which fields in `worker_pool` to update.
    +   * Optional. A mask specifying which fields in `worker_pool` to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -154,10 +155,11 @@ public boolean hasUpdateMask() { * * *
    -   * A mask specifying which fields in `worker_pool` to update.
    +   * Optional. A mask specifying which fields in `worker_pool` to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -170,10 +172,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
    -   * A mask specifying which fields in `worker_pool` to update.
    +   * Optional. A mask specifying which fields in `worker_pool` to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -867,10 +870,11 @@ public com.google.cloudbuild.v1.WorkerPoolOrBuilder getWorkerPoolOrBuilder() { * * *
    -     * A mask specifying which fields in `worker_pool` to update.
    +     * Optional. A mask specifying which fields in `worker_pool` to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -882,10 +886,11 @@ public boolean hasUpdateMask() { * * *
    -     * A mask specifying which fields in `worker_pool` to update.
    +     * Optional. A mask specifying which fields in `worker_pool` to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -903,10 +908,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
    -     * A mask specifying which fields in `worker_pool` to update.
    +     * Optional. A mask specifying which fields in `worker_pool` to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -926,10 +932,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
    -     * A mask specifying which fields in `worker_pool` to update.
    +     * Optional. A mask specifying which fields in `worker_pool` to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -946,10 +953,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
    -     * A mask specifying which fields in `worker_pool` to update.
    +     * Optional. A mask specifying which fields in `worker_pool` to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -974,10 +982,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
    -     * A mask specifying which fields in `worker_pool` to update.
    +     * Optional. A mask specifying which fields in `worker_pool` to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { bitField0_ = (bitField0_ & ~0x00000002); @@ -994,10 +1003,11 @@ public Builder clearUpdateMask() { * * *
    -     * A mask specifying which fields in `worker_pool` to update.
    +     * Optional. A mask specifying which fields in `worker_pool` to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { bitField0_ |= 0x00000002; @@ -1009,10 +1019,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
    -     * A mask specifying which fields in `worker_pool` to update.
    +     * Optional. A mask specifying which fields in `worker_pool` to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -1028,10 +1039,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
    -     * A mask specifying which fields in `worker_pool` to update.
    +     * Optional. A mask specifying which fields in `worker_pool` to update.
          * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UpdateWorkerPoolRequestOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UpdateWorkerPoolRequestOrBuilder.java index 9a55d6f1b1b3..e3c49ff288b2 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UpdateWorkerPoolRequestOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UpdateWorkerPoolRequestOrBuilder.java @@ -80,10 +80,11 @@ public interface UpdateWorkerPoolRequestOrBuilder * * *
    -   * A mask specifying which fields in `worker_pool` to update.
    +   * Optional. A mask specifying which fields in `worker_pool` to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the updateMask field is set. */ @@ -93,10 +94,11 @@ public interface UpdateWorkerPoolRequestOrBuilder * * *
    -   * A mask specifying which fields in `worker_pool` to update.
    +   * Optional. A mask specifying which fields in `worker_pool` to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The updateMask. */ @@ -106,10 +108,11 @@ public interface UpdateWorkerPoolRequestOrBuilder * * *
    -   * A mask specifying which fields in `worker_pool` to update.
    +   * Optional. A mask specifying which fields in `worker_pool` to update.
        * 
    * - * .google.protobuf.FieldMask update_mask = 2; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedGoModule.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedGoModule.java index 472d605a9cee..70ae03d875e1 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedGoModule.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedGoModule.java @@ -42,6 +42,7 @@ private UploadedGoModule(com.google.protobuf.GeneratedMessageV3.Builder build private UploadedGoModule() { uri_ = ""; + artifactRegistryPackage_ = ""; } @java.lang.Override @@ -231,6 +232,59 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { : pushTiming_; } + public static final int ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + @java.lang.Override + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -254,6 +308,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, artifactRegistryPackage_); + } getUnknownFields().writeTo(output); } @@ -272,6 +329,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, artifactRegistryPackage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -297,6 +357,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPushTiming()) { if (!getPushTiming().equals(other.getPushTiming())) return false; } + if (!getArtifactRegistryPackage().equals(other.getArtifactRegistryPackage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -318,6 +379,8 @@ public int hashCode() { hash = (37 * hash) + PUSH_TIMING_FIELD_NUMBER; hash = (53 * hash) + getPushTiming().hashCode(); } + hash = (37 * hash) + ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + getArtifactRegistryPackage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -480,6 +543,7 @@ public Builder clear() { pushTimingBuilder_.dispose(); pushTimingBuilder_ = null; } + artifactRegistryPackage_ = ""; return this; } @@ -528,6 +592,9 @@ private void buildPartial0(com.google.cloudbuild.v1.UploadedGoModule result) { result.pushTiming_ = pushTimingBuilder_ == null ? pushTiming_ : pushTimingBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.artifactRegistryPackage_ = artifactRegistryPackage_; + } result.bitField0_ |= to_bitField0_; } @@ -587,6 +654,11 @@ public Builder mergeFrom(com.google.cloudbuild.v1.UploadedGoModule other) { if (other.hasPushTiming()) { mergePushTiming(other.getPushTiming()); } + if (!other.getArtifactRegistryPackage().isEmpty()) { + artifactRegistryPackage_ = other.artifactRegistryPackage_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -631,6 +703,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + artifactRegistryPackage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1167,6 +1245,122 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { return pushTimingBuilder_; } + private java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactRegistryPackage. + */ + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for artifactRegistryPackage. + */ + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArtifactRegistryPackage() { + artifactRegistryPackage_ = getDefaultInstance().getArtifactRegistryPackage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedGoModuleOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedGoModuleOrBuilder.java index 74d0af33dcea..8a85d75a0e4d 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedGoModuleOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedGoModuleOrBuilder.java @@ -129,4 +129,30 @@ public interface UploadedGoModuleOrBuilder *
    */ com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + java.lang.String getArtifactRegistryPackage(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + com.google.protobuf.ByteString getArtifactRegistryPackageBytes(); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifact.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifact.java index 550b6b6337ed..44a91a5362a4 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifact.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifact.java @@ -41,6 +41,7 @@ private UploadedMavenArtifact(com.google.protobuf.GeneratedMessageV3.Builder private UploadedMavenArtifact() { uri_ = ""; + artifactRegistryPackage_ = ""; } @java.lang.Override @@ -230,6 +231,59 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { : pushTiming_; } + public static final int ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + @java.lang.Override + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -253,6 +307,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, artifactRegistryPackage_); + } getUnknownFields().writeTo(output); } @@ -271,6 +328,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, artifactRegistryPackage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -296,6 +356,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPushTiming()) { if (!getPushTiming().equals(other.getPushTiming())) return false; } + if (!getArtifactRegistryPackage().equals(other.getArtifactRegistryPackage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -317,6 +378,8 @@ public int hashCode() { hash = (37 * hash) + PUSH_TIMING_FIELD_NUMBER; hash = (53 * hash) + getPushTiming().hashCode(); } + hash = (37 * hash) + ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + getArtifactRegistryPackage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -478,6 +541,7 @@ public Builder clear() { pushTimingBuilder_.dispose(); pushTimingBuilder_ = null; } + artifactRegistryPackage_ = ""; return this; } @@ -526,6 +590,9 @@ private void buildPartial0(com.google.cloudbuild.v1.UploadedMavenArtifact result result.pushTiming_ = pushTimingBuilder_ == null ? pushTiming_ : pushTimingBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.artifactRegistryPackage_ = artifactRegistryPackage_; + } result.bitField0_ |= to_bitField0_; } @@ -585,6 +652,11 @@ public Builder mergeFrom(com.google.cloudbuild.v1.UploadedMavenArtifact other) { if (other.hasPushTiming()) { mergePushTiming(other.getPushTiming()); } + if (!other.getArtifactRegistryPackage().isEmpty()) { + artifactRegistryPackage_ = other.artifactRegistryPackage_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -629,6 +701,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + artifactRegistryPackage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1165,6 +1243,122 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { return pushTimingBuilder_; } + private java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactRegistryPackage. + */ + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for artifactRegistryPackage. + */ + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArtifactRegistryPackage() { + artifactRegistryPackage_ = getDefaultInstance().getArtifactRegistryPackage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifactOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifactOrBuilder.java index a74165f35a75..72f472c380a9 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifactOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedMavenArtifactOrBuilder.java @@ -129,4 +129,30 @@ public interface UploadedMavenArtifactOrBuilder *
    */ com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + java.lang.String getArtifactRegistryPackage(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + com.google.protobuf.ByteString getArtifactRegistryPackageBytes(); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedNpmPackage.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedNpmPackage.java index cdc14cca3d3c..971c38cfe2e2 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedNpmPackage.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedNpmPackage.java @@ -42,6 +42,7 @@ private UploadedNpmPackage(com.google.protobuf.GeneratedMessageV3.Builder bui private UploadedNpmPackage() { uri_ = ""; + artifactRegistryPackage_ = ""; } @java.lang.Override @@ -231,6 +232,59 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { : pushTiming_; } + public static final int ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + @java.lang.Override + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -254,6 +308,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, artifactRegistryPackage_); + } getUnknownFields().writeTo(output); } @@ -272,6 +329,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, artifactRegistryPackage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -297,6 +357,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPushTiming()) { if (!getPushTiming().equals(other.getPushTiming())) return false; } + if (!getArtifactRegistryPackage().equals(other.getArtifactRegistryPackage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -318,6 +379,8 @@ public int hashCode() { hash = (37 * hash) + PUSH_TIMING_FIELD_NUMBER; hash = (53 * hash) + getPushTiming().hashCode(); } + hash = (37 * hash) + ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + getArtifactRegistryPackage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -480,6 +543,7 @@ public Builder clear() { pushTimingBuilder_.dispose(); pushTimingBuilder_ = null; } + artifactRegistryPackage_ = ""; return this; } @@ -528,6 +592,9 @@ private void buildPartial0(com.google.cloudbuild.v1.UploadedNpmPackage result) { result.pushTiming_ = pushTimingBuilder_ == null ? pushTiming_ : pushTimingBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.artifactRegistryPackage_ = artifactRegistryPackage_; + } result.bitField0_ |= to_bitField0_; } @@ -587,6 +654,11 @@ public Builder mergeFrom(com.google.cloudbuild.v1.UploadedNpmPackage other) { if (other.hasPushTiming()) { mergePushTiming(other.getPushTiming()); } + if (!other.getArtifactRegistryPackage().isEmpty()) { + artifactRegistryPackage_ = other.artifactRegistryPackage_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -631,6 +703,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 58: + { + artifactRegistryPackage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1167,6 +1245,122 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { return pushTimingBuilder_; } + private java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactRegistryPackage. + */ + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for artifactRegistryPackage. + */ + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArtifactRegistryPackage() { + artifactRegistryPackage_ = getDefaultInstance().getArtifactRegistryPackage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedNpmPackageOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedNpmPackageOrBuilder.java index a20c2f97baf8..1692277eca12 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedNpmPackageOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedNpmPackageOrBuilder.java @@ -129,4 +129,30 @@ public interface UploadedNpmPackageOrBuilder *
    */ com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + java.lang.String getArtifactRegistryPackage(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + com.google.protobuf.ByteString getArtifactRegistryPackageBytes(); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackage.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackage.java index 181b66f1e296..e390198c7b69 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackage.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackage.java @@ -41,6 +41,7 @@ private UploadedPythonPackage(com.google.protobuf.GeneratedMessageV3.Builder private UploadedPythonPackage() { uri_ = ""; + artifactRegistryPackage_ = ""; } @java.lang.Override @@ -230,6 +231,59 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { : pushTiming_; } + public static final int ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + @java.lang.Override + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -253,6 +307,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, artifactRegistryPackage_); + } getUnknownFields().writeTo(output); } @@ -271,6 +328,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPushTiming()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactRegistryPackage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, artifactRegistryPackage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -296,6 +356,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPushTiming()) { if (!getPushTiming().equals(other.getPushTiming())) return false; } + if (!getArtifactRegistryPackage().equals(other.getArtifactRegistryPackage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -317,6 +378,8 @@ public int hashCode() { hash = (37 * hash) + PUSH_TIMING_FIELD_NUMBER; hash = (53 * hash) + getPushTiming().hashCode(); } + hash = (37 * hash) + ARTIFACT_REGISTRY_PACKAGE_FIELD_NUMBER; + hash = (53 * hash) + getArtifactRegistryPackage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -478,6 +541,7 @@ public Builder clear() { pushTimingBuilder_.dispose(); pushTimingBuilder_ = null; } + artifactRegistryPackage_ = ""; return this; } @@ -526,6 +590,9 @@ private void buildPartial0(com.google.cloudbuild.v1.UploadedPythonPackage result result.pushTiming_ = pushTimingBuilder_ == null ? pushTiming_ : pushTimingBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.artifactRegistryPackage_ = artifactRegistryPackage_; + } result.bitField0_ |= to_bitField0_; } @@ -585,6 +652,11 @@ public Builder mergeFrom(com.google.cloudbuild.v1.UploadedPythonPackage other) { if (other.hasPushTiming()) { mergePushTiming(other.getPushTiming()); } + if (!other.getArtifactRegistryPackage().isEmpty()) { + artifactRegistryPackage_ = other.artifactRegistryPackage_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -629,6 +701,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + artifactRegistryPackage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1165,6 +1243,122 @@ public com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder() { return pushTimingBuilder_; } + private java.lang.Object artifactRegistryPackage_ = ""; + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The artifactRegistryPackage. + */ + public java.lang.String getArtifactRegistryPackage() { + java.lang.Object ref = artifactRegistryPackage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactRegistryPackage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for artifactRegistryPackage. + */ + public com.google.protobuf.ByteString getArtifactRegistryPackageBytes() { + java.lang.Object ref = artifactRegistryPackage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactRegistryPackage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearArtifactRegistryPackage() { + artifactRegistryPackage_ = getDefaultInstance().getArtifactRegistryPackage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output only. Path to the artifact in Artifact Registry.
    +     * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for artifactRegistryPackage to set. + * @return This builder for chaining. + */ + public Builder setArtifactRegistryPackageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactRegistryPackage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackageOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackageOrBuilder.java index cb8a355b12c6..be4e6c5ea159 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackageOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/UploadedPythonPackageOrBuilder.java @@ -129,4 +129,30 @@ public interface UploadedPythonPackageOrBuilder *
    */ com.google.cloudbuild.v1.TimeSpanOrBuilder getPushTimingOrBuilder(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The artifactRegistryPackage. + */ + java.lang.String getArtifactRegistryPackage(); + + /** + * + * + *
    +   * Output only. Path to the artifact in Artifact Registry.
    +   * 
    + * + * string artifact_registry_package = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for artifactRegistryPackage. + */ + com.google.protobuf.ByteString getArtifactRegistryPackageBytes(); } diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPool.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPool.java index e5e15029150d..9bb95796d3f5 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPool.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPool.java @@ -861,7 +861,7 @@ public com.google.cloudbuild.v1.WorkerPool.State getState() { * * *
    -   * Legacy Private Pool configuration.
    +   * Private Pool configuration.
        * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -877,7 +877,7 @@ public boolean hasPrivatePoolV1Config() { * * *
    -   * Legacy Private Pool configuration.
    +   * Private Pool configuration.
        * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -896,7 +896,7 @@ public com.google.cloudbuild.v1.PrivatePoolV1Config getPrivatePoolV1Config() { * * *
    -   * Legacy Private Pool configuration.
    +   * Private Pool configuration.
        * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -2966,7 +2966,7 @@ public Builder clearState() { * * *
    -     * Legacy Private Pool configuration.
    +     * Private Pool configuration.
          * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -2982,7 +2982,7 @@ public boolean hasPrivatePoolV1Config() { * * *
    -     * Legacy Private Pool configuration.
    +     * Private Pool configuration.
          * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -3008,7 +3008,7 @@ public com.google.cloudbuild.v1.PrivatePoolV1Config getPrivatePoolV1Config() { * * *
    -     * Legacy Private Pool configuration.
    +     * Private Pool configuration.
          * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -3031,7 +3031,7 @@ public Builder setPrivatePoolV1Config(com.google.cloudbuild.v1.PrivatePoolV1Conf * * *
    -     * Legacy Private Pool configuration.
    +     * Private Pool configuration.
          * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -3052,7 +3052,7 @@ public Builder setPrivatePoolV1Config( * * *
    -     * Legacy Private Pool configuration.
    +     * Private Pool configuration.
          * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -3085,7 +3085,7 @@ public Builder mergePrivatePoolV1Config(com.google.cloudbuild.v1.PrivatePoolV1Co * * *
    -     * Legacy Private Pool configuration.
    +     * Private Pool configuration.
          * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -3111,7 +3111,7 @@ public Builder clearPrivatePoolV1Config() { * * *
    -     * Legacy Private Pool configuration.
    +     * Private Pool configuration.
          * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -3124,7 +3124,7 @@ public com.google.cloudbuild.v1.PrivatePoolV1Config.Builder getPrivatePoolV1Conf * * *
    -     * Legacy Private Pool configuration.
    +     * Private Pool configuration.
          * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -3145,7 +3145,7 @@ public com.google.cloudbuild.v1.PrivatePoolV1ConfigOrBuilder getPrivatePoolV1Con * * *
    -     * Legacy Private Pool configuration.
    +     * Private Pool configuration.
          * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPoolOrBuilder.java b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPoolOrBuilder.java index 5cf7edbe1abc..04011db5a916 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPoolOrBuilder.java +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/java/com/google/cloudbuild/v1/WorkerPoolOrBuilder.java @@ -343,7 +343,7 @@ java.lang.String getAnnotationsOrDefault( * * *
    -   * Legacy Private Pool configuration.
    +   * Private Pool configuration.
        * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -356,7 +356,7 @@ java.lang.String getAnnotationsOrDefault( * * *
    -   * Legacy Private Pool configuration.
    +   * Private Pool configuration.
        * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; @@ -369,7 +369,7 @@ java.lang.String getAnnotationsOrDefault( * * *
    -   * Legacy Private Pool configuration.
    +   * Private Pool configuration.
        * 
    * * .google.devtools.cloudbuild.v1.PrivatePoolV1Config private_pool_v1_config = 12; diff --git a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto index 6ff7a7267185..72a7cfa562a4 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto +++ b/java-cloudbuild/proto-google-cloud-build-v1/src/main/proto/google/devtools/cloudbuild/v1/cloudbuild.proto @@ -114,6 +114,7 @@ service CloudBuild { } }; option (google.api.method_signature) = "project_id,build"; + option (google.api.method_signature) = "parent"; option (google.longrunning.operation_info) = { response_type: "Build" metadata_type: "BuildOperationMetadata" @@ -136,6 +137,7 @@ service CloudBuild { } }; option (google.api.method_signature) = "project_id,id"; + option (google.api.method_signature) = "name"; } // Lists previously requested builds. @@ -173,6 +175,7 @@ service CloudBuild { } }; option (google.api.method_signature) = "project_id,id"; + option (google.api.method_signature) = "name"; } // Creates a new build based on the specified build. @@ -218,6 +221,7 @@ service CloudBuild { } }; option (google.api.method_signature) = "project_id,id"; + option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { response_type: "Build" metadata_type: "BuildOperationMetadata" @@ -226,8 +230,8 @@ service CloudBuild { // Approves or rejects a pending build. // - // If approved, the returned LRO will be analogous to the LRO returned from - // a CreateBuild call. + // If approved, the returned long-running operation (LRO) will be analogous to + // the LRO returned from a CreateBuild call. // // If rejected, the returned LRO will be immediately done. rpc ApproveBuild(ApproveBuildRequest) returns (google.longrunning.Operation) { @@ -253,8 +257,6 @@ service CloudBuild { } // Creates a new `BuildTrigger`. - // - // This API is experimental. rpc CreateBuildTrigger(CreateBuildTriggerRequest) returns (BuildTrigger) { option (google.api.http) = { post: "/v1/projects/{project_id}/triggers" @@ -271,11 +273,10 @@ service CloudBuild { } }; option (google.api.method_signature) = "project_id,trigger"; + option (google.api.method_signature) = "parent"; } // Returns information about a `BuildTrigger`. - // - // This API is experimental. rpc GetBuildTrigger(GetBuildTriggerRequest) returns (BuildTrigger) { option (google.api.http) = { get: "/v1/projects/{project_id}/triggers/{trigger_id}" @@ -290,11 +291,10 @@ service CloudBuild { } }; option (google.api.method_signature) = "project_id,trigger_id"; + option (google.api.method_signature) = "name"; } // Lists existing `BuildTrigger`s. - // - // This API is experimental. rpc ListBuildTriggers(ListBuildTriggersRequest) returns (ListBuildTriggersResponse) { option (google.api.http) = { @@ -313,8 +313,6 @@ service CloudBuild { } // Deletes a `BuildTrigger` by its project ID and trigger ID. - // - // This API is experimental. rpc DeleteBuildTrigger(DeleteBuildTriggerRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -330,11 +328,10 @@ service CloudBuild { } }; option (google.api.method_signature) = "project_id,trigger_id"; + option (google.api.method_signature) = "name"; } // Updates a `BuildTrigger` by its project ID and trigger ID. - // - // This API is experimental. rpc UpdateBuildTrigger(UpdateBuildTriggerRequest) returns (BuildTrigger) { option (google.api.http) = { patch: "/v1/projects/{project_id}/triggers/{trigger_id}" @@ -484,6 +481,64 @@ service CloudBuild { }; option (google.api.method_signature) = "parent"; } + + // Returns the `DefaultServiceAccount` used by the project. + rpc GetDefaultServiceAccount(GetDefaultServiceAccountRequest) + returns (DefaultServiceAccount) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/defaultServiceAccount}" + }; + option (google.api.routing) = { + routing_parameters { + field: "name" + path_template: "projects/*/locations/{location=*}/defaultServiceAccount" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// Returns the default service account that will be used for `Builds`. +message GetDefaultServiceAccountRequest { + // Required. The name of the `DefaultServiceAccount` to retrieve. + // Format: + // `projects/{project}/locations/{location}/defaultServiceAccount` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/DefaultServiceAccount" + } + ]; +} + +// The default service account used for `Builds`. +message DefaultServiceAccount { + option (google.api.resource) = { + type: "cloudbuild.googleapis.com/DefaultServiceAccount" + pattern: "projects/{project}/locations/{location}/defaultServiceAccount" + singular: "defaultServiceAccount" + }; + + // Identifier. Format: + // `projects/{project}/locations/{location}/defaultServiceAccount + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The email address of the service account identity that will be + // used for a build by default. + // + // This is returned in the format + // `projects/{project}/serviceAccounts/{service_account}` where + // `{service_account}` could be the legacy Cloud Build SA, in the format + // [PROJECT_NUMBER]@cloudbuild.gserviceaccount.com or the Compute SA, in the + // format [PROJECT_NUMBER]-compute@developer.gserviceaccount.com. + // + // If no service account will be used by default, this will be empty. + string service_account_email = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "iam.googleapis.com/ServiceAccount" + } + ]; } // Specifies a build to retry. @@ -522,24 +577,9 @@ message RunBuildTriggerRequest { // Location of the source in an archive file in Cloud Storage. message StorageSource { - // Cloud Storage bucket containing the source (see - // [Bucket Name - // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). - string bucket = 1; - - // Cloud Storage object containing the source. - // - // This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) - // containing source to build. - string object = 2; - - // Cloud Storage generation for the object. If the generation is - // omitted, the latest generation will be used. - int64 generation = 3; - // Specifies the tool to fetch the source file for the build. enum SourceFetcher { - // Unspecified. Defaults to GSUTIL. + // Unspecified defaults to GSUTIL. SOURCE_FETCHER_UNSPECIFIED = 0; // Use the "gsutil" tool to download the source file. @@ -549,26 +589,43 @@ message StorageSource { GCS_FETCHER = 2; } - // Option to specify the tool to fetch the source file for the build. + // Cloud Storage bucket containing the source (see + // [Bucket Name + // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). + string bucket = 1; + + // Required. Cloud Storage object containing the source. + // + // This object must be a zipped (`.zip`) or gzipped archive file (`.tar.gz`) + // containing source to build. + string object = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Cloud Storage generation for the object. If the generation is + // omitted, the latest generation will be used. + int64 generation = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Option to specify the tool to fetch the source file for the + // build. SourceFetcher source_fetcher = 5 [(google.api.field_behavior) = OPTIONAL]; } // Location of the source in any accessible Git repository. message GitSource { - // Location of the Git repo to build. + // Required. Location of the Git repo to build. // // This will be used as a `git remote`, see // https://git-scm.com/docs/git-remote. - string url = 1; + string url = 1 [(google.api.field_behavior) = REQUIRED]; - // Directory, relative to the source root, in which to run the build. + // Optional. Directory, relative to the source root, in which to run the + // build. // // This must be a relative path. If a step's `dir` is specified and is an // absolute path, this value is ignored for that step's execution. - string dir = 5; + string dir = 5 [(google.api.field_behavior) = OPTIONAL]; - // The revision to fetch from the Git repository such as a branch, a tag, a - // commit SHA, or any Git ref. + // Optional. The revision to fetch from the Git repository such as a branch, a + // tag, a commit SHA, or any Git ref. // // Cloud Build uses `git fetch` to fetch the revision from the Git // repository; therefore make sure that the string you provide for `revision` @@ -576,17 +633,17 @@ message GitSource { // `git fetch`, see // https://git-scm.com/docs/gitrevisions#_specifying_revisions. For // information on `git fetch`, see https://git-scm.com/docs/git-fetch. - string revision = 6; + string revision = 6 [(google.api.field_behavior) = OPTIONAL]; } // Location of the source in a Google Cloud Source Repository. message RepoSource { - // ID of the project that owns the Cloud Source Repository. If omitted, the - // project ID requesting the build is assumed. - string project_id = 1; + // Optional. ID of the project that owns the Cloud Source Repository. If + // omitted, the project ID requesting the build is assumed. + string project_id = 1 [(google.api.field_behavior) = OPTIONAL]; - // Name of the Cloud Source Repository. - string repo_name = 2; + // Required. Name of the Cloud Source Repository. + string repo_name = 2 [(google.api.field_behavior) = REQUIRED]; // A revision within the Cloud Source Repository must be specified in // one of these ways. @@ -607,40 +664,62 @@ message RepoSource { string commit_sha = 5; } - // Directory, relative to the source root, in which to run the build. + // Optional. Directory, relative to the source root, in which to run the + // build. // // This must be a relative path. If a step's `dir` is specified and is an // absolute path, this value is ignored for that step's execution. - string dir = 7; + string dir = 7 [(google.api.field_behavior) = OPTIONAL]; - // Only trigger a build if the revision regex does NOT match the revision - // regex. - bool invert_regex = 8; + // Optional. Only trigger a build if the revision regex does NOT match the + // revision regex. + bool invert_regex = 8 [(google.api.field_behavior) = OPTIONAL]; - // Substitutions to use in a triggered build. + // Optional. Substitutions to use in a triggered build. // Should only be used with RunBuildTrigger - map substitutions = 9; + map substitutions = 9 + [(google.api.field_behavior) = OPTIONAL]; } // Location of the source manifest in Cloud Storage. // This feature is in Preview; see description // [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). message StorageSourceManifest { - // Cloud Storage bucket containing the source manifest (see [Bucket + // Required. Cloud Storage bucket containing the source manifest (see [Bucket // Name // Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)). - string bucket = 1; + string bucket = 1 [(google.api.field_behavior) = REQUIRED]; - // Cloud Storage object containing the source manifest. + // Required. Cloud Storage object containing the source manifest. // // This object must be a JSON file. - string object = 2; + string object = 2 [(google.api.field_behavior) = REQUIRED]; // Cloud Storage generation for the object. If the generation is // omitted, the latest generation will be used. int64 generation = 3; } +// Location of the source in a 2nd-gen Google Cloud Build repository resource. +message ConnectedRepository { + // Required. Name of the Google Cloud Build repository, formatted as + // `projects/*/locations/*/connections/*/repositories/*`. + string repository = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/Repository" + } + ]; + + // Optional. Directory, relative to the source root, in which to run the + // build. + string dir = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The revision to fetch from the Git repository such as a branch, a + // tag, a commit SHA, or any Git ref. + string revision = 3 [(google.api.field_behavior) = REQUIRED]; +} + // Location of the source in a supported storage service. message Source { // Location of source. @@ -659,6 +738,11 @@ message Source { // This feature is in Preview; see description // [here](https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher). StorageSourceManifest storage_source_manifest = 8; + + // Optional. If provided, get the source from this 2nd-gen Google Cloud + // Build repository resource. + ConnectedRepository connected_repository = 9 + [(google.api.field_behavior) = OPTIONAL]; } } @@ -673,6 +757,10 @@ message BuiltImage { // Output only. Stores timing information for pushing the specified image. TimeSpan push_timing = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Path to the artifact in Artifact Registry. + string artifact_registry_package = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Artifact uploaded using the PythonPackage directive. @@ -685,6 +773,10 @@ message UploadedPythonPackage { // Output only. Stores timing information for pushing the specified artifact. TimeSpan push_timing = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Path to the artifact in Artifact Registry. + string artifact_registry_package = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A Maven artifact uploaded using the MavenArtifact directive. @@ -697,6 +789,10 @@ message UploadedMavenArtifact { // Output only. Stores timing information for pushing the specified artifact. TimeSpan push_timing = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Path to the artifact in Artifact Registry. + string artifact_registry_package = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A Go module artifact uploaded to Artifact Registry using the GoModule @@ -710,6 +806,10 @@ message UploadedGoModule { // Output only. Stores timing information for pushing the specified artifact. TimeSpan push_timing = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Path to the artifact in Artifact Registry. + string artifact_registry_package = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // An npm package uploaded to Artifact Registry using the NpmPackage @@ -723,6 +823,10 @@ message UploadedNpmPackage { // Output only. Stores timing information for pushing the specified artifact. TimeSpan push_timing = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Path to the artifact in Artifact Registry. + string artifact_registry_package = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // A step in the build pipeline. @@ -1054,8 +1158,8 @@ message Build { // Output only. Customer-readable message about the current status. string status_detail = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The location of the source files to build. - Source source = 3; + // Optional. The location of the source files to build. + Source source = 3 [(google.api.field_behavior) = OPTIONAL]; // Required. The operations to be performed on the workspace. repeated BuildStep steps = 11; @@ -1216,8 +1320,7 @@ message Dependency { // Location of the Git repository. string url = 1; - // The Developer Connect Git repository link or the url that matches a - // repository link in the current project, formatted as + // The Developer Connect Git repository link formatted as // `projects/*/locations/*/connections/*/gitRepositoryLink/*` string developer_connect = 2 [(google.api.resource_reference) = { type: "developerconnect.googleapis.com/GitRepositoryLink" @@ -1285,13 +1388,13 @@ message Artifacts { // Artifact Registry with this location as a prefix. string repository = 1; - // Path to an artifact in the build's workspace to be uploaded to + // Optional. Path to an artifact in the build's workspace to be uploaded to // Artifact Registry. // This can be either an absolute path, // e.g. /workspace/my-app/target/my-app-1.0.SNAPSHOT.jar // or a relative path from /workspace, // e.g. my-app/target/my-app-1.0.SNAPSHOT.jar. - string path = 2; + string path = 2 [(google.api.field_behavior) = OPTIONAL]; // Maven `artifactId` value used when uploading the artifact to Artifact // Registry. @@ -1367,9 +1470,11 @@ message Artifacts { // uploaded to Artifact Registry with this location as a prefix. string repository = 1; - // Path to the package.json. + // Optional. Path to the package.json. // e.g. workspace/path/to/package - string package_path = 2; + // + // Only one of `archive` or `package_path` can be specified. + string package_path = 2 [(google.api.field_behavior) = OPTIONAL]; } // A list of images to be pushed upon the successful completion of all build @@ -1462,6 +1567,16 @@ message SourceProvenance { // This feature is in Preview. StorageSourceManifest resolved_storage_source_manifest = 9; + // Output only. A copy of the build's `source.connected_repository`, if + // exists, with any revisions resolved. + ConnectedRepository resolved_connected_repository = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A copy of the build's `source.git_source`, if exists, with any + // revisions resolved. + GitSource resolved_git_source = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Hash(es) of the build source, which can be used to verify that // the original source integrity was maintained in the build. Note that // `FileHashes` will only be populated if `BuildOptions` has requested a @@ -2075,9 +2190,10 @@ message PubsubConfig { } ]; - // The name of the topic from which this subscription is receiving messages. - // Format is `projects/{project}/topics/{topic}`. + // Optional. The name of the topic from which this subscription is receiving + // messages. Format is `projects/{project}/topics/{topic}`. string topic = 2 [ + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "pubsub.googleapis.com/Topic" } ]; @@ -2126,14 +2242,14 @@ message WebhookConfig { // Requests. message PullRequestFilter { // Controls whether or not a `/gcbrun` comment is required from a user with - // repository write permission or above in order to - // trigger Build runs for pull requests. Pull Request update events differ - // between repo types. - // Check repo specific guides + // repository write permission or above in order to + // trigger Build runs for pull requests. Pull Request update events differ + // between repo types. + // Check repo specific guides // ([GitHub](https://cloud.google.com/build/docs/automating-builds/github/build-repos-from-github-enterprise#creating_a_github_enterprise_trigger), // [Bitbucket](https://cloud.google.com/build/docs/automating-builds/bitbucket/build-repos-from-bitbucket-server#creating_a_bitbucket_server_trigger), // [GitLab](https://cloud.google.com/build/docs/automating-builds/gitlab/build-repos-from-gitlab#creating_a_gitlab_trigger) - // for details. + // for details. enum CommentControl { // Do not require `/gcbrun` comments from a user with repository write // permission or above on pull requests before builds are triggered. @@ -2532,10 +2648,10 @@ message GitHubEnterpriseConfig { pattern: "projects/{project}/locations/{location}/githubEnterpriseConfigs/{config}" }; - // Optional. The full resource name for the GitHubEnterpriseConfig + // The full resource name for the GitHubEnterpriseConfig // For example: // "projects/{$project_id}/locations/{$location_id}/githubEnterpriseConfigs/{$config_id}" - string name = 7 [(google.api.field_behavior) = OPTIONAL]; + string name = 7; // The URL of the github enterprise host the configuration is for. string host_url = 3; @@ -2567,11 +2683,11 @@ message GitHubEnterpriseConfig { (google.api.resource_reference) = { type: "compute.googleapis.com/Network" } ]; - // Names of secrets in Secret Manager. - GitHubEnterpriseSecrets secrets = 10; + // Optional. Names of secrets in Secret Manager. + GitHubEnterpriseSecrets secrets = 10 [(google.api.field_behavior) = OPTIONAL]; - // Name to display for this config. - string display_name = 11; + // Optional. Name to display for this config. + string display_name = 11 [(google.api.field_behavior) = OPTIONAL]; // Optional. SSL certificate to use for requests to GitHub Enterprise. string ssl_ca = 12 [(google.api.field_behavior) = OPTIONAL]; @@ -2683,7 +2799,7 @@ message WorkerPool { // Configuration for the `WorkerPool`. oneof config { - // Legacy Private Pool configuration. + // Private Pool configuration. PrivatePoolV1Config private_pool_v1_config = 12; } @@ -2888,8 +3004,9 @@ message UpdateWorkerPoolRequest { // Format: `projects/{project}/locations/{location}/workerPools/{workerPool}`. WorkerPool worker_pool = 1 [(google.api.field_behavior) = REQUIRED]; - // A mask specifying which fields in `worker_pool` to update. - google.protobuf.FieldMask update_mask = 2; + // Optional. A mask specifying which fields in `worker_pool` to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; // If set, validate the request and preview the response, but do not actually // post it. diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/cancelbuild/SyncCancelBuildBuildname.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/cancelbuild/SyncCancelBuildBuildname.java new file mode 100644 index 000000000000..61da7d842457 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/cancelbuild/SyncCancelBuildBuildname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_CancelBuild_Buildname_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.BuildName; + +public class SyncCancelBuildBuildname { + + public static void main(String[] args) throws Exception { + syncCancelBuildBuildname(); + } + + public static void syncCancelBuildBuildname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + Build response = cloudBuildClient.cancelBuild(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_CancelBuild_Buildname_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/cancelbuild/SyncCancelBuildString.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/cancelbuild/SyncCancelBuildString.java new file mode 100644 index 000000000000..17d55b42c050 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/cancelbuild/SyncCancelBuildString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_CancelBuild_String_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.BuildName; + +public class SyncCancelBuildString { + + public static void main(String[] args) throws Exception { + syncCancelBuildString(); + } + + public static void syncCancelBuildString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + String name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString(); + Build response = cloudBuildClient.cancelBuild(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_CancelBuild_String_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/AsyncCreateBuild.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/AsyncCreateBuild.java index 2023a7c532fd..5c821a86f38e 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/AsyncCreateBuild.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/AsyncCreateBuild.java @@ -21,7 +21,7 @@ import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; import com.google.cloudbuild.v1.Build; import com.google.cloudbuild.v1.CreateBuildRequest; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; import com.google.longrunning.Operation; public class AsyncCreateBuild { @@ -39,7 +39,7 @@ public static void asyncCreateBuild() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { CreateBuildRequest request = CreateBuildRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setBuild(Build.newBuilder().build()) .build(); diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/AsyncCreateBuildLRO.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/AsyncCreateBuildLRO.java index 8168734809e0..a493a7ab6b1d 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/AsyncCreateBuildLRO.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/AsyncCreateBuildLRO.java @@ -22,7 +22,7 @@ import com.google.cloudbuild.v1.Build; import com.google.cloudbuild.v1.BuildOperationMetadata; import com.google.cloudbuild.v1.CreateBuildRequest; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; public class AsyncCreateBuildLRO { @@ -39,7 +39,7 @@ public static void asyncCreateBuildLRO() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { CreateBuildRequest request = CreateBuildRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setBuild(Build.newBuilder().build()) .build(); diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuild.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuild.java index 0ab87639681a..657cdfc75b2a 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuild.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuild.java @@ -20,7 +20,7 @@ import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; import com.google.cloudbuild.v1.Build; import com.google.cloudbuild.v1.CreateBuildRequest; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; public class SyncCreateBuild { @@ -37,7 +37,7 @@ public static void syncCreateBuild() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { CreateBuildRequest request = CreateBuildRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setBuild(Build.newBuilder().build()) .build(); diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuildLocationname.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuildLocationname.java new file mode 100644 index 000000000000..5ae7c8b78b28 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuildLocationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_CreateBuild_Locationname_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.LocationName; + +public class SyncCreateBuildLocationname { + + public static void main(String[] args) throws Exception { + syncCreateBuildLocationname(); + } + + public static void syncCreateBuildLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Build response = cloudBuildClient.createBuildAsync(parent).get(); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_CreateBuild_Locationname_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuildProjectname.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuildProjectname.java new file mode 100644 index 000000000000..2c9303b82ffe --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuildProjectname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_CreateBuild_Projectname_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.ProjectName; + +public class SyncCreateBuildProjectname { + + public static void main(String[] args) throws Exception { + syncCreateBuildProjectname(); + } + + public static void syncCreateBuildProjectname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Build response = cloudBuildClient.createBuildAsync(parent).get(); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_CreateBuild_Projectname_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuildString.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuildString.java new file mode 100644 index 000000000000..74592025adce --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuild/SyncCreateBuildString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_CreateBuild_String_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.ProjectName; + +public class SyncCreateBuildString { + + public static void main(String[] args) throws Exception { + syncCreateBuildString(); + } + + public static void syncCreateBuildString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + Build response = cloudBuildClient.createBuildAsync(parent).get(); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_CreateBuild_String_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/AsyncCreateBuildTrigger.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/AsyncCreateBuildTrigger.java index 0fddcda30df7..b38aa4161560 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/AsyncCreateBuildTrigger.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/AsyncCreateBuildTrigger.java @@ -21,7 +21,7 @@ import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; import com.google.cloudbuild.v1.BuildTrigger; import com.google.cloudbuild.v1.CreateBuildTriggerRequest; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; public class AsyncCreateBuildTrigger { @@ -38,7 +38,7 @@ public static void asyncCreateBuildTrigger() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { CreateBuildTriggerRequest request = CreateBuildTriggerRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setTrigger(BuildTrigger.newBuilder().build()) .build(); diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTrigger.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTrigger.java index ae4bd2fc1ece..44145f264a91 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTrigger.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTrigger.java @@ -20,7 +20,7 @@ import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; import com.google.cloudbuild.v1.BuildTrigger; import com.google.cloudbuild.v1.CreateBuildTriggerRequest; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; public class SyncCreateBuildTrigger { @@ -37,7 +37,7 @@ public static void syncCreateBuildTrigger() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { CreateBuildTriggerRequest request = CreateBuildTriggerRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setTrigger(BuildTrigger.newBuilder().build()) .build(); diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTriggerLocationname.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTriggerLocationname.java new file mode 100644 index 000000000000..e30336163fde --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTriggerLocationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_CreateBuildTrigger_Locationname_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.BuildTrigger; +import com.google.cloudbuild.v1.LocationName; + +public class SyncCreateBuildTriggerLocationname { + + public static void main(String[] args) throws Exception { + syncCreateBuildTriggerLocationname(); + } + + public static void syncCreateBuildTriggerLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + BuildTrigger response = cloudBuildClient.createBuildTrigger(parent); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_CreateBuildTrigger_Locationname_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTriggerProjectname.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTriggerProjectname.java new file mode 100644 index 000000000000..736c663af46c --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTriggerProjectname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_CreateBuildTrigger_Projectname_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.BuildTrigger; +import com.google.cloudbuild.v1.ProjectName; + +public class SyncCreateBuildTriggerProjectname { + + public static void main(String[] args) throws Exception { + syncCreateBuildTriggerProjectname(); + } + + public static void syncCreateBuildTriggerProjectname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + BuildTrigger response = cloudBuildClient.createBuildTrigger(parent); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_CreateBuildTrigger_Projectname_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTriggerString.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTriggerString.java new file mode 100644 index 000000000000..612fd7d414dc --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/createbuildtrigger/SyncCreateBuildTriggerString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_CreateBuildTrigger_String_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.BuildTrigger; +import com.google.cloudbuild.v1.ProjectName; + +public class SyncCreateBuildTriggerString { + + public static void main(String[] args) throws Exception { + syncCreateBuildTriggerString(); + } + + public static void syncCreateBuildTriggerString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + BuildTrigger response = cloudBuildClient.createBuildTrigger(parent); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_CreateBuildTrigger_String_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/deletebuildtrigger/SyncDeleteBuildTriggerBuildtriggername.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/deletebuildtrigger/SyncDeleteBuildTriggerBuildtriggername.java new file mode 100644 index 000000000000..f75fc2ec06b9 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/deletebuildtrigger/SyncDeleteBuildTriggerBuildtriggername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_DeleteBuildTrigger_Buildtriggername_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.BuildTriggerName; +import com.google.protobuf.Empty; + +public class SyncDeleteBuildTriggerBuildtriggername { + + public static void main(String[] args) throws Exception { + syncDeleteBuildTriggerBuildtriggername(); + } + + public static void syncDeleteBuildTriggerBuildtriggername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); + cloudBuildClient.deleteBuildTrigger(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_DeleteBuildTrigger_Buildtriggername_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/deletebuildtrigger/SyncDeleteBuildTriggerString.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/deletebuildtrigger/SyncDeleteBuildTriggerString.java new file mode 100644 index 000000000000..1dad6f45d8bd --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/deletebuildtrigger/SyncDeleteBuildTriggerString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_DeleteBuildTrigger_String_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.BuildTriggerName; +import com.google.protobuf.Empty; + +public class SyncDeleteBuildTriggerString { + + public static void main(String[] args) throws Exception { + syncDeleteBuildTriggerString(); + } + + public static void syncDeleteBuildTriggerString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + String name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString(); + cloudBuildClient.deleteBuildTrigger(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_DeleteBuildTrigger_String_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuild/SyncGetBuildBuildname.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuild/SyncGetBuildBuildname.java new file mode 100644 index 000000000000..3d5f7b0e3272 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuild/SyncGetBuildBuildname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_GetBuild_Buildname_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.BuildName; + +public class SyncGetBuildBuildname { + + public static void main(String[] args) throws Exception { + syncGetBuildBuildname(); + } + + public static void syncGetBuildBuildname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + Build response = cloudBuildClient.getBuild(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_GetBuild_Buildname_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuild/SyncGetBuildString.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuild/SyncGetBuildString.java new file mode 100644 index 000000000000..cb50a7d83fc1 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuild/SyncGetBuildString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_GetBuild_String_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.BuildName; + +public class SyncGetBuildString { + + public static void main(String[] args) throws Exception { + syncGetBuildString(); + } + + public static void syncGetBuildString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + String name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString(); + Build response = cloudBuildClient.getBuild(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_GetBuild_String_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuildtrigger/SyncGetBuildTriggerBuildtriggername.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuildtrigger/SyncGetBuildTriggerBuildtriggername.java new file mode 100644 index 000000000000..debd9d0a604b --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuildtrigger/SyncGetBuildTriggerBuildtriggername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_GetBuildTrigger_Buildtriggername_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.BuildTrigger; +import com.google.cloudbuild.v1.BuildTriggerName; + +public class SyncGetBuildTriggerBuildtriggername { + + public static void main(String[] args) throws Exception { + syncGetBuildTriggerBuildtriggername(); + } + + public static void syncGetBuildTriggerBuildtriggername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + BuildTriggerName name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]"); + BuildTrigger response = cloudBuildClient.getBuildTrigger(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_GetBuildTrigger_Buildtriggername_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuildtrigger/SyncGetBuildTriggerString.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuildtrigger/SyncGetBuildTriggerString.java new file mode 100644 index 000000000000..14ddf6e980de --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getbuildtrigger/SyncGetBuildTriggerString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_GetBuildTrigger_String_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.BuildTrigger; +import com.google.cloudbuild.v1.BuildTriggerName; + +public class SyncGetBuildTriggerString { + + public static void main(String[] args) throws Exception { + syncGetBuildTriggerString(); + } + + public static void syncGetBuildTriggerString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + String name = BuildTriggerName.ofProjectTriggerName("[PROJECT]", "[TRIGGER]").toString(); + BuildTrigger response = cloudBuildClient.getBuildTrigger(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_GetBuildTrigger_String_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/AsyncGetDefaultServiceAccount.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/AsyncGetDefaultServiceAccount.java new file mode 100644 index 000000000000..5f1815e38fa4 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/AsyncGetDefaultServiceAccount.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_GetDefaultServiceAccount_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.DefaultServiceAccount; +import com.google.cloudbuild.v1.DefaultServiceAccountName; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; + +public class AsyncGetDefaultServiceAccount { + + public static void main(String[] args) throws Exception { + asyncGetDefaultServiceAccount(); + } + + public static void asyncGetDefaultServiceAccount() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + GetDefaultServiceAccountRequest request = + GetDefaultServiceAccountRequest.newBuilder() + .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + cloudBuildClient.getDefaultServiceAccountCallable().futureCall(request); + // Do something. + DefaultServiceAccount response = future.get(); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_GetDefaultServiceAccount_async] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/SyncGetDefaultServiceAccount.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/SyncGetDefaultServiceAccount.java new file mode 100644 index 000000000000..11b75a464143 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/SyncGetDefaultServiceAccount.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_GetDefaultServiceAccount_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.DefaultServiceAccount; +import com.google.cloudbuild.v1.DefaultServiceAccountName; +import com.google.cloudbuild.v1.GetDefaultServiceAccountRequest; + +public class SyncGetDefaultServiceAccount { + + public static void main(String[] args) throws Exception { + syncGetDefaultServiceAccount(); + } + + public static void syncGetDefaultServiceAccount() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + GetDefaultServiceAccountRequest request = + GetDefaultServiceAccountRequest.newBuilder() + .setName(DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + DefaultServiceAccount response = cloudBuildClient.getDefaultServiceAccount(request); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_GetDefaultServiceAccount_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/SyncGetDefaultServiceAccountDefaultserviceaccountname.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/SyncGetDefaultServiceAccountDefaultserviceaccountname.java new file mode 100644 index 000000000000..581b04460717 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/SyncGetDefaultServiceAccountDefaultserviceaccountname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_GetDefaultServiceAccount_Defaultserviceaccountname_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.DefaultServiceAccount; +import com.google.cloudbuild.v1.DefaultServiceAccountName; + +public class SyncGetDefaultServiceAccountDefaultserviceaccountname { + + public static void main(String[] args) throws Exception { + syncGetDefaultServiceAccountDefaultserviceaccountname(); + } + + public static void syncGetDefaultServiceAccountDefaultserviceaccountname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + DefaultServiceAccountName name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]"); + DefaultServiceAccount response = cloudBuildClient.getDefaultServiceAccount(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_GetDefaultServiceAccount_Defaultserviceaccountname_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/SyncGetDefaultServiceAccountString.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/SyncGetDefaultServiceAccountString.java new file mode 100644 index 000000000000..5f2fb7640218 --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/getdefaultserviceaccount/SyncGetDefaultServiceAccountString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_GetDefaultServiceAccount_String_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.DefaultServiceAccount; +import com.google.cloudbuild.v1.DefaultServiceAccountName; + +public class SyncGetDefaultServiceAccountString { + + public static void main(String[] args) throws Exception { + syncGetDefaultServiceAccountString(); + } + + public static void syncGetDefaultServiceAccountString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + String name = DefaultServiceAccountName.of("[PROJECT]", "[LOCATION]").toString(); + DefaultServiceAccount response = cloudBuildClient.getDefaultServiceAccount(name); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_GetDefaultServiceAccount_String_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/AsyncListBuilds.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/AsyncListBuilds.java index b56cd1e49a65..cecdaa18fe6c 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/AsyncListBuilds.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/AsyncListBuilds.java @@ -21,7 +21,7 @@ import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; import com.google.cloudbuild.v1.Build; import com.google.cloudbuild.v1.ListBuildsRequest; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; public class AsyncListBuilds { @@ -38,7 +38,7 @@ public static void asyncListBuilds() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { ListBuildsRequest request = ListBuildsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setPageSize(883849137) .setPageToken("pageToken873572522") diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/AsyncListBuildsPaged.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/AsyncListBuildsPaged.java index ebd527c28a03..482886bed9fc 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/AsyncListBuildsPaged.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/AsyncListBuildsPaged.java @@ -21,7 +21,7 @@ import com.google.cloudbuild.v1.Build; import com.google.cloudbuild.v1.ListBuildsRequest; import com.google.cloudbuild.v1.ListBuildsResponse; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; import com.google.common.base.Strings; public class AsyncListBuildsPaged { @@ -39,7 +39,7 @@ public static void asyncListBuildsPaged() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { ListBuildsRequest request = ListBuildsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setPageSize(883849137) .setPageToken("pageToken873572522") diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/SyncListBuilds.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/SyncListBuilds.java index ccb1fe441125..f2bda2a23bf6 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/SyncListBuilds.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuilds/SyncListBuilds.java @@ -20,7 +20,7 @@ import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; import com.google.cloudbuild.v1.Build; import com.google.cloudbuild.v1.ListBuildsRequest; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; public class SyncListBuilds { @@ -37,7 +37,7 @@ public static void syncListBuilds() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { ListBuildsRequest request = ListBuildsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setPageSize(883849137) .setPageToken("pageToken873572522") diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/AsyncListBuildTriggers.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/AsyncListBuildTriggers.java index df895e1ec7e9..2ab03eda6c0c 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/AsyncListBuildTriggers.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/AsyncListBuildTriggers.java @@ -21,7 +21,7 @@ import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; import com.google.cloudbuild.v1.BuildTrigger; import com.google.cloudbuild.v1.ListBuildTriggersRequest; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; public class AsyncListBuildTriggers { @@ -38,7 +38,7 @@ public static void asyncListBuildTriggers() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { ListBuildTriggersRequest request = ListBuildTriggersRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setPageSize(883849137) .setPageToken("pageToken873572522") diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/AsyncListBuildTriggersPaged.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/AsyncListBuildTriggersPaged.java index 716b39b44017..6e528e6228d7 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/AsyncListBuildTriggersPaged.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/AsyncListBuildTriggersPaged.java @@ -21,7 +21,7 @@ import com.google.cloudbuild.v1.BuildTrigger; import com.google.cloudbuild.v1.ListBuildTriggersRequest; import com.google.cloudbuild.v1.ListBuildTriggersResponse; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; import com.google.common.base.Strings; public class AsyncListBuildTriggersPaged { @@ -39,7 +39,7 @@ public static void asyncListBuildTriggersPaged() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { ListBuildTriggersRequest request = ListBuildTriggersRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setPageSize(883849137) .setPageToken("pageToken873572522") diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/SyncListBuildTriggers.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/SyncListBuildTriggers.java index a5f11afb4773..413973ee8d64 100644 --- a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/SyncListBuildTriggers.java +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/listbuildtriggers/SyncListBuildTriggers.java @@ -20,7 +20,7 @@ import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; import com.google.cloudbuild.v1.BuildTrigger; import com.google.cloudbuild.v1.ListBuildTriggersRequest; -import com.google.cloudbuild.v1.LocationName; +import com.google.cloudbuild.v1.ProjectName; public class SyncListBuildTriggers { @@ -37,7 +37,7 @@ public static void syncListBuildTriggers() throws Exception { try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { ListBuildTriggersRequest request = ListBuildTriggersRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setParent(ProjectName.of("[PROJECT]").toString()) .setProjectId("projectId-894832108") .setPageSize(883849137) .setPageToken("pageToken873572522") diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/retrybuild/SyncRetryBuildBuildname.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/retrybuild/SyncRetryBuildBuildname.java new file mode 100644 index 000000000000..8f2ad591e76a --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/retrybuild/SyncRetryBuildBuildname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_RetryBuild_Buildname_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.BuildName; + +public class SyncRetryBuildBuildname { + + public static void main(String[] args) throws Exception { + syncRetryBuildBuildname(); + } + + public static void syncRetryBuildBuildname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + BuildName name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]"); + Build response = cloudBuildClient.retryBuildAsync(name).get(); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_RetryBuild_Buildname_sync] diff --git a/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/retrybuild/SyncRetryBuildString.java b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/retrybuild/SyncRetryBuildString.java new file mode 100644 index 000000000000..d6dc3c364aca --- /dev/null +++ b/java-cloudbuild/samples/snippets/generated/com/google/cloud/devtools/cloudbuild/v1/cloudbuild/retrybuild/SyncRetryBuildString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.devtools.cloudbuild.v1.samples; + +// [START cloudbuild_v1_generated_CloudBuild_RetryBuild_String_sync] +import com.google.cloud.devtools.cloudbuild.v1.CloudBuildClient; +import com.google.cloudbuild.v1.Build; +import com.google.cloudbuild.v1.BuildName; + +public class SyncRetryBuildString { + + public static void main(String[] args) throws Exception { + syncRetryBuildString(); + } + + public static void syncRetryBuildString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) { + String name = BuildName.ofProjectBuildName("[PROJECT]", "[BUILD]").toString(); + Build response = cloudBuildClient.retryBuildAsync(name).get(); + } + } +} +// [END cloudbuild_v1_generated_CloudBuild_RetryBuild_String_sync] diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 059db50f92a8..7283c9bb4b4f 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.76.0 + 0.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.76.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.78.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.78.0 [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 diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 3ebf2312841b..d20a1eb7b4b8 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.42.0 + 0.44.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.42.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.44.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.44.0 [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 diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index 562b9c4c9996..95c1275be6fc 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.46.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.46.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.48.0" ``` ## Authentication @@ -196,7 +196,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.48.0 [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 diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index 3c714730b69e..e2466c31f157 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsecuritycompliance - 0.5.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.5.0' +implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.7.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-cloudsecuritycompliance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.7.0 [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 diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 62043f08c75b..d2a0542c0059 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.62.0 + 0.64.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.62.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.64.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.64.0 [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 diff --git a/java-compute/README.md b/java-compute/README.md index 1002a302ef89..30e1d625e185 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.88.0 + 1.90.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.88.0' +implementation 'com.google.cloud:google-cloud-compute:1.90.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.90.0" ``` ## Authentication @@ -257,7 +257,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.90.0 [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 diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 09db3bb173d5..64f2fbe544be 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.64.0 + 0.66.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.64.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.66.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.66.0 [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 diff --git a/java-configdelivery/README.md b/java-configdelivery/README.md index fc50a265015b..b1ab51f54ce9 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.12.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.12.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.14.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.14.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.14.0 [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 diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index 909e5b1aed4c..a647f22fd920 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.30.0 + 0.32.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.30.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.32.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.32.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.32.0 [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 diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 26f1a6343852..afe6e780f15e 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.78.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.80.0 [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 diff --git a/java-container/README.md b/java-container/README.md index 57a712b7b6c6..226ee5280269 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.81.0 + 2.83.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.81.0' +implementation 'com.google.cloud:google-cloud-container:2.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.83.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.83.0 [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 diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index ca0abeeafa94..04cbbc845974 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.79.0 + 2.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.79.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.81.0 [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 diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index 5219509f3761..c9a645ca0e9e 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.74.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.74.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.76.0 [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 diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index ca4e7c395cb8..22eca3acab75 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.78.0 + 1.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.78.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.80.0 [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 diff --git a/java-databasecenter/README.md b/java-databasecenter/README.md index 8beb6666e9f8..0f9843b88418 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.0.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.1.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-databasecenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.1.0 [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 diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index 552a8f449c09..168b4255d383 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datacatalog - 1.84.0 + 1.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.84.0' +implementation 'com.google.cloud:google-cloud-datacatalog:1.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.86.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.86.0 [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 diff --git a/java-dataflow/README.md b/java-dataflow/README.md index 83d9fcfcc76a..bb8476f49667 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.82.0 + 0.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.82.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.84.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.84.0 [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 diff --git a/java-dataform/README.md b/java-dataform/README.md index c1fb86f5034b..b1aef7094984 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.77.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.77.0' +implementation 'com.google.cloud:google-cloud-dataform:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.79.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.79.0 [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 diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index 00f3361ad1dc..8c3e2277a67f 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalabeling - 0.198.0 + 0.200.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalabeling:0.198.0' +implementation 'com.google.cloud:google-cloud-datalabeling:0.200.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.198.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalabeling" % "0.200.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-datalabeling.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.198.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalabeling/0.200.0 [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 diff --git a/java-datalineage/README.md b/java-datalineage/README.md index 7f2f998bbfc1..665b3f5d61d5 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.70.0 + 0.72.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.70.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.72.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.72.0 [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 diff --git a/java-datamanager/README.md b/java-datamanager/README.md index 70f130002f8d..9b14213eae2a 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.api-ads data-manager - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.0.0' +implementation 'com.google.api-ads:data-manager:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.0.0" +libraryDependencies += "com.google.api-ads" % "data-manager" % "0.1.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/data-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.1.0 [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 diff --git a/java-dataplex/README.md b/java-dataplex/README.md index afe14df00483..a96c07008cb4 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.76.0 + 1.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.76.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.78.0 [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 diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 3b7e412a5aa1..547ee36d0c88 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.79.0 + 2.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.79.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.81.0 [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 diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 0f1b25f83caf..4f862a839dea 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.75.0 + 4.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.75.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.77.0 [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 diff --git a/java-datastream/README.md b/java-datastream/README.md index 604aff9ef513..52f51ad85dd8 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.77.0 + 1.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.77.0' +implementation 'com.google.cloud:google-cloud-datastream:1.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.79.0 [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 diff --git a/java-deploy/README.md b/java-deploy/README.md index 41beb7cf4cf7..b1172e0ae0a1 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.76.0 + 1.78.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.76.0' +implementation 'com.google.cloud:google-cloud-deploy:1.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.78.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.78.0 [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 diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index 2debf8663965..06bff30018e9 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.35.0 + 0.37.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.35.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.37.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.37.0 [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 diff --git a/java-devicestreaming/README.md b/java-devicestreaming/README.md index 92cbff7282e3..be92db9ab04b 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 0.18.0 + 0.20.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.18.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.20.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.20.0 [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 diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index a51276b4b8ba..9a851ed9c50c 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.89.0 + 0.91.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.89.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.89.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.91.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.89.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.91.0 [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 diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index bbc291345d75..cbc7e8cb34a5 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.84.0 + 4.86.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.84.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.86.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.86.0 [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 diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index b3ae5835e196..dfbb702c0e05 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.74.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.74.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.76.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.76.0 [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 diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 7981169fc6e9..0ecd4cefabd6 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.75.0 + 0.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.75.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.77.0 [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 diff --git a/java-dlp/README.md b/java-dlp/README.md index 97f415082832..c8afcc343d2d 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.82.0 + 3.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.82.0' +implementation 'com.google.cloud:google-cloud-dlp:3.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.84.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.84.0 [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 diff --git a/java-dms/README.md b/java-dms/README.md index 85bae3275bd8..ecd60f4e9fe4 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.77.0 + 2.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.77.0' +implementation 'com.google.cloud:google-cloud-dms:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.79.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.79.0 [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 diff --git a/java-document-ai/README.md b/java-document-ai/README.md index b0fa45658819..faa187f8d600 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.82.0 + 2.84.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.82.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.84.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.84.0 [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 diff --git a/java-domains/README.md b/java-domains/README.md index 1938b2b4fa36..f7fb405959ed 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.75.0 + 1.77.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.75.0' +implementation 'com.google.cloud:google-cloud-domains:1.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.77.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.77.0 [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 diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index 156a45f35804..77931a56a08e 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.46.0 + 0.48.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.46.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.48.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.48.0 [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 diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index a4eac5a2c1df..ddc120bde558 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.74.0 + 0.76.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.74.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.76.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.76.0 [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 diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 13116eddf09d..93586df9be48 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.199.0-beta + 0.201.0-beta ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.199.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.201.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.199.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.201.0-beta" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.199.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.201.0-beta [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 diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index 559725f21557..9a30974d3e16 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.78.0 + 2.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.78.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.80.0 [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 diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 0bb570d019d2..a937eaff686d 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.78.0 + 0.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.78.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.80.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.80.0 [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 diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 9beaa98863e4..01e6183bad51 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.78.0 + 1.80.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.78.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.80.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.80.0 [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 diff --git a/java-eventarc/google-cloud-eventarc/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.v1/reflect-config.json b/java-eventarc/google-cloud-eventarc/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.v1/reflect-config.json index 458ec111b390..fcf46ec8a4a3 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.v1/reflect-config.json +++ b/java-eventarc/google-cloud-eventarc/src/main/resources/META-INF/native-image/com.google.cloud.eventarc.v1/reflect-config.json @@ -1061,6 +1061,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.eventarc.v1.GoogleApiSource$OrganizationSubscription", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.eventarc.v1.GoogleApiSource$OrganizationSubscription$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.eventarc.v1.GoogleApiSource$ProjectSubscriptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.eventarc.v1.GoogleApiSource$ProjectSubscriptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.eventarc.v1.GoogleChannelConfig", "queryAllDeclaredConstructors": true, @@ -1844,6 +1880,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.eventarc.v1.Trigger$RetryPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.eventarc.v1.Trigger$RetryPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.eventarc.v1.UpdateChannelRequest", "queryAllDeclaredConstructors": true, diff --git a/java-eventarc/google-cloud-eventarc/src/test/java/com/google/cloud/eventarc/v1/EventarcClientHttpJsonTest.java b/java-eventarc/google-cloud-eventarc/src/test/java/com/google/cloud/eventarc/v1/EventarcClientHttpJsonTest.java index eaf914bc0087..2fc244a2d461 100644 --- a/java-eventarc/google-cloud-eventarc/src/test/java/com/google/cloud/eventarc/v1/EventarcClientHttpJsonTest.java +++ b/java-eventarc/google-cloud-eventarc/src/test/java/com/google/cloud/eventarc/v1/EventarcClientHttpJsonTest.java @@ -120,6 +120,7 @@ public void getTriggerTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -177,6 +178,7 @@ public void getTriggerTest2() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); mockService.addResponse(expectedResponse); @@ -334,6 +336,7 @@ public void createTriggerTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -400,6 +403,7 @@ public void createTriggerTest2() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -466,6 +470,7 @@ public void updateTriggerTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -491,6 +496,7 @@ public void updateTriggerTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -537,6 +543,7 @@ public void updateTriggerExceptionTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -564,6 +571,7 @@ public void deleteTriggerTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -628,6 +636,7 @@ public void deleteTriggerTest2() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-eventarc/google-cloud-eventarc/src/test/java/com/google/cloud/eventarc/v1/EventarcClientTest.java b/java-eventarc/google-cloud-eventarc/src/test/java/com/google/cloud/eventarc/v1/EventarcClientTest.java index 0668772f90a0..1d41bf292fbf 100644 --- a/java-eventarc/google-cloud-eventarc/src/test/java/com/google/cloud/eventarc/v1/EventarcClientTest.java +++ b/java-eventarc/google-cloud-eventarc/src/test/java/com/google/cloud/eventarc/v1/EventarcClientTest.java @@ -130,6 +130,7 @@ public void getTriggerTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); mockEventarc.addResponse(expectedResponse); @@ -181,6 +182,7 @@ public void getTriggerTest2() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); mockEventarc.addResponse(expectedResponse); @@ -320,6 +322,7 @@ public void createTriggerTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -385,6 +388,7 @@ public void createTriggerTest2() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -450,6 +454,7 @@ public void updateTriggerTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -515,6 +520,7 @@ public void deleteTriggerTest() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = @@ -577,6 +583,7 @@ public void deleteTriggerTest2() throws Exception { .putAllConditions(new HashMap()) .setEventDataContentType("eventDataContentType1497299791") .setSatisfiesPzs(true) + .setRetryPolicy(Trigger.RetryPolicy.newBuilder().build()) .setEtag("etag3123477") .build(); Operation resultOperation = diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSource.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSource.java index 7d2605af0a34..f949444bbd42 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSource.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSource.java @@ -83,650 +83,1523 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.eventarc.v1.GoogleApiSource.Builder.class); } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface ProjectSubscriptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + /** + * + * + *
    +     * Required. A list of projects to receive events from.
    +     *
    +     * All the projects must be in the same org. The listed projects should have
    +     * the format project/{identifier} where identifier can be either the
    +     * project id for project number. A single list may contain both formats. At
    +     * most 100 projects can be listed.
    +     * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the list. + */ + java.util.List getListList(); - /** - * - * - *
    -   * Identifier. Resource name of the form
    -   * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } + /** + * + * + *
    +     * Required. A list of projects to receive events from.
    +     *
    +     * All the projects must be in the same org. The listed projects should have
    +     * the format project/{identifier} where identifier can be either the
    +     * project id for project number. A single list may contain both formats. At
    +     * most 100 projects can be listed.
    +     * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of list. + */ + int getListCount(); + + /** + * + * + *
    +     * Required. A list of projects to receive events from.
    +     *
    +     * All the projects must be in the same org. The listed projects should have
    +     * the format project/{identifier} where identifier can be either the
    +     * project id for project number. A single list may contain both formats. At
    +     * most 100 projects can be listed.
    +     * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The list at the given index. + */ + java.lang.String getList(int index); + + /** + * + * + *
    +     * Required. A list of projects to receive events from.
    +     *
    +     * All the projects must be in the same org. The listed projects should have
    +     * the format project/{identifier} where identifier can be either the
    +     * project id for project number. A single list may contain both formats. At
    +     * most 100 projects can be listed.
    +     * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the list at the given index. + */ + com.google.protobuf.ByteString getListBytes(int index); } /** * * *
    -   * Identifier. Resource name of the form
    -   * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +   * Config to enable subscribing to all events from a list of projects.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. + * Protobuf type {@code google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions} */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final class ProjectSubscriptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + ProjectSubscriptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ProjectSubscriptions.newBuilder() to construct. + private ProjectSubscriptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - public static final int UID_FIELD_NUMBER = 2; + private ProjectSubscriptions() { + list_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object uid_ = ""; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProjectSubscriptions(); + } - /** - * - * - *
    -   * Output only. Server assigned unique identifier for the channel. The value
    -   * is a UUID4 string and guaranteed to remain unchanged until the resource is
    -   * deleted.
    -   * 
    - * - * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } - * - * - * @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; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_descriptor; } - } - /** - * - * - *
    -   * Output only. Server assigned unique identifier for the channel. The value
    -   * is a UUID4 string and guaranteed to remain unchanged until the resource is
    -   * deleted.
    -   * 
    - * - * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } - * - * - * @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; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.class, + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.Builder.class); } - } - public static final int ETAG_FIELD_NUMBER = 3; + public static final int LIST_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object etag_ = ""; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList list_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
    -   * Output only. This checksum is computed by the server based on the value of
    -   * other fields, and might be sent only on update and delete requests to
    -   * ensure that the client has an up-to-date value before proceeding.
    -   * 
    - * - * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; + /** + * + * + *
    +     * Required. A list of projects to receive events from.
    +     *
    +     * All the projects must be in the same org. The listed projects should have
    +     * the format project/{identifier} where identifier can be either the
    +     * project id for project number. A single list may contain both formats. At
    +     * most 100 projects can be listed.
    +     * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the list. + */ + public com.google.protobuf.ProtocolStringList getListList() { + return list_; } - } - /** - * - * - *
    -   * Output only. This checksum is computed by the server based on the value of
    -   * other fields, and might be sent only on update and delete requests to
    -   * ensure that the client has an up-to-date value before proceeding.
    -   * 
    - * - * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
    +     * Required. A list of projects to receive events from.
    +     *
    +     * All the projects must be in the same org. The listed projects should have
    +     * the format project/{identifier} where identifier can be either the
    +     * project id for project number. A single list may contain both formats. At
    +     * most 100 projects can be listed.
    +     * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of list. + */ + public int getListCount() { + return list_.size(); } - } - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
    +     * Required. A list of projects to receive events from.
    +     *
    +     * All the projects must be in the same org. The listed projects should have
    +     * the format project/{identifier} where identifier can be either the
    +     * project id for project number. A single list may contain both formats. At
    +     * most 100 projects can be listed.
    +     * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The list at the given index. + */ + public java.lang.String getList(int index) { + return list_.get(index); + } - /** - * - * - *
    -   * Output only. The creation time.
    -   * 
    - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
    +     * Required. A list of projects to receive events from.
    +     *
    +     * All the projects must be in the same org. The listed projects should have
    +     * the format project/{identifier} where identifier can be either the
    +     * project id for project number. A single list may contain both formats. At
    +     * most 100 projects can be listed.
    +     * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the list at the given index. + */ + public com.google.protobuf.ByteString getListBytes(int index) { + return list_.getByteString(index); + } - /** - * - * - *
    -   * Output only. The creation time.
    -   * 
    - * - * .google.protobuf.Timestamp create_time = 4 [(.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_; - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
    -   * Output only. The creation time.
    -   * 
    - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
    -   * Output only. The last-modified time.
    -   * 
    - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < list_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, list_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
    -   * Output only. The last-modified time.
    -   * 
    - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < list_.size(); i++) { + dataSize += computeStringSizeNoTag(list_.getRaw(i)); + } + size += dataSize; + size += 1 * getListList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
    -   * Output only. The last-modified time.
    -   * 
    - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions)) { + return super.equals(obj); + } + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions other = + (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) obj; - public static final int LABELS_FIELD_NUMBER = 6; + if (!getListList().equals(other.getListList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.eventarc.v1.GoogleApiSourceProto - .internal_static_google_cloud_eventarc_v1_GoogleApiSource_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getListCount() > 0) { + hash = (37 * hash) + LIST_FIELD_NUMBER; + hash = (53 * hash) + getListList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - return labels_; - } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
    -   * Optional. Resource labels.
    -   * 
    - * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - return internalGetLabels().getMap().containsKey(key); - } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
    -   * Optional. Resource labels.
    -   * 
    - * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
    -   * Optional. Resource labels.
    -   * 
    - * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
    -   * Optional. Resource labels.
    -   * 
    - * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - return map.get(key); - } - public static final int ANNOTATIONS_FIELD_NUMBER = 7; + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.eventarc.v1.GoogleApiSourceProto - .internal_static_google_cloud_eventarc_v1_GoogleApiSource_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField annotations_; + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - return annotations_; - } - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
    -   * Optional. Resource annotations.
    -   * 
    - * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public static Builder newBuilder( + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** Use {@link #getAnnotationsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
    -   * Optional. Resource annotations.
    -   * 
    - * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
    -   * Optional. Resource annotations.
    -   * 
    - * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + /** + * + * + *
    +     * Config to enable subscribing to all events from a list of projects.
    +     * 
    + * + * Protobuf type {@code google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.class, + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.Builder.class); + } + + // Construct using + // com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + list_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + getDefaultInstanceForType() { + return com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions build() { + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions buildPartial() { + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions result = + new com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + list_.makeImmutable(); + result.list_ = list_; + } + } + + @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.eventarc.v1.GoogleApiSource.ProjectSubscriptions) { + return mergeFrom( + (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions other) { + if (other + == com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + .getDefaultInstance()) return this; + if (!other.list_.isEmpty()) { + if (list_.isEmpty()) { + list_ = other.list_; + bitField0_ |= 0x00000001; + } else { + ensureListIsMutable(); + list_.addAll(other.list_); + } + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureListIsMutable(); + list_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList list_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureListIsMutable() { + if (!list_.isModifiable()) { + list_ = new com.google.protobuf.LazyStringArrayList(list_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +       * Required. A list of projects to receive events from.
    +       *
    +       * All the projects must be in the same org. The listed projects should have
    +       * the format project/{identifier} where identifier can be either the
    +       * project id for project number. A single list may contain both formats. At
    +       * most 100 projects can be listed.
    +       * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the list. + */ + public com.google.protobuf.ProtocolStringList getListList() { + list_.makeImmutable(); + return list_; + } + + /** + * + * + *
    +       * Required. A list of projects to receive events from.
    +       *
    +       * All the projects must be in the same org. The listed projects should have
    +       * the format project/{identifier} where identifier can be either the
    +       * project id for project number. A single list may contain both formats. At
    +       * most 100 projects can be listed.
    +       * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of list. + */ + public int getListCount() { + return list_.size(); + } + + /** + * + * + *
    +       * Required. A list of projects to receive events from.
    +       *
    +       * All the projects must be in the same org. The listed projects should have
    +       * the format project/{identifier} where identifier can be either the
    +       * project id for project number. A single list may contain both formats. At
    +       * most 100 projects can be listed.
    +       * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The list at the given index. + */ + public java.lang.String getList(int index) { + return list_.get(index); + } + + /** + * + * + *
    +       * Required. A list of projects to receive events from.
    +       *
    +       * All the projects must be in the same org. The listed projects should have
    +       * the format project/{identifier} where identifier can be either the
    +       * project id for project number. A single list may contain both formats. At
    +       * most 100 projects can be listed.
    +       * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the list at the given index. + */ + public com.google.protobuf.ByteString getListBytes(int index) { + return list_.getByteString(index); + } + + /** + * + * + *
    +       * Required. A list of projects to receive events from.
    +       *
    +       * All the projects must be in the same org. The listed projects should have
    +       * the format project/{identifier} where identifier can be either the
    +       * project id for project number. A single list may contain both formats. At
    +       * most 100 projects can be listed.
    +       * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The list to set. + * @return This builder for chaining. + */ + public Builder setList(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureListIsMutable(); + list_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. A list of projects to receive events from.
    +       *
    +       * All the projects must be in the same org. The listed projects should have
    +       * the format project/{identifier} where identifier can be either the
    +       * project id for project number. A single list may contain both formats. At
    +       * most 100 projects can be listed.
    +       * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The list to add. + * @return This builder for chaining. + */ + public Builder addList(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureListIsMutable(); + list_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. A list of projects to receive events from.
    +       *
    +       * All the projects must be in the same org. The listed projects should have
    +       * the format project/{identifier} where identifier can be either the
    +       * project id for project number. A single list may contain both formats. At
    +       * most 100 projects can be listed.
    +       * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The list to add. + * @return This builder for chaining. + */ + public Builder addAllList(java.lang.Iterable values) { + ensureListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, list_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. A list of projects to receive events from.
    +       *
    +       * All the projects must be in the same org. The listed projects should have
    +       * the format project/{identifier} where identifier can be either the
    +       * project id for project number. A single list may contain both formats. At
    +       * most 100 projects can be listed.
    +       * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearList() { + list_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. A list of projects to receive events from.
    +       *
    +       * All the projects must be in the same org. The listed projects should have
    +       * the format project/{identifier} where identifier can be either the
    +       * project id for project number. A single list may contain both formats. At
    +       * most 100 projects can be listed.
    +       * 
    + * + * repeated string list = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the list to add. + * @return This builder for chaining. + */ + public Builder addListBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureListIsMutable(); + list_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + private static final com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions(); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProjectSubscriptions 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.util.Map map = internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
    -   * Optional. Resource annotations.
    -   * 
    - * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - java.util.Map map = internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - return map.get(key); } - public static final int DISPLAY_NAME_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; + public interface OrganizationSubscriptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
    -   * Optional. Resource display name.
    -   * 
    - * - * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } + /** + * + * + *
    +     * Required. Enable org level subscription.
    +     * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + boolean getEnabled(); } /** * * *
    -   * Optional. Resource display name.
    +   * Config to enabled subscribing to events from other projects in the org.
        * 
    * - * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for displayName. + * Protobuf type {@code google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription} */ - @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 class OrganizationSubscription extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + OrganizationSubscriptionOrBuilder { + private static final long serialVersionUID = 0L; + + // Use OrganizationSubscription.newBuilder() to construct. + private OrganizationSubscription(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); } - } - public static final int DESTINATION_FIELD_NUMBER = 9; + private OrganizationSubscription() {} - @SuppressWarnings("serial") - private volatile java.lang.Object destination_ = ""; + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new OrganizationSubscription(); + } - /** - * - * - *
    -   * Required. Destination is the message bus that the GoogleApiSource is
    -   * delivering to. It must be point to the full resource name of a MessageBus.
    -   * Format:
    -   * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
    -   * 
    - * - * - * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The destination. - */ - @java.lang.Override - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destination_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_descriptor; } - } - /** - * - * - *
    -   * Required. Destination is the message bus that the GoogleApiSource is
    -   * delivering to. It must be point to the full resource name of a MessageBus.
    -   * Format:
    -   * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
    -   * 
    - * - * - * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for destination. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.class, + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.Builder.class); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_ = false; + + /** + * + * + *
    +     * Required. Enable org level subscription.
    +     * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + 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_); + } + 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_); + } + 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.eventarc.v1.GoogleApiSource.OrganizationSubscription)) { + return super.equals(obj); + } + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription other = + (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) obj; + + if (getEnabled() != other.getEnabled()) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription 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.eventarc.v1.GoogleApiSource.OrganizationSubscription parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription 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.eventarc.v1.GoogleApiSource.OrganizationSubscription + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + 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.eventarc.v1.GoogleApiSource.OrganizationSubscription parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription 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.eventarc.v1.GoogleApiSource.OrganizationSubscription 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; + } + + /** + * + * + *
    +     * Config to enabled subscribing to events from other projects in the org.
    +     * 
    + * + * Protobuf type {@code google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscriptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.class, + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.Builder + .class); + } + + // Construct using + // com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_descriptor; + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + getDefaultInstanceForType() { + return com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription build() { + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription buildPartial() { + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription result = + new com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enabled_ = enabled_; + } + } + + @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.eventarc.v1.GoogleApiSource.OrganizationSubscription) { + return mergeFrom( + (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription other) { + if (other + == com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + .getDefaultInstance()) return this; + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + 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(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enabled_; + + /** + * + * + *
    +       * Required. Enable org level subscription.
    +       * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
    +       * Required. Enable org level subscription.
    +       * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Required. Enable org level subscription.
    +       * 
    + * + * bool enabled = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + enabled_ = 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.eventarc.v1.GoogleApiSource.OrganizationSubscription) + } + + // @@protoc_insertion_point(class_scope:google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + private static final com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription(); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSubscription 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.eventarc.v1.GoogleApiSource.OrganizationSubscription + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } } - public static final int CRYPTO_KEY_NAME_FIELD_NUMBER = 10; + private int bitField0_; + private int wideScopeSubscriptionCase_ = 0; @SuppressWarnings("serial") - private volatile java.lang.Object cryptoKeyName_ = ""; + private java.lang.Object wideScopeSubscription_; + + public enum WideScopeSubscriptionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ORGANIZATION_SUBSCRIPTION(12), + PROJECT_SUBSCRIPTIONS(13), + WIDESCOPESUBSCRIPTION_NOT_SET(0); + private final int value; + + private WideScopeSubscriptionCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static WideScopeSubscriptionCase valueOf(int value) { + return forNumber(value); + } + + public static WideScopeSubscriptionCase forNumber(int value) { + switch (value) { + case 12: + return ORGANIZATION_SUBSCRIPTION; + case 13: + return PROJECT_SUBSCRIPTIONS; + case 0: + return WIDESCOPESUBSCRIPTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public WideScopeSubscriptionCase getWideScopeSubscriptionCase() { + return WideScopeSubscriptionCase.forNumber(wideScopeSubscriptionCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
    -   * Optional. Resource name of a KMS crypto key (managed by the user) used to
    -   * encrypt/decrypt their event data.
    -   *
    -   * It must match the pattern
    -   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    +   * Identifier. Resource name of the form
    +   * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
        * 
    * - * - * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * - * @return The cryptoKeyName. + * @return The name. */ @java.lang.Override - public java.lang.String getCryptoKeyName() { - java.lang.Object ref = cryptoKeyName_; + 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(); - cryptoKeyName_ = s; + name_ = s; return s; } } @@ -735,808 +1608,2046 @@ public java.lang.String getCryptoKeyName() { * * *
    -   * Optional. Resource name of a KMS crypto key (managed by the user) used to
    -   * encrypt/decrypt their event data.
    -   *
    -   * It must match the pattern
    -   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    +   * Identifier. Resource name of the form
    +   * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
        * 
    * - * - * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * - * @return The bytes for cryptoKeyName. + * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getCryptoKeyNameBytes() { - java.lang.Object ref = cryptoKeyName_; + 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); - cryptoKeyName_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int LOGGING_CONFIG_FIELD_NUMBER = 11; - private com.google.cloud.eventarc.v1.LoggingConfig loggingConfig_; + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; /** * * *
    -   * Optional. Config to control Platform logging for the GoogleApiSource.
    -   * 
    + * Output only. Server assigned unique identifier for the channel. The value + * is a UUID4 string and guaranteed to remain unchanged until the resource is + * deleted. + *
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @return Whether the loggingConfig field is set. + * @return The uid. */ @java.lang.Override - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00000004) != 0); + 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; + } } /** * * *
    -   * Optional. Config to control Platform logging for the GoogleApiSource.
    +   * Output only. Server assigned unique identifier for the channel. The value
    +   * is a UUID4 string and guaranteed to remain unchanged until the resource is
    +   * deleted.
        * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } * * - * @return The loggingConfig. + * @return The bytes for uid. */ @java.lang.Override - public com.google.cloud.eventarc.v1.LoggingConfig getLoggingConfig() { - return loggingConfig_ == null - ? com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + 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 = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** * * *
    -   * Optional. Config to control Platform logging for the GoogleApiSource.
    +   * Output only. This checksum is computed by the server based on the value of
    +   * other fields, and might be sent only on update and delete requests to
    +   * ensure that the client has an up-to-date value before proceeding.
        * 
    * - * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output only. This checksum is computed by the server based on the value of
    +   * other fields, and might be sent only on update and delete requests to
    +   * ensure that the client has an up-to-date value before proceeding.
    +   * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
    +   * Output only. The creation time.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the createTime field is set. */ @java.lang.Override - public com.google.cloud.eventarc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - return loggingConfig_ == null - ? com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); } - private byte memoizedIsInitialized = -1; + /** + * + * + *
    +   * Output only. The creation time.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 4 [(.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 creation time.
    +   * 
    + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } - memoizedIsInitialized = 1; - return true; + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
    +   * Output only. The last-modified time.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); } + /** + * + * + *
    +   * Output only. The last-modified time.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getUpdateTime()); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 7); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, destination_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, cryptoKeyName_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(11, getLoggingConfig()); - } - getUnknownFields().writeTo(output); + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + /** + * + * + *
    +   * Output only. The last-modified time.
    +   * 
    + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); - } - for (java.util.Map.Entry entry : - internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry annotations__ = - AnnotationsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, annotations__); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, destination_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, cryptoKeyName_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLoggingConfig()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); } + /** + * + * + *
    +   * Optional. Resource labels.
    +   * 
    + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.eventarc.v1.GoogleApiSource)) { - return super.equals(obj); + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - com.google.cloud.eventarc.v1.GoogleApiSource other = - (com.google.cloud.eventarc.v1.GoogleApiSource) obj; + return internalGetLabels().getMap().containsKey(key); + } - if (!getName().equals(other.getName())) return false; - if (!getUid().equals(other.getUid())) return false; - if (!getEtag().equals(other.getEtag())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDestination().equals(other.getDestination())) return false; - if (!getCryptoKeyName().equals(other.getCryptoKeyName())) return false; - if (hasLoggingConfig() != other.hasLoggingConfig()) return false; - if (hasLoggingConfig()) { - if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } + /** + * + * + *
    +   * Optional. Resource labels.
    +   * 
    + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().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 (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
    +   * Optional. Resource labels.
    +   * 
    + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
    +   * Optional. Resource labels.
    +   * 
    + * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESTINATION_FIELD_NUMBER; - hash = (53 * hash) + getDestination().hashCode(); - hash = (37 * hash) + CRYPTO_KEY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getCryptoKeyName().hashCode(); - if (hasLoggingConfig()) { - hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getLoggingConfig().hashCode(); + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + return map.get(key); } - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int ANNOTATIONS_FIELD_NUMBER = 7; - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; } - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); } - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
    +   * Optional. Resource annotations.
    +   * 
    + * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); } - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); } - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
    +   * Optional. Resource annotations.
    +   * 
    + * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); } - public static com.google.cloud.eventarc.v1.GoogleApiSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + /** + * + * + *
    +   * Optional. Resource annotations.
    +   * 
    + * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } - public static com.google.cloud.eventarc.v1.GoogleApiSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
    +   * Optional. Resource annotations.
    +   * 
    + * + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } + public static final int DISPLAY_NAME_FIELD_NUMBER = 8; - public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
    +   * Optional. Resource display name.
    +   * 
    + * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + 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; + } } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
    +   * Optional. Resource display name.
    +   * 
    + * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 Builder newBuilder(com.google.cloud.eventarc.v1.GoogleApiSource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static final int DESTINATION_FIELD_NUMBER = 9; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @SuppressWarnings("serial") + private volatile java.lang.Object destination_ = ""; + /** + * + * + *
    +   * Required. Destination is the message bus that the GoogleApiSource is
    +   * delivering to. It must be point to the full resource name of a MessageBus.
    +   * Format:
    +   * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
    +   * 
    + * + * + * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destination. + */ @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destination_ = s; + return s; + } } /** * * *
    -   * A GoogleApiSource represents a subscription of 1P events from a MessageBus.
    +   * Required. Destination is the message bus that the GoogleApiSource is
    +   * delivering to. It must be point to the full resource name of a MessageBus.
    +   * Format:
    +   * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
        * 
    * - * Protobuf type {@code google.cloud.eventarc.v1.GoogleApiSource} + * + * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destination. */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.eventarc.v1.GoogleApiSource) - com.google.cloud.eventarc.v1.GoogleApiSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.eventarc.v1.GoogleApiSourceProto - .internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor; + @java.lang.Override + public com.google.protobuf.ByteString getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 6: - return internalGetLabels(); - case 7: - return internalGetAnnotations(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } + public static final int CRYPTO_KEY_NAME_FIELD_NUMBER = 10; - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 6: - return internalGetMutableLabels(); - case 7: - return internalGetMutableAnnotations(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + @SuppressWarnings("serial") + private volatile java.lang.Object cryptoKeyName_ = ""; + + /** + * + * + *
    +   * Optional. Resource name of a KMS crypto key (managed by the user) used to
    +   * encrypt/decrypt their event data.
    +   *
    +   * It must match the pattern
    +   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    +   * 
    + * + * + * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cryptoKeyName. + */ + @java.lang.Override + public java.lang.String getCryptoKeyName() { + java.lang.Object ref = cryptoKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cryptoKeyName_ = s; + return s; } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.v1.GoogleApiSourceProto - .internal_static_google_cloud_eventarc_v1_GoogleApiSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( + /** + * + * + *
    +   * Optional. Resource name of a KMS crypto key (managed by the user) used to
    +   * encrypt/decrypt their event data.
    +   *
    +   * It must match the pattern
    +   * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    +   * 
    + * + * + * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for cryptoKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCryptoKeyNameBytes() { + java.lang.Object ref = cryptoKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cryptoKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGGING_CONFIG_FIELD_NUMBER = 11; + private com.google.cloud.eventarc.v1.LoggingConfig loggingConfig_; + + /** + * + * + *
    +   * Optional. Config to control Platform logging for the GoogleApiSource.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the loggingConfig field is set. + */ + @java.lang.Override + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
    +   * Optional. Config to control Platform logging for the GoogleApiSource.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The loggingConfig. + */ + @java.lang.Override + public com.google.cloud.eventarc.v1.LoggingConfig getLoggingConfig() { + return loggingConfig_ == null + ? com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } + + /** + * + * + *
    +   * Optional. Config to control Platform logging for the GoogleApiSource.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.eventarc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + return loggingConfig_ == null + ? com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } + + public static final int ORGANIZATION_SUBSCRIPTION_FIELD_NUMBER = 12; + + /** + * + * + *
    +   * Optional. Config to enable subscribing to events from all projects in the
    +   * GoogleApiSource's org.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the organizationSubscription field is set. + */ + @java.lang.Override + public boolean hasOrganizationSubscription() { + return wideScopeSubscriptionCase_ == 12; + } + + /** + * + * + *
    +   * Optional. Config to enable subscribing to events from all projects in the
    +   * GoogleApiSource's org.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The organizationSubscription. + */ + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + getOrganizationSubscription() { + if (wideScopeSubscriptionCase_ == 12) { + return (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + wideScopeSubscription_; + } + return com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + .getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Config to enable subscribing to events from all projects in the
    +   * GoogleApiSource's org.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscriptionOrBuilder + getOrganizationSubscriptionOrBuilder() { + if (wideScopeSubscriptionCase_ == 12) { + return (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + wideScopeSubscription_; + } + return com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + .getDefaultInstance(); + } + + public static final int PROJECT_SUBSCRIPTIONS_FIELD_NUMBER = 13; + + /** + * + * + *
    +   * Optional. Config to enable subscribing to all events from a list of
    +   * projects.
    +   *
    +   * All the projects must be in the same org as the GoogleApiSource.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the projectSubscriptions field is set. + */ + @java.lang.Override + public boolean hasProjectSubscriptions() { + return wideScopeSubscriptionCase_ == 13; + } + + /** + * + * + *
    +   * Optional. Config to enable subscribing to all events from a list of
    +   * projects.
    +   *
    +   * All the projects must be in the same org as the GoogleApiSource.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The projectSubscriptions. + */ + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + getProjectSubscriptions() { + if (wideScopeSubscriptionCase_ == 13) { + return (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + wideScopeSubscription_; + } + return com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.getDefaultInstance(); + } + + /** + * + * + *
    +   * Optional. Config to enable subscribing to all events from a list of
    +   * projects.
    +   *
    +   * All the projects must be in the same org as the GoogleApiSource.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptionsOrBuilder + getProjectSubscriptionsOrBuilder() { + if (wideScopeSubscriptionCase_ == 13) { + return (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + wideScopeSubscription_; + } + return com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUpdateTime()); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 7); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, destination_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, cryptoKeyName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(11, getLoggingConfig()); + } + if (wideScopeSubscriptionCase_ == 12) { + output.writeMessage( + 12, + (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + wideScopeSubscription_); + } + if (wideScopeSubscriptionCase_ == 13) { + output.writeMessage( + 13, + (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + wideScopeSubscription_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, annotations__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, destination_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cryptoKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, cryptoKeyName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getLoggingConfig()); + } + if (wideScopeSubscriptionCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, + (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + wideScopeSubscription_); + } + if (wideScopeSubscriptionCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, + (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + wideScopeSubscription_); + } + 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.eventarc.v1.GoogleApiSource)) { + return super.equals(obj); + } + com.google.cloud.eventarc.v1.GoogleApiSource other = + (com.google.cloud.eventarc.v1.GoogleApiSource) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDestination().equals(other.getDestination())) return false; + if (!getCryptoKeyName().equals(other.getCryptoKeyName())) return false; + if (hasLoggingConfig() != other.hasLoggingConfig()) return false; + if (hasLoggingConfig()) { + if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; + } + if (!getWideScopeSubscriptionCase().equals(other.getWideScopeSubscriptionCase())) return false; + switch (wideScopeSubscriptionCase_) { + case 12: + if (!getOrganizationSubscription().equals(other.getOrganizationSubscription())) + return false; + break; + case 13: + if (!getProjectSubscriptions().equals(other.getProjectSubscriptions())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination().hashCode(); + hash = (37 * hash) + CRYPTO_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCryptoKeyName().hashCode(); + if (hasLoggingConfig()) { + hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLoggingConfig().hashCode(); + } + switch (wideScopeSubscriptionCase_) { + case 12: + hash = (37 * hash) + ORGANIZATION_SUBSCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationSubscription().hashCode(); + break; + case 13: + hash = (37 * hash) + PROJECT_SUBSCRIPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getProjectSubscriptions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource 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.eventarc.v1.GoogleApiSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource 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.eventarc.v1.GoogleApiSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource 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.eventarc.v1.GoogleApiSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.eventarc.v1.GoogleApiSource 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.eventarc.v1.GoogleApiSource 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 GoogleApiSource represents a subscription of 1P events from a MessageBus.
    +   * 
    + * + * Protobuf type {@code google.cloud.eventarc.v1.GoogleApiSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.eventarc.v1.GoogleApiSource) + com.google.cloud.eventarc.v1.GoogleApiSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetLabels(); + case 7: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 6: + return internalGetMutableLabels(); + case 7: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( com.google.cloud.eventarc.v1.GoogleApiSource.class, com.google.cloud.eventarc.v1.GoogleApiSource.Builder.class); } - // Construct using com.google.cloud.eventarc.v1.GoogleApiSource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + // Construct using com.google.cloud.eventarc.v1.GoogleApiSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCreateTimeFieldBuilder(); + getUpdateTimeFieldBuilder(); + getLoggingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + etag_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + internalGetMutableAnnotations().clear(); + displayName_ = ""; + destination_ = ""; + cryptoKeyName_ = ""; + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; + } + if (organizationSubscriptionBuilder_ != null) { + organizationSubscriptionBuilder_.clear(); + } + if (projectSubscriptionsBuilder_ != null) { + projectSubscriptionsBuilder_.clear(); + } + wideScopeSubscriptionCase_ = 0; + wideScopeSubscription_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.eventarc.v1.GoogleApiSourceProto + .internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource getDefaultInstanceForType() { + return com.google.cloud.eventarc.v1.GoogleApiSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource build() { + com.google.cloud.eventarc.v1.GoogleApiSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource buildPartial() { + com.google.cloud.eventarc.v1.GoogleApiSource result = + new com.google.cloud.eventarc.v1.GoogleApiSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.eventarc.v1.GoogleApiSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.destination_ = destination_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.cryptoKeyName_ = cryptoKeyName_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.loggingConfig_ = + loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.eventarc.v1.GoogleApiSource result) { + result.wideScopeSubscriptionCase_ = wideScopeSubscriptionCase_; + result.wideScopeSubscription_ = this.wideScopeSubscription_; + if (wideScopeSubscriptionCase_ == 12 && organizationSubscriptionBuilder_ != null) { + result.wideScopeSubscription_ = organizationSubscriptionBuilder_.build(); + } + if (wideScopeSubscriptionCase_ == 13 && projectSubscriptionsBuilder_ != null) { + result.wideScopeSubscription_ = projectSubscriptionsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.eventarc.v1.GoogleApiSource) { + return mergeFrom((com.google.cloud.eventarc.v1.GoogleApiSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.eventarc.v1.GoogleApiSource other) { + if (other == com.google.cloud.eventarc.v1.GoogleApiSource.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000040; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getDestination().isEmpty()) { + destination_ = other.destination_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getCryptoKeyName().isEmpty()) { + cryptoKeyName_ = other.cryptoKeyName_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasLoggingConfig()) { + mergeLoggingConfig(other.getLoggingConfig()); + } + switch (other.getWideScopeSubscriptionCase()) { + case ORGANIZATION_SUBSCRIPTION: + { + mergeOrganizationSubscription(other.getOrganizationSubscription()); + break; + } + case PROJECT_SUBSCRIPTIONS: + { + mergeProjectSubscriptions(other.getProjectSubscriptions()); + break; + } + case WIDESCOPESUBSCRIPTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + destination_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + cryptoKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + input.readMessage( + getOrganizationSubscriptionFieldBuilder().getBuilder(), extensionRegistry); + wideScopeSubscriptionCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getProjectSubscriptionsFieldBuilder().getBuilder(), extensionRegistry); + wideScopeSubscriptionCase_ = 13; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCreateTimeFieldBuilder(); - getUpdateTimeFieldBuilder(); - getLoggingConfigFieldBuilder(); - } + private int wideScopeSubscriptionCase_ = 0; + private java.lang.Object wideScopeSubscription_; + + public WideScopeSubscriptionCase getWideScopeSubscriptionCase() { + return WideScopeSubscriptionCase.forNumber(wideScopeSubscriptionCase_); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - uid_ = ""; - etag_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder clearWideScopeSubscription() { + wideScopeSubscriptionCase_ = 0; + wideScopeSubscription_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Identifier. Resource name of the form
    +     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + } + + /** + * + * + *
    +     * Identifier. Resource name of the form
    +     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - internalGetMutableLabels().clear(); - internalGetMutableAnnotations().clear(); - displayName_ = ""; - destination_ = ""; - cryptoKeyName_ = ""; - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; + } + + /** + * + * + *
    +     * Identifier. Resource name of the form
    +     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.eventarc.v1.GoogleApiSourceProto - .internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor; - } - - @java.lang.Override - public com.google.cloud.eventarc.v1.GoogleApiSource getDefaultInstanceForType() { - return com.google.cloud.eventarc.v1.GoogleApiSource.getDefaultInstance(); + /** + * + * + *
    +     * Identifier. Resource name of the form
    +     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.eventarc.v1.GoogleApiSource build() { - com.google.cloud.eventarc.v1.GoogleApiSource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
    +     * Identifier. Resource name of the form
    +     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * 
    + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return result; + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.eventarc.v1.GoogleApiSource buildPartial() { - com.google.cloud.eventarc.v1.GoogleApiSource result = - new com.google.cloud.eventarc.v1.GoogleApiSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + private java.lang.Object uid_ = ""; - private void buildPartial0(com.google.cloud.eventarc.v1.GoogleApiSource result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uid_ = uid_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.etag_ = etag_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.destination_ = destination_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.cryptoKeyName_ = cryptoKeyName_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.loggingConfig_ = - loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; + /** + * + * + *
    +     * Output only. Server assigned unique identifier for the channel. The value
    +     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    +     * deleted.
    +     * 
    + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @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; } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
    +     * Output only. Server assigned unique identifier for the channel. The value
    +     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    +     * deleted.
    +     * 
    + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @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; + } } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
    +     * Output only. Server assigned unique identifier for the channel. The value
    +     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    +     * deleted.
    +     * 
    + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
    +     * Output only. Server assigned unique identifier for the channel. The value
    +     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    +     * deleted.
    +     * 
    + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + /** + * + * + *
    +     * Output only. Server assigned unique identifier for the channel. The value
    +     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    +     * deleted.
    +     * 
    + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } + private java.lang.Object etag_ = ""; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.eventarc.v1.GoogleApiSource) { - return mergeFrom((com.google.cloud.eventarc.v1.GoogleApiSource) other); + /** + * + * + *
    +     * Output only. This checksum is computed by the server based on the value of
    +     * other fields, and might be sent only on update and delete requests to
    +     * ensure that the client has an up-to-date value before proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 { - super.mergeFrom(other); - return this; + return (java.lang.String) ref; } } - public Builder mergeFrom(com.google.cloud.eventarc.v1.GoogleApiSource other) { - if (other == com.google.cloud.eventarc.v1.GoogleApiSource.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000020; - internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); - bitField0_ |= 0x00000040; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getDestination().isEmpty()) { - destination_ = other.destination_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getCryptoKeyName().isEmpty()) { - cryptoKeyName_ = other.cryptoKeyName_; - bitField0_ |= 0x00000200; - onChanged(); + /** + * + * + *
    +     * Output only. This checksum is computed by the server based on the value of
    +     * other fields, and might be sent only on update and delete requests to
    +     * ensure that the client has an up-to-date value before proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; } - if (other.hasLoggingConfig()) { - mergeLoggingConfig(other.getLoggingConfig()); + } + + /** + * + * + *
    +     * Output only. This checksum is computed by the server based on the value of
    +     * other fields, and might be sent only on update and delete requests to
    +     * ensure that the client has an up-to-date value before proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + etag_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
    +     * Output only. This checksum is computed by the server based on the value of
    +     * other fields, and might be sent only on update and delete requests to
    +     * ensure that the client has an up-to-date value before proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - uid_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - com.google.protobuf.MapEntry annotations__ = - input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableAnnotations() - .getMutableMap() - .put(annotations__.getKey(), annotations__.getValue()); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 66 - case 74: - { - destination_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: - { - cryptoKeyName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 82 - case 90: - { - input.readMessage(getLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - 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 + /** + * + * + *
    +     * Output only. This checksum is computed by the server based on the value of
    +     * other fields, and might be sent only on update and delete requests to
    +     * ensure that the client has an up-to-date value before proceeding.
    +     * 
    + * + * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); return this; } - private int bitField0_; - - private java.lang.Object name_ = ""; + 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_; /** * * *
    -     * Identifier. Resource name of the form
    -     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * Output only. The creation time.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The name. + * @return Whether the createTime field is set. */ - 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; - } + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
    -     * Identifier. Resource name of the form
    -     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * Output only. The creation time.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for name. + * @return The createTime. */ - 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; + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { - return (com.google.protobuf.ByteString) ref; + return createTimeBuilder_.getMessage(); } } @@ -1544,21 +3655,23 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
    -     * Identifier. Resource name of the form
    -     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * Output only. The creation time.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); } - name_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1567,17 +3680,20 @@ public Builder setName(java.lang.String value) { * * *
    -     * Identifier. Resource name of the form
    -     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * Output only. The creation time.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1586,52 +3702,89 @@ public Builder clearName() { * * *
    -     * Identifier. Resource name of the form
    -     * projects/{project}/locations/{location}/googleApiSources/{google_api_source}
    +     * Output only. The creation time.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + *
    +     * Output only. The creation time.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object uid_ = ""; - /** * * *
    -     * Output only. Server assigned unique identifier for the channel. The value
    -     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    -     * deleted.
    +     * Output only. The creation time.
          * 
    * * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + + /** * - * @return The uid. + * + *
    +     * Output only. The creation time.
    +     * 
    + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } @@ -1639,176 +3792,172 @@ public java.lang.String getUid() { * * *
    -     * Output only. Server assigned unique identifier for the channel. The value
    -     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    -     * deleted.
    +     * Output only. The creation time.
          * 
    * * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * .google.protobuf.Timestamp create_time = 4 [(.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; + 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. Server assigned unique identifier for the channel. The value
    -     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    -     * deleted.
    +     * Output only. The last-modified time.
          * 
    * * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * .google.protobuf.Timestamp update_time = 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; - bitField0_ |= 0x00000002; - onChanged(); - return this; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
    -     * Output only. Server assigned unique identifier for the channel. The value
    -     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    -     * deleted.
    +     * Output only. The last-modified time.
          * 
    * * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return This builder for chaining. + * @return The updateTime. */ - public Builder clearUid() { - uid_ = getDefaultInstance().getUid(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } } /** * * *
    -     * Output only. Server assigned unique identifier for the channel. The value
    -     * is a UUID4 string and guaranteed to remain unchanged until the resource is
    -     * deleted.
    +     * Output only. The last-modified time.
          * 
    * * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * .google.protobuf.Timestamp update_time = 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(); + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - uid_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } - private java.lang.Object etag_ = ""; - /** * * *
    -     * Output only. This checksum is computed by the server based on the value of
    -     * other fields, and might be sent only on update and delete requests to
    -     * ensure that the client has an up-to-date value before proceeding.
    +     * Output only. The last-modified time.
          * 
    * - * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The etag. + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); } else { - return (java.lang.String) ref; + updateTimeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000010; + onChanged(); + return this; } /** * * *
    -     * Output only. This checksum is computed by the server based on the value of
    -     * other fields, and might be sent only on update and delete requests to
    -     * ensure that the client has an up-to-date value before proceeding.
    +     * Output only. The last-modified time.
          * 
    * - * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for etag. + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ByteString getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - etag_ = b; - return b; + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); } + return this; } /** * * *
    -     * Output only. This checksum is computed by the server based on the value of
    -     * other fields, and might be sent only on update and delete requests to
    -     * ensure that the client has an up-to-date value before proceeding.
    +     * Output only. The last-modified time.
          * 
    * - * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The etag to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEtag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; } - etag_ = value; - bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1817,168 +3966,177 @@ public Builder setEtag(java.lang.String value) { * * *
    -     * Output only. This checksum is computed by the server based on the value of
    -     * other fields, and might be sent only on update and delete requests to
    -     * ensure that the client has an up-to-date value before proceeding.
    +     * Output only. The last-modified time.
          * 
    * - * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearEtag() { - etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000004); + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; onChanged(); - return this; + return getUpdateTimeFieldBuilder().getBuilder(); } /** * * *
    -     * Output only. This checksum is computed by the server based on the value of
    -     * other fields, and might be sent only on update and delete requests to
    -     * ensure that the client has an up-to-date value before proceeding.
    +     * Output only. The last-modified time.
          * 
    * - * string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for etag to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEtagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; } - checkByteStringIsUtf8(value); - etag_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** * * *
    -     * Output only. The creation time.
    +     * Output only. The last-modified time.
          * 
    * * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000008) != 0); + 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.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); } /** * * *
    -     * Output only. The creation time.
    +     * Optional. Resource labels.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The createTime. + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); } /** * * *
    -     * Output only. The creation time.
    +     * Optional. Resource labels.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); } /** * * *
    -     * Output only. The creation time.
    +     * Optional. Resource labels.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000008; - onChanged(); - return this; + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
    -     * Output only. The creation time.
    +     * Optional. Resource labels.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (createTime_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -1986,159 +4144,178 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. The creation time.
    +     * Optional. Resource labels.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000008); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + internalGetMutableLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + /** * * *
    -     * Output only. The creation time.
    +     * Optional. Resource labels.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; + return this; } /** * * *
    -     * Output only. The creation time.
    +     * Optional. Resource labels.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); } /** * * *
    -     * Output only. The creation time.
    +     * Optional. Resource annotations.
          * 
    * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - 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; + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - return createTimeBuilder_; + return internalGetAnnotations().getMap().containsKey(key); } - 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_; + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } /** * * *
    -     * Output only. The last-modified time.
    +     * Optional. Resource annotations.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the updateTime field is set. */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000010) != 0); + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); } /** * * *
    -     * Output only. The last-modified time.
    +     * Optional. Resource annotations.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @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(); + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
    -     * Output only. The last-modified time.
    +     * Optional. Resource annotations.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - bitField0_ |= 0x00000010; - onChanged(); + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableAnnotations().getMutableMap().clear(); return this; } @@ -2146,51 +4323,46 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. The last-modified time.
    +     * Optional. Resource annotations.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000010; - onChanged(); + internalGetMutableAnnotations().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000040; + return internalGetMutableAnnotations().getMutableMap(); + } + /** * * *
    -     * Output only. The last-modified time.
    +     * Optional. Resource annotations.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); } - if (updateTime_ != null) { - bitField0_ |= 0x00000010; - onChanged(); + if (value == null) { + throw new NullPointerException("map value"); } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; return this; } @@ -2198,59 +4370,63 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
    -     * Output only. The last-modified time.
    +     * Optional. Resource annotations.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; return this; } + private java.lang.Object displayName_ = ""; + /** * * *
    -     * Output only. The last-modified time.
    +     * Optional. Resource display name.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); + 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 last-modified time.
    +     * Optional. Resource display name.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); + 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 updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return (com.google.protobuf.ByteString) ref; } } @@ -2258,139 +4434,147 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
    -     * Output only. The last-modified time.
    +     * Optional. Resource display name.
          * 
    * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - 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.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000020; + displayName_ = value; + bitField0_ |= 0x00000080; onChanged(); - return labels_; + return this; } - public int getLabelsCount() { - return internalGetLabels().getMap().size(); + /** + * + * + *
    +     * Optional. Resource display name.
    +     * 
    + * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; } /** * * *
    -     * Optional. Resource labels.
    +     * Optional. Resource display name.
          * 
    * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return internalGetLabels().getMap().containsKey(key); + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; } - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } + private java.lang.Object destination_ = ""; /** * * *
    -     * Optional. Resource labels.
    +     * Required. Destination is the message bus that the GoogleApiSource is
    +     * delivering to. It must be point to the full resource name of a MessageBus.
    +     * Format:
    +     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
          * 
    * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destination. */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destination_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
    -     * Optional. Resource labels.
    +     * Required. Destination is the message bus that the GoogleApiSource is
    +     * delivering to. It must be point to the full resource name of a MessageBus.
    +     * Format:
    +     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
          * 
    * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + * + * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destination. + */ + public com.google.protobuf.ByteString getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
    -     * Optional. Resource labels.
    +     * Required. Destination is the message bus that the GoogleApiSource is
    +     * delivering to. It must be point to the full resource name of a MessageBus.
    +     * Format:
    +     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
          * 
    * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The destination to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setDestination(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000020); - internalGetMutableLabels().getMutableMap().clear(); + destination_ = value; + bitField0_ |= 0x00000100; + onChanged(); return this; } @@ -2398,310 +4582,337 @@ public Builder clearLabels() { * * *
    -     * Optional. Resource labels.
    +     * Required. Destination is the message bus that the GoogleApiSource is
    +     * delivering to. It must be point to the full resource name of a MessageBus.
    +     * Format:
    +     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
          * 
    * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); + public Builder clearDestination() { + destination_ = getDefaultInstance().getDestination(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000020; - return internalGetMutableLabels().getMutableMap(); - } - /** * * *
    -     * Optional. Resource labels.
    +     * Required. Destination is the message bus that the GoogleApiSource is
    +     * delivering to. It must be point to the full resource name of a MessageBus.
    +     * Format:
    +     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
          * 
    * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for destination to set. + * @return This builder for chaining. */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } + public Builder setDestinationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException("map value"); + throw new NullPointerException(); } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000020; + checkByteStringIsUtf8(value); + destination_ = value; + bitField0_ |= 0x00000100; + onChanged(); return this; } + private java.lang.Object cryptoKeyName_ = ""; + /** * * *
    -     * Optional. Resource labels.
    +     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    +     * encrypt/decrypt their event data.
    +     *
    +     * It must match the pattern
    +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
          * 
    * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The cryptoKeyName. */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000020; - return this; - } - - private com.google.protobuf.MapField annotations_; - - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - if (annotations_ == null) { - annotations_ = - com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); + public java.lang.String getCryptoKeyName() { + java.lang.Object ref = cryptoKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cryptoKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; } - bitField0_ |= 0x00000040; - onChanged(); - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); } /** * * *
    -     * Optional. Resource annotations.
    +     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    +     * encrypt/decrypt their event data.
    +     *
    +     * It must match the pattern
    +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
          * 
    * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @return The bytes for cryptoKeyName. */ - @java.lang.Override - public boolean containsAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.protobuf.ByteString getCryptoKeyNameBytes() { + java.lang.Object ref = cryptoKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cryptoKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return internalGetAnnotations().getMap().containsKey(key); - } - - /** Use {@link #getAnnotationsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); } /** * * *
    -     * Optional. Resource annotations.
    +     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    +     * encrypt/decrypt their event data.
    +     *
    +     * It must match the pattern
    +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
          * 
    * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @param value The cryptoKeyName to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); + public Builder setCryptoKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cryptoKeyName_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
    -     * Optional. Resource annotations.
    +     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    +     * encrypt/decrypt their event data.
    +     *
    +     * It must match the pattern
    +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
          * 
    * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @return This builder for chaining. */ - @java.lang.Override - public /* nullable */ java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + public Builder clearCryptoKeyName() { + cryptoKeyName_ = getDefaultInstance().getCryptoKeyName(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; } /** * * *
    -     * Optional. Resource annotations.
    +     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    +     * encrypt/decrypt their event data.
    +     *
    +     * It must match the pattern
    +     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
          * 
    * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for cryptoKeyName to set. + * @return This builder for chaining. */ - @java.lang.Override - public java.lang.String getAnnotationsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return map.get(key); - } - - public Builder clearAnnotations() { - bitField0_ = (bitField0_ & ~0x00000040); - internalGetMutableAnnotations().getMutableMap().clear(); + checkByteStringIsUtf8(value); + cryptoKeyName_ = value; + bitField0_ |= 0x00000200; + onChanged(); return this; } + private com.google.cloud.eventarc.v1.LoggingConfig loggingConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.eventarc.v1.LoggingConfig, + com.google.cloud.eventarc.v1.LoggingConfig.Builder, + com.google.cloud.eventarc.v1.LoggingConfigOrBuilder> + loggingConfigBuilder_; + /** * * *
    -     * Optional. Resource annotations.
    +     * Optional. Config to control Platform logging for the GoogleApiSource.
          * 
    * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the loggingConfig field is set. */ - public Builder removeAnnotations(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotations().getMutableMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableAnnotations() { - bitField0_ |= 0x00000040; - return internalGetMutableAnnotations().getMutableMap(); + public boolean hasLoggingConfig() { + return ((bitField0_ & 0x00000400) != 0); } /** * * *
    -     * Optional. Resource annotations.
    +     * Optional. Config to control Platform logging for the GoogleApiSource.
          * 
    * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The loggingConfig. */ - public Builder putAnnotations(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); + public com.google.cloud.eventarc.v1.LoggingConfig getLoggingConfig() { + if (loggingConfigBuilder_ == null) { + return loggingConfig_ == null + ? com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; + } else { + return loggingConfigBuilder_.getMessage(); } - internalGetMutableAnnotations().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; - return this; } /** * * *
    -     * Optional. Resource annotations.
    +     * Optional. Config to control Platform logging for the GoogleApiSource.
          * 
    * - * map<string, string> annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder putAllAnnotations(java.util.Map values) { - internalGetMutableAnnotations().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; + public Builder setLoggingConfig(com.google.cloud.eventarc.v1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + loggingConfig_ = value; + } else { + loggingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); return this; } - private java.lang.Object displayName_ = ""; - /** * * *
    -     * Optional. Resource display name.
    +     * Optional. Config to control Platform logging for the GoogleApiSource.
          * 
    * - * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The displayName. + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - 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; + public Builder setLoggingConfig( + com.google.cloud.eventarc.v1.LoggingConfig.Builder builderForValue) { + if (loggingConfigBuilder_ == null) { + loggingConfig_ = builderForValue.build(); } else { - return (java.lang.String) ref; + loggingConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000400; + onChanged(); + return this; } /** * * *
    -     * Optional. Resource display name.
    +     * Optional. Config to control Platform logging for the GoogleApiSource.
          * 
    * - * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for displayName. + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - 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; + public Builder mergeLoggingConfig(com.google.cloud.eventarc.v1.LoggingConfig value) { + if (loggingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && loggingConfig_ != null + && loggingConfig_ != com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance()) { + getLoggingConfigBuilder().mergeFrom(value); + } else { + loggingConfig_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + loggingConfigBuilder_.mergeFrom(value); + } + if (loggingConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); } + return this; } /** * * *
    -     * Optional. Resource display name.
    +     * Optional. Config to control Platform logging for the GoogleApiSource.
          * 
    * - * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The displayName to set. - * @return This builder for chaining. + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearLoggingConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + loggingConfig_ = null; + if (loggingConfigBuilder_ != null) { + loggingConfigBuilder_.dispose(); + loggingConfigBuilder_ = null; } - displayName_ = value; - bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2710,148 +4921,150 @@ public Builder setDisplayName(java.lang.String value) { * * *
    -     * Optional. Resource display name.
    +     * Optional. Config to control Platform logging for the GoogleApiSource.
          * 
    * - * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000080); + public com.google.cloud.eventarc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { + bitField0_ |= 0x00000400; onChanged(); - return this; + return getLoggingConfigFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Resource display name.
    +     * Optional. Config to control Platform logging for the GoogleApiSource.
          * 
    * - * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.eventarc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { + if (loggingConfigBuilder_ != null) { + return loggingConfigBuilder_.getMessageOrBuilder(); + } else { + return loggingConfig_ == null + ? com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance() + : loggingConfig_; } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; } - private java.lang.Object destination_ = ""; - /** * * *
    -     * Required. Destination is the message bus that the GoogleApiSource is
    -     * delivering to. It must be point to the full resource name of a MessageBus.
    -     * Format:
    -     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
    +     * Optional. Config to control Platform logging for the GoogleApiSource.
          * 
    * * - * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The destination. */ - public java.lang.String getDestination() { - java.lang.Object ref = destination_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destination_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.eventarc.v1.LoggingConfig, + com.google.cloud.eventarc.v1.LoggingConfig.Builder, + com.google.cloud.eventarc.v1.LoggingConfigOrBuilder> + getLoggingConfigFieldBuilder() { + if (loggingConfigBuilder_ == null) { + loggingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.eventarc.v1.LoggingConfig, + com.google.cloud.eventarc.v1.LoggingConfig.Builder, + com.google.cloud.eventarc.v1.LoggingConfigOrBuilder>( + getLoggingConfig(), getParentForChildren(), isClean()); + loggingConfig_ = null; } + return loggingConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription, + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.Builder, + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscriptionOrBuilder> + organizationSubscriptionBuilder_; + /** * * *
    -     * Required. Destination is the message bus that the GoogleApiSource is
    -     * delivering to. It must be point to the full resource name of a MessageBus.
    -     * Format:
    -     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
    +     * Optional. Config to enable subscribing to events from all projects in the
    +     * GoogleApiSource's org.
          * 
    * * - * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The bytes for destination. + * @return Whether the organizationSubscription field is set. */ - public com.google.protobuf.ByteString getDestinationBytes() { - java.lang.Object ref = destination_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - destination_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public boolean hasOrganizationSubscription() { + return wideScopeSubscriptionCase_ == 12; } /** * * *
    -     * Required. Destination is the message bus that the GoogleApiSource is
    -     * delivering to. It must be point to the full resource name of a MessageBus.
    -     * Format:
    -     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
    +     * Optional. Config to enable subscribing to events from all projects in the
    +     * GoogleApiSource's org.
          * 
    * * - * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The destination to set. - * @return This builder for chaining. + * @return The organizationSubscription. */ - public Builder setDestination(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + getOrganizationSubscription() { + if (organizationSubscriptionBuilder_ == null) { + if (wideScopeSubscriptionCase_ == 12) { + return (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + wideScopeSubscription_; + } + return com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + .getDefaultInstance(); + } else { + if (wideScopeSubscriptionCase_ == 12) { + return organizationSubscriptionBuilder_.getMessage(); + } + return com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + .getDefaultInstance(); } - destination_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; } /** * * *
    -     * Required. Destination is the message bus that the GoogleApiSource is
    -     * delivering to. It must be point to the full resource name of a MessageBus.
    -     * Format:
    -     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
    +     * Optional. Config to enable subscribing to events from all projects in the
    +     * GoogleApiSource's org.
          * 
    * * - * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearDestination() { - destination_ = getDefaultInstance().getDestination(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); + public Builder setOrganizationSubscription( + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription value) { + if (organizationSubscriptionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wideScopeSubscription_ = value; + onChanged(); + } else { + organizationSubscriptionBuilder_.setMessage(value); + } + wideScopeSubscriptionCase_ = 12; return this; } @@ -2859,215 +5072,238 @@ public Builder clearDestination() { * * *
    -     * Required. Destination is the message bus that the GoogleApiSource is
    -     * delivering to. It must be point to the full resource name of a MessageBus.
    -     * Format:
    -     * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID)
    +     * Optional. Config to enable subscribing to events from all projects in the
    +     * GoogleApiSource's org.
          * 
    * * - * string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The bytes for destination to set. - * @return This builder for chaining. */ - public Builder setDestinationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setOrganizationSubscription( + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.Builder + builderForValue) { + if (organizationSubscriptionBuilder_ == null) { + wideScopeSubscription_ = builderForValue.build(); + onChanged(); + } else { + organizationSubscriptionBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - destination_ = value; - bitField0_ |= 0x00000100; - onChanged(); + wideScopeSubscriptionCase_ = 12; return this; } - private java.lang.Object cryptoKeyName_ = ""; - /** * * *
    -     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    -     * encrypt/decrypt their event data.
    -     *
    -     * It must match the pattern
    -     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    +     * Optional. Config to enable subscribing to events from all projects in the
    +     * GoogleApiSource's org.
          * 
    * * - * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The cryptoKeyName. */ - public java.lang.String getCryptoKeyName() { - java.lang.Object ref = cryptoKeyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cryptoKeyName_ = s; - return s; + public Builder mergeOrganizationSubscription( + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription value) { + if (organizationSubscriptionBuilder_ == null) { + if (wideScopeSubscriptionCase_ == 12 + && wideScopeSubscription_ + != com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + .getDefaultInstance()) { + wideScopeSubscription_ = + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.newBuilder( + (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + wideScopeSubscription_) + .mergeFrom(value) + .buildPartial(); + } else { + wideScopeSubscription_ = value; + } + onChanged(); } else { - return (java.lang.String) ref; + if (wideScopeSubscriptionCase_ == 12) { + organizationSubscriptionBuilder_.mergeFrom(value); + } else { + organizationSubscriptionBuilder_.setMessage(value); + } } + wideScopeSubscriptionCase_ = 12; + return this; } /** * * *
    -     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    -     * encrypt/decrypt their event data.
    -     *
    -     * It must match the pattern
    -     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    +     * Optional. Config to enable subscribing to events from all projects in the
    +     * GoogleApiSource's org.
          * 
    * * - * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The bytes for cryptoKeyName. */ - public com.google.protobuf.ByteString getCryptoKeyNameBytes() { - java.lang.Object ref = cryptoKeyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - cryptoKeyName_ = b; - return b; + public Builder clearOrganizationSubscription() { + if (organizationSubscriptionBuilder_ == null) { + if (wideScopeSubscriptionCase_ == 12) { + wideScopeSubscriptionCase_ = 0; + wideScopeSubscription_ = null; + onChanged(); + } } else { - return (com.google.protobuf.ByteString) ref; + if (wideScopeSubscriptionCase_ == 12) { + wideScopeSubscriptionCase_ = 0; + wideScopeSubscription_ = null; + } + organizationSubscriptionBuilder_.clear(); } + return this; } /** * * *
    -     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    -     * encrypt/decrypt their event data.
    -     *
    -     * It must match the pattern
    -     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    +     * Optional. Config to enable subscribing to events from all projects in the
    +     * GoogleApiSource's org.
          * 
    * * - * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The cryptoKeyName to set. - * @return This builder for chaining. */ - public Builder setCryptoKeyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - cryptoKeyName_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + public com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.Builder + getOrganizationSubscriptionBuilder() { + return getOrganizationSubscriptionFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    -     * encrypt/decrypt their event data.
    -     *
    -     * It must match the pattern
    -     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    +     * Optional. Config to enable subscribing to events from all projects in the
    +     * GoogleApiSource's org.
          * 
    * * - * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearCryptoKeyName() { - cryptoKeyName_ = getDefaultInstance().getCryptoKeyName(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscriptionOrBuilder + getOrganizationSubscriptionOrBuilder() { + if ((wideScopeSubscriptionCase_ == 12) && (organizationSubscriptionBuilder_ != null)) { + return organizationSubscriptionBuilder_.getMessageOrBuilder(); + } else { + if (wideScopeSubscriptionCase_ == 12) { + return (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + wideScopeSubscription_; + } + return com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + .getDefaultInstance(); + } } /** * * *
    -     * Optional. Resource name of a KMS crypto key (managed by the user) used to
    -     * encrypt/decrypt their event data.
    -     *
    -     * It must match the pattern
    -     * `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
    +     * Optional. Config to enable subscribing to events from all projects in the
    +     * GoogleApiSource's org.
          * 
    * * - * string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The bytes for cryptoKeyName to set. - * @return This builder for chaining. */ - public Builder setCryptoKeyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription, + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.Builder, + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscriptionOrBuilder> + getOrganizationSubscriptionFieldBuilder() { + if (organizationSubscriptionBuilder_ == null) { + if (!(wideScopeSubscriptionCase_ == 12)) { + wideScopeSubscription_ = + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + .getDefaultInstance(); + } + organizationSubscriptionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription, + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription.Builder, + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscriptionOrBuilder>( + (com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription) + wideScopeSubscription_, + getParentForChildren(), + isClean()); + wideScopeSubscription_ = null; } - checkByteStringIsUtf8(value); - cryptoKeyName_ = value; - bitField0_ |= 0x00000200; + wideScopeSubscriptionCase_ = 12; onChanged(); - return this; + return organizationSubscriptionBuilder_; } - private com.google.cloud.eventarc.v1.LoggingConfig loggingConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.eventarc.v1.LoggingConfig, - com.google.cloud.eventarc.v1.LoggingConfig.Builder, - com.google.cloud.eventarc.v1.LoggingConfigOrBuilder> - loggingConfigBuilder_; + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions, + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.Builder, + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptionsOrBuilder> + projectSubscriptionsBuilder_; /** * * *
    -     * Optional. Config to control Platform logging for the GoogleApiSource.
    +     * Optional. Config to enable subscribing to all events from a list of
    +     * projects.
    +     *
    +     * All the projects must be in the same org as the GoogleApiSource.
          * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the loggingConfig field is set. + * @return Whether the projectSubscriptions field is set. */ - public boolean hasLoggingConfig() { - return ((bitField0_ & 0x00000400) != 0); + @java.lang.Override + public boolean hasProjectSubscriptions() { + return wideScopeSubscriptionCase_ == 13; } /** * * *
    -     * Optional. Config to control Platform logging for the GoogleApiSource.
    +     * Optional. Config to enable subscribing to all events from a list of
    +     * projects.
    +     *
    +     * All the projects must be in the same org as the GoogleApiSource.
          * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The loggingConfig. + * @return The projectSubscriptions. */ - public com.google.cloud.eventarc.v1.LoggingConfig getLoggingConfig() { - if (loggingConfigBuilder_ == null) { - return loggingConfig_ == null - ? com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + getProjectSubscriptions() { + if (projectSubscriptionsBuilder_ == null) { + if (wideScopeSubscriptionCase_ == 13) { + return (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + wideScopeSubscription_; + } + return com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + .getDefaultInstance(); } else { - return loggingConfigBuilder_.getMessage(); + if (wideScopeSubscriptionCase_ == 13) { + return projectSubscriptionsBuilder_.getMessage(); + } + return com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + .getDefaultInstance(); } } @@ -3075,24 +5311,28 @@ public com.google.cloud.eventarc.v1.LoggingConfig getLoggingConfig() { * * *
    -     * Optional. Config to control Platform logging for the GoogleApiSource.
    +     * Optional. Config to enable subscribing to all events from a list of
    +     * projects.
    +     *
    +     * All the projects must be in the same org as the GoogleApiSource.
          * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setLoggingConfig(com.google.cloud.eventarc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { + public Builder setProjectSubscriptions( + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions value) { + if (projectSubscriptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - loggingConfig_ = value; + wideScopeSubscription_ = value; + onChanged(); } else { - loggingConfigBuilder_.setMessage(value); + projectSubscriptionsBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; - onChanged(); + wideScopeSubscriptionCase_ = 13; return this; } @@ -3100,22 +5340,25 @@ public Builder setLoggingConfig(com.google.cloud.eventarc.v1.LoggingConfig value * * *
    -     * Optional. Config to control Platform logging for the GoogleApiSource.
    +     * Optional. Config to enable subscribing to all events from a list of
    +     * projects.
    +     *
    +     * All the projects must be in the same org as the GoogleApiSource.
          * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setLoggingConfig( - com.google.cloud.eventarc.v1.LoggingConfig.Builder builderForValue) { - if (loggingConfigBuilder_ == null) { - loggingConfig_ = builderForValue.build(); + public Builder setProjectSubscriptions( + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.Builder builderForValue) { + if (projectSubscriptionsBuilder_ == null) { + wideScopeSubscription_ = builderForValue.build(); + onChanged(); } else { - loggingConfigBuilder_.setMessage(builderForValue.build()); + projectSubscriptionsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; - onChanged(); + wideScopeSubscriptionCase_ = 13; return this; } @@ -3123,29 +5366,41 @@ public Builder setLoggingConfig( * * *
    -     * Optional. Config to control Platform logging for the GoogleApiSource.
    +     * Optional. Config to enable subscribing to all events from a list of
    +     * projects.
    +     *
    +     * All the projects must be in the same org as the GoogleApiSource.
          * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeLoggingConfig(com.google.cloud.eventarc.v1.LoggingConfig value) { - if (loggingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && loggingConfig_ != null - && loggingConfig_ != com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance()) { - getLoggingConfigBuilder().mergeFrom(value); + public Builder mergeProjectSubscriptions( + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions value) { + if (projectSubscriptionsBuilder_ == null) { + if (wideScopeSubscriptionCase_ == 13 + && wideScopeSubscription_ + != com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + .getDefaultInstance()) { + wideScopeSubscription_ = + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.newBuilder( + (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + wideScopeSubscription_) + .mergeFrom(value) + .buildPartial(); } else { - loggingConfig_ = value; + wideScopeSubscription_ = value; } - } else { - loggingConfigBuilder_.mergeFrom(value); - } - if (loggingConfig_ != null) { - bitField0_ |= 0x00000400; onChanged(); + } else { + if (wideScopeSubscriptionCase_ == 13) { + projectSubscriptionsBuilder_.mergeFrom(value); + } else { + projectSubscriptionsBuilder_.setMessage(value); + } } + wideScopeSubscriptionCase_ = 13; return this; } @@ -3153,21 +5408,30 @@ public Builder mergeLoggingConfig(com.google.cloud.eventarc.v1.LoggingConfig val * * *
    -     * Optional. Config to control Platform logging for the GoogleApiSource.
    +     * Optional. Config to enable subscribing to all events from a list of
    +     * projects.
    +     *
    +     * All the projects must be in the same org as the GoogleApiSource.
          * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearLoggingConfig() { - bitField0_ = (bitField0_ & ~0x00000400); - loggingConfig_ = null; - if (loggingConfigBuilder_ != null) { - loggingConfigBuilder_.dispose(); - loggingConfigBuilder_ = null; + public Builder clearProjectSubscriptions() { + if (projectSubscriptionsBuilder_ == null) { + if (wideScopeSubscriptionCase_ == 13) { + wideScopeSubscriptionCase_ = 0; + wideScopeSubscription_ = null; + onChanged(); + } + } else { + if (wideScopeSubscriptionCase_ == 13) { + wideScopeSubscriptionCase_ = 0; + wideScopeSubscription_ = null; + } + projectSubscriptionsBuilder_.clear(); } - onChanged(); return this; } @@ -3175,37 +5439,47 @@ public Builder clearLoggingConfig() { * * *
    -     * Optional. Config to control Platform logging for the GoogleApiSource.
    +     * Optional. Config to enable subscribing to all events from a list of
    +     * projects.
    +     *
    +     * All the projects must be in the same org as the GoogleApiSource.
          * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.eventarc.v1.LoggingConfig.Builder getLoggingConfigBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getLoggingConfigFieldBuilder().getBuilder(); + public com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.Builder + getProjectSubscriptionsBuilder() { + return getProjectSubscriptionsFieldBuilder().getBuilder(); } /** * * *
    -     * Optional. Config to control Platform logging for the GoogleApiSource.
    +     * Optional. Config to enable subscribing to all events from a list of
    +     * projects.
    +     *
    +     * All the projects must be in the same org as the GoogleApiSource.
          * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.eventarc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder() { - if (loggingConfigBuilder_ != null) { - return loggingConfigBuilder_.getMessageOrBuilder(); + @java.lang.Override + public com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptionsOrBuilder + getProjectSubscriptionsOrBuilder() { + if ((wideScopeSubscriptionCase_ == 13) && (projectSubscriptionsBuilder_ != null)) { + return projectSubscriptionsBuilder_.getMessageOrBuilder(); } else { - return loggingConfig_ == null - ? com.google.cloud.eventarc.v1.LoggingConfig.getDefaultInstance() - : loggingConfig_; + if (wideScopeSubscriptionCase_ == 13) { + return (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + wideScopeSubscription_; + } + return com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + .getDefaultInstance(); } } @@ -3213,28 +5487,41 @@ public com.google.cloud.eventarc.v1.LoggingConfigOrBuilder getLoggingConfigOrBui * * *
    -     * Optional. Config to control Platform logging for the GoogleApiSource.
    +     * Optional. Config to enable subscribing to all events from a list of
    +     * projects.
    +     *
    +     * All the projects must be in the same org as the GoogleApiSource.
          * 
    * * - * .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.eventarc.v1.LoggingConfig, - com.google.cloud.eventarc.v1.LoggingConfig.Builder, - com.google.cloud.eventarc.v1.LoggingConfigOrBuilder> - getLoggingConfigFieldBuilder() { - if (loggingConfigBuilder_ == null) { - loggingConfigBuilder_ = + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions, + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.Builder, + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptionsOrBuilder> + getProjectSubscriptionsFieldBuilder() { + if (projectSubscriptionsBuilder_ == null) { + if (!(wideScopeSubscriptionCase_ == 13)) { + wideScopeSubscription_ = + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions + .getDefaultInstance(); + } + projectSubscriptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.eventarc.v1.LoggingConfig, - com.google.cloud.eventarc.v1.LoggingConfig.Builder, - com.google.cloud.eventarc.v1.LoggingConfigOrBuilder>( - getLoggingConfig(), getParentForChildren(), isClean()); - loggingConfig_ = null; + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions, + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions.Builder, + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptionsOrBuilder>( + (com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions) + wideScopeSubscription_, + getParentForChildren(), + isClean()); + wideScopeSubscription_ = null; } - return loggingConfigBuilder_; + wideScopeSubscriptionCase_ = 13; + onChanged(); + return projectSubscriptionsBuilder_; } @java.lang.Override diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceOrBuilder.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceOrBuilder.java index 7b69f3d22191..6b552f9d8f90 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceOrBuilder.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceOrBuilder.java @@ -469,4 +469,108 @@ java.lang.String getAnnotationsOrDefault( *
    */ com.google.cloud.eventarc.v1.LoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + * + * + *
    +   * Optional. Config to enable subscribing to events from all projects in the
    +   * GoogleApiSource's org.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the organizationSubscription field is set. + */ + boolean hasOrganizationSubscription(); + + /** + * + * + *
    +   * Optional. Config to enable subscribing to events from all projects in the
    +   * GoogleApiSource's org.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The organizationSubscription. + */ + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription + getOrganizationSubscription(); + + /** + * + * + *
    +   * Optional. Config to enable subscribing to events from all projects in the
    +   * GoogleApiSource's org.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscription organization_subscription = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.eventarc.v1.GoogleApiSource.OrganizationSubscriptionOrBuilder + getOrganizationSubscriptionOrBuilder(); + + /** + * + * + *
    +   * Optional. Config to enable subscribing to all events from a list of
    +   * projects.
    +   *
    +   * All the projects must be in the same org as the GoogleApiSource.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the projectSubscriptions field is set. + */ + boolean hasProjectSubscriptions(); + + /** + * + * + *
    +   * Optional. Config to enable subscribing to all events from a list of
    +   * projects.
    +   *
    +   * All the projects must be in the same org as the GoogleApiSource.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The projectSubscriptions. + */ + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions getProjectSubscriptions(); + + /** + * + * + *
    +   * Optional. Config to enable subscribing to all events from a list of
    +   * projects.
    +   *
    +   * All the projects must be in the same org as the GoogleApiSource.
    +   * 
    + * + * + * .google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptions project_subscriptions = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.eventarc.v1.GoogleApiSource.ProjectSubscriptionsOrBuilder + getProjectSubscriptionsOrBuilder(); + + com.google.cloud.eventarc.v1.GoogleApiSource.WideScopeSubscriptionCase + getWideScopeSubscriptionCase(); } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceProto.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceProto.java index 8fa10d07a8c1..199b8a7b198d 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceProto.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/GoogleApiSourceProto.java @@ -32,6 +32,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_eventarc_v1_GoogleApiSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_eventarc_v1_GoogleApiSource_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -55,7 +63,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/api/field_behavior.proto\032\033google/ap" + "i/field_info.proto\032\031google/api/resource." + "proto\032-google/cloud/eventarc/v1/logging_" - + "config.proto\032\037google/protobuf/timestamp.proto\"\311\006\n" + + "config.proto\032\037google/protobuf/timestamp.proto\"\225\t\n" + "\017GoogleApiSource\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\003uid\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\021\n" @@ -73,20 +81,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB)\340A\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022D\n" + "\016logging_config\030\013" - + " \001(\0132\'.google.cloud.eventarc.v1.LoggingConfigB\003\340A\001\032-\n" + + " \001(\0132\'.google.cloud.eventarc.v1.LoggingConfigB\003\340A\001\022l\n" + + "\031organization_subscription\030\014 \001(\0132B.google.cloud." + + "eventarc.v1.GoogleApiSource.OrganizationSubscriptionB\003\340A\001H\000\022d\n" + + "\025project_subscriptions\030\r" + + " \001(\0132>.google.cloud.eventarc.v1.Go" + + "ogleApiSource.ProjectSubscriptionsB\003\340A\001H\000\032)\n" + + "\024ProjectSubscriptions\022\021\n" + + "\004list\030\001 \003(\tB\003\340A\002\0320\n" + + "\030OrganizationSubscription\022\024\n" + + "\007enabled\030\001 \001(\010B\003\340A\002\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\236\001\352A\232\001\n" - + "\'eventarc.googleapis.com/GoogleApiSource\022Lprojects/{project}/loc" - + "ations/{location}/googleApiSources/{goog" - + "le_api_source}*\020googleApiSources2\017googleApiSourceB\304\001\n" - + "\034com.google.cloud.eventarc.v1B\024GoogleApiSourceProtoP\001Z8cloud.google" - + ".com/go/eventarc/apiv1/eventarcpb;eventa" - + "rcpb\252\002\030Google.Cloud.Eventarc.V1\312\002\030Google" - + "\\Cloud\\Eventarc\\V1\352\002\033Google::Cloud::Eventarc::V1b\006proto3" + + "\'eventarc.googleapis.com/GoogleApiSource\022Lprojects/{project}/locations/{locatio" + + "n}/googleApiSources/{google_api_source}*\020googleApiSources2\017googleApiSourceB\031\n" + + "\027wide_scope_subscriptionB\304\001\n" + + "\034com.google.cloud.eventarc.v1B\024GoogleApiSourceProtoP\001Z8" + + "cloud.google.com/go/eventarc/apiv1/event" + + "arcpb;eventarcpb\252\002\030Google.Cloud.Eventarc" + + ".V1\312\002\030Google\\Cloud\\Eventarc\\V1\352\002\033Google:" + + ":Cloud::Eventarc::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -115,9 +133,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Destination", "CryptoKeyName", "LoggingConfig", + "OrganizationSubscription", + "ProjectSubscriptions", + "WideScopeSubscription", }); - internal_static_google_cloud_eventarc_v1_GoogleApiSource_LabelsEntry_descriptor = + internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_descriptor = internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_v1_GoogleApiSource_ProjectSubscriptions_descriptor, + new java.lang.String[] { + "List", + }); + internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_descriptor = + internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_v1_GoogleApiSource_OrganizationSubscription_descriptor, + new java.lang.String[] { + "Enabled", + }); + internal_static_google_cloud_eventarc_v1_GoogleApiSource_LabelsEntry_descriptor = + internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor.getNestedTypes().get(2); internal_static_google_cloud_eventarc_v1_GoogleApiSource_LabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_eventarc_v1_GoogleApiSource_LabelsEntry_descriptor, @@ -125,7 +162,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_eventarc_v1_GoogleApiSource_AnnotationsEntry_descriptor = - internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_eventarc_v1_GoogleApiSource_descriptor.getNestedTypes().get(3); internal_static_google_cloud_eventarc_v1_GoogleApiSource_AnnotationsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_eventarc_v1_GoogleApiSource_AnnotationsEntry_descriptor, diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/Trigger.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/Trigger.java index 93e09434ed99..e70186185cac 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/Trigger.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/Trigger.java @@ -84,6 +84,561 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.eventarc.v1.Trigger.Builder.class); } + public interface RetryPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.v1.Trigger.RetryPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +     * Optional. The maximum number of delivery attempts for any message. The
    +     * only valid value is 1.
    +     * 
    + * + * int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxAttempts. + */ + int getMaxAttempts(); + } + + /** + * + * + *
    +   * The retry policy configuration for the Trigger.
    +   *
    +   * Can only be set with Cloud Run destinations.
    +   * 
    + * + * Protobuf type {@code google.cloud.eventarc.v1.Trigger.RetryPolicy} + */ + public static final class RetryPolicy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.eventarc.v1.Trigger.RetryPolicy) + RetryPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + // Use RetryPolicy.newBuilder() to construct. + private RetryPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RetryPolicy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RetryPolicy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.v1.TriggerProto + .internal_static_google_cloud_eventarc_v1_Trigger_RetryPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.eventarc.v1.TriggerProto + .internal_static_google_cloud_eventarc_v1_Trigger_RetryPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.eventarc.v1.Trigger.RetryPolicy.class, + com.google.cloud.eventarc.v1.Trigger.RetryPolicy.Builder.class); + } + + public static final int MAX_ATTEMPTS_FIELD_NUMBER = 1; + private int maxAttempts_ = 0; + + /** + * + * + *
    +     * Optional. The maximum number of delivery attempts for any message. The
    +     * only valid value is 1.
    +     * 
    + * + * int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxAttempts. + */ + @java.lang.Override + public int getMaxAttempts() { + return maxAttempts_; + } + + 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 (maxAttempts_ != 0) { + output.writeInt32(1, maxAttempts_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxAttempts_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxAttempts_); + } + 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.eventarc.v1.Trigger.RetryPolicy)) { + return super.equals(obj); + } + com.google.cloud.eventarc.v1.Trigger.RetryPolicy other = + (com.google.cloud.eventarc.v1.Trigger.RetryPolicy) obj; + + if (getMaxAttempts() != other.getMaxAttempts()) 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) + MAX_ATTEMPTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxAttempts(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy 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.eventarc.v1.Trigger.RetryPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy 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.eventarc.v1.Trigger.RetryPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy 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.eventarc.v1.Trigger.RetryPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy 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.eventarc.v1.Trigger.RetryPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +     * The retry policy configuration for the Trigger.
    +     *
    +     * Can only be set with Cloud Run destinations.
    +     * 
    + * + * Protobuf type {@code google.cloud.eventarc.v1.Trigger.RetryPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.eventarc.v1.Trigger.RetryPolicy) + com.google.cloud.eventarc.v1.Trigger.RetryPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.v1.TriggerProto + .internal_static_google_cloud_eventarc_v1_Trigger_RetryPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.eventarc.v1.TriggerProto + .internal_static_google_cloud_eventarc_v1_Trigger_RetryPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.eventarc.v1.Trigger.RetryPolicy.class, + com.google.cloud.eventarc.v1.Trigger.RetryPolicy.Builder.class); + } + + // Construct using com.google.cloud.eventarc.v1.Trigger.RetryPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxAttempts_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.eventarc.v1.TriggerProto + .internal_static_google_cloud_eventarc_v1_Trigger_RetryPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.Trigger.RetryPolicy getDefaultInstanceForType() { + return com.google.cloud.eventarc.v1.Trigger.RetryPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.Trigger.RetryPolicy build() { + com.google.cloud.eventarc.v1.Trigger.RetryPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.eventarc.v1.Trigger.RetryPolicy buildPartial() { + com.google.cloud.eventarc.v1.Trigger.RetryPolicy result = + new com.google.cloud.eventarc.v1.Trigger.RetryPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.eventarc.v1.Trigger.RetryPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxAttempts_ = maxAttempts_; + } + } + + @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.eventarc.v1.Trigger.RetryPolicy) { + return mergeFrom((com.google.cloud.eventarc.v1.Trigger.RetryPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.eventarc.v1.Trigger.RetryPolicy other) { + if (other == com.google.cloud.eventarc.v1.Trigger.RetryPolicy.getDefaultInstance()) + return this; + if (other.getMaxAttempts() != 0) { + setMaxAttempts(other.getMaxAttempts()); + } + 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: + { + maxAttempts_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int maxAttempts_; + + /** + * + * + *
    +       * Optional. The maximum number of delivery attempts for any message. The
    +       * only valid value is 1.
    +       * 
    + * + * int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxAttempts. + */ + @java.lang.Override + public int getMaxAttempts() { + return maxAttempts_; + } + + /** + * + * + *
    +       * Optional. The maximum number of delivery attempts for any message. The
    +       * only valid value is 1.
    +       * 
    + * + * int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxAttempts to set. + * @return This builder for chaining. + */ + public Builder setMaxAttempts(int value) { + + maxAttempts_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +       * Optional. The maximum number of delivery attempts for any message. The
    +       * only valid value is 1.
    +       * 
    + * + * int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxAttempts() { + bitField0_ = (bitField0_ & ~0x00000001); + maxAttempts_ = 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.eventarc.v1.Trigger.RetryPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.eventarc.v1.Trigger.RetryPolicy) + private static final com.google.cloud.eventarc.v1.Trigger.RetryPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.eventarc.v1.Trigger.RetryPolicy(); + } + + public static com.google.cloud.eventarc.v1.Trigger.RetryPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryPolicy 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.eventarc.v1.Trigger.RetryPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -968,6 +1523,74 @@ public boolean getSatisfiesPzs() { return satisfiesPzs_; } + public static final int RETRY_POLICY_FIELD_NUMBER = 20; + private com.google.cloud.eventarc.v1.Trigger.RetryPolicy retryPolicy_; + + /** + * + * + *
    +   * Optional. The retry policy to use in the Trigger.
    +   *
    +   * If unset, event delivery will be retried for up to 24 hours by default:
    +   * https://cloud.google.com/eventarc/docs/retry-events
    +   * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retryPolicy field is set. + */ + @java.lang.Override + public boolean hasRetryPolicy() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
    +   * Optional. The retry policy to use in the Trigger.
    +   *
    +   * If unset, event delivery will be retried for up to 24 hours by default:
    +   * https://cloud.google.com/eventarc/docs/retry-events
    +   * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retryPolicy. + */ + @java.lang.Override + public com.google.cloud.eventarc.v1.Trigger.RetryPolicy getRetryPolicy() { + return retryPolicy_ == null + ? com.google.cloud.eventarc.v1.Trigger.RetryPolicy.getDefaultInstance() + : retryPolicy_; + } + + /** + * + * + *
    +   * Optional. The retry policy to use in the Trigger.
    +   *
    +   * If unset, event delivery will be retried for up to 24 hours by default:
    +   * https://cloud.google.com/eventarc/docs/retry-events
    +   * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.eventarc.v1.Trigger.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { + return retryPolicy_ == null + ? com.google.cloud.eventarc.v1.Trigger.RetryPolicy.getDefaultInstance() + : retryPolicy_; + } + public static final int ETAG_FIELD_NUMBER = 99; @SuppressWarnings("serial") @@ -1076,6 +1699,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (satisfiesPzs_ != false) { output.writeBool(19, satisfiesPzs_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(20, getRetryPolicy()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 99, etag_); } @@ -1142,6 +1768,9 @@ public int getSerializedSize() { if (satisfiesPzs_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, satisfiesPzs_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getRetryPolicy()); + } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(99, etag_); } @@ -1185,6 +1814,10 @@ public boolean equals(final java.lang.Object obj) { if (!internalGetConditions().equals(other.internalGetConditions())) return false; if (!getEventDataContentType().equals(other.getEventDataContentType())) return false; if (getSatisfiesPzs() != other.getSatisfiesPzs()) return false; + if (hasRetryPolicy() != other.hasRetryPolicy()) return false; + if (hasRetryPolicy()) { + if (!getRetryPolicy().equals(other.getRetryPolicy())) return false; + } if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1237,6 +1870,10 @@ public int hashCode() { hash = (53 * hash) + getEventDataContentType().hashCode(); hash = (37 * hash) + SATISFIES_PZS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSatisfiesPzs()); + if (hasRetryPolicy()) { + hash = (37 * hash) + RETRY_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getRetryPolicy().hashCode(); + } hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1410,6 +2047,7 @@ private void maybeForceBuilderInitialization() { getEventFiltersFieldBuilder(); getDestinationFieldBuilder(); getTransportFieldBuilder(); + getRetryPolicyFieldBuilder(); } } @@ -1452,6 +2090,11 @@ public Builder clear() { internalGetMutableConditions().clear(); eventDataContentType_ = ""; satisfiesPzs_ = false; + retryPolicy_ = null; + if (retryPolicyBuilder_ != null) { + retryPolicyBuilder_.dispose(); + retryPolicyBuilder_ = null; + } etag_ = ""; return this; } @@ -1546,6 +2189,11 @@ private void buildPartial0(com.google.cloud.eventarc.v1.Trigger result) { result.satisfiesPzs_ = satisfiesPzs_; } if (((from_bitField0_ & 0x00002000) != 0)) { + result.retryPolicy_ = + retryPolicyBuilder_ == null ? retryPolicy_ : retryPolicyBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.etag_ = etag_; } result.bitField0_ |= to_bitField0_; @@ -1667,9 +2315,12 @@ public Builder mergeFrom(com.google.cloud.eventarc.v1.Trigger other) { if (other.getSatisfiesPzs() != false) { setSatisfiesPzs(other.getSatisfiesPzs()); } + if (other.hasRetryPolicy()) { + mergeRetryPolicy(other.getRetryPolicy()); + } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1797,10 +2448,16 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 152 + case 162: + { + input.readMessage(getRetryPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 162 case 794: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 794 default: @@ -4278,6 +4935,247 @@ public Builder clearSatisfiesPzs() { return this; } + private com.google.cloud.eventarc.v1.Trigger.RetryPolicy retryPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.eventarc.v1.Trigger.RetryPolicy, + com.google.cloud.eventarc.v1.Trigger.RetryPolicy.Builder, + com.google.cloud.eventarc.v1.Trigger.RetryPolicyOrBuilder> + retryPolicyBuilder_; + + /** + * + * + *
    +     * Optional. The retry policy to use in the Trigger.
    +     *
    +     * If unset, event delivery will be retried for up to 24 hours by default:
    +     * https://cloud.google.com/eventarc/docs/retry-events
    +     * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retryPolicy field is set. + */ + public boolean hasRetryPolicy() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
    +     * Optional. The retry policy to use in the Trigger.
    +     *
    +     * If unset, event delivery will be retried for up to 24 hours by default:
    +     * https://cloud.google.com/eventarc/docs/retry-events
    +     * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retryPolicy. + */ + public com.google.cloud.eventarc.v1.Trigger.RetryPolicy getRetryPolicy() { + if (retryPolicyBuilder_ == null) { + return retryPolicy_ == null + ? com.google.cloud.eventarc.v1.Trigger.RetryPolicy.getDefaultInstance() + : retryPolicy_; + } else { + return retryPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
    +     * Optional. The retry policy to use in the Trigger.
    +     *
    +     * If unset, event delivery will be retried for up to 24 hours by default:
    +     * https://cloud.google.com/eventarc/docs/retry-events
    +     * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetryPolicy(com.google.cloud.eventarc.v1.Trigger.RetryPolicy value) { + if (retryPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retryPolicy_ = value; + } else { + retryPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The retry policy to use in the Trigger.
    +     *
    +     * If unset, event delivery will be retried for up to 24 hours by default:
    +     * https://cloud.google.com/eventarc/docs/retry-events
    +     * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetryPolicy( + com.google.cloud.eventarc.v1.Trigger.RetryPolicy.Builder builderForValue) { + if (retryPolicyBuilder_ == null) { + retryPolicy_ = builderForValue.build(); + } else { + retryPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The retry policy to use in the Trigger.
    +     *
    +     * If unset, event delivery will be retried for up to 24 hours by default:
    +     * https://cloud.google.com/eventarc/docs/retry-events
    +     * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRetryPolicy(com.google.cloud.eventarc.v1.Trigger.RetryPolicy value) { + if (retryPolicyBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && retryPolicy_ != null + && retryPolicy_ + != com.google.cloud.eventarc.v1.Trigger.RetryPolicy.getDefaultInstance()) { + getRetryPolicyBuilder().mergeFrom(value); + } else { + retryPolicy_ = value; + } + } else { + retryPolicyBuilder_.mergeFrom(value); + } + if (retryPolicy_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
    +     * Optional. The retry policy to use in the Trigger.
    +     *
    +     * If unset, event delivery will be retried for up to 24 hours by default:
    +     * https://cloud.google.com/eventarc/docs/retry-events
    +     * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRetryPolicy() { + bitField0_ = (bitField0_ & ~0x00002000); + retryPolicy_ = null; + if (retryPolicyBuilder_ != null) { + retryPolicyBuilder_.dispose(); + retryPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The retry policy to use in the Trigger.
    +     *
    +     * If unset, event delivery will be retried for up to 24 hours by default:
    +     * https://cloud.google.com/eventarc/docs/retry-events
    +     * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.eventarc.v1.Trigger.RetryPolicy.Builder getRetryPolicyBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getRetryPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * Optional. The retry policy to use in the Trigger.
    +     *
    +     * If unset, event delivery will be retried for up to 24 hours by default:
    +     * https://cloud.google.com/eventarc/docs/retry-events
    +     * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.eventarc.v1.Trigger.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { + if (retryPolicyBuilder_ != null) { + return retryPolicyBuilder_.getMessageOrBuilder(); + } else { + return retryPolicy_ == null + ? com.google.cloud.eventarc.v1.Trigger.RetryPolicy.getDefaultInstance() + : retryPolicy_; + } + } + + /** + * + * + *
    +     * Optional. The retry policy to use in the Trigger.
    +     *
    +     * If unset, event delivery will be retried for up to 24 hours by default:
    +     * https://cloud.google.com/eventarc/docs/retry-events
    +     * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.eventarc.v1.Trigger.RetryPolicy, + com.google.cloud.eventarc.v1.Trigger.RetryPolicy.Builder, + com.google.cloud.eventarc.v1.Trigger.RetryPolicyOrBuilder> + getRetryPolicyFieldBuilder() { + if (retryPolicyBuilder_ == null) { + retryPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.eventarc.v1.Trigger.RetryPolicy, + com.google.cloud.eventarc.v1.Trigger.RetryPolicy.Builder, + com.google.cloud.eventarc.v1.Trigger.RetryPolicyOrBuilder>( + getRetryPolicy(), getParentForChildren(), isClean()); + retryPolicy_ = null; + } + return retryPolicyBuilder_; + } + private java.lang.Object etag_ = ""; /** @@ -4349,7 +5247,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4369,7 +5267,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4394,7 +5292,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerOrBuilder.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerOrBuilder.java index c7aa1e60eca1..79f3d3bc07c7 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerOrBuilder.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerOrBuilder.java @@ -594,6 +594,58 @@ com.google.cloud.eventarc.v1.StateCondition getConditionsOrDefault( */ boolean getSatisfiesPzs(); + /** + * + * + *
    +   * Optional. The retry policy to use in the Trigger.
    +   *
    +   * If unset, event delivery will be retried for up to 24 hours by default:
    +   * https://cloud.google.com/eventarc/docs/retry-events
    +   * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retryPolicy field is set. + */ + boolean hasRetryPolicy(); + + /** + * + * + *
    +   * Optional. The retry policy to use in the Trigger.
    +   *
    +   * If unset, event delivery will be retried for up to 24 hours by default:
    +   * https://cloud.google.com/eventarc/docs/retry-events
    +   * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retryPolicy. + */ + com.google.cloud.eventarc.v1.Trigger.RetryPolicy getRetryPolicy(); + + /** + * + * + *
    +   * Optional. The retry policy to use in the Trigger.
    +   *
    +   * If unset, event delivery will be retried for up to 24 hours by default:
    +   * https://cloud.google.com/eventarc/docs/retry-events
    +   * 
    + * + * + * .google.cloud.eventarc.v1.Trigger.RetryPolicy retry_policy = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.eventarc.v1.Trigger.RetryPolicyOrBuilder getRetryPolicyOrBuilder(); + /** * * diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerProto.java b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerProto.java index 40cb9feb47de..ee344b3f43cf 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerProto.java +++ b/java-eventarc/proto-google-cloud-eventarc-v1/src/main/java/com/google/cloud/eventarc/v1/TriggerProto.java @@ -32,6 +32,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_eventarc_v1_Trigger_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_eventarc_v1_Trigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_eventarc_v1_Trigger_RetryPolicy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_v1_Trigger_RetryPolicy_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_eventarc_v1_Trigger_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -86,7 +90,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022\030google.cloud.eventarc.v1\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" + ".proto\032-google/cloud/eventarc/v1/network" - + "_config.proto\032\037google/protobuf/timestamp.proto\032\025google/rpc/code.proto\"\236\007\n" + + "_config.proto\032\037google/protobuf/timestamp.proto\032\025google/rpc/code.proto\"\222\010\n" + "\007Trigger\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\020\n" + "\003uid\030\002 \001(\tB\003\340A\003\0224\n" @@ -108,17 +112,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "conditions\030\017 \003(\013" + "21.google.cloud.eventarc.v1.Trigger.ConditionsEntryB\003\340A\003\022$\n" + "\027event_data_content_type\030\020 \001(\tB\003\340A\001\022\032\n\r" - + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022\021\n" - + "\004etag\030c \001(\tB\003\340A\003\032-\n" + + "satisfies_pzs\030\023 \001(\010B\003\340A\003\022H\n" + + "\014retry_policy\030\024" + + " \001(\0132-.google.cloud.eventarc.v1.Trigger.RetryPolicyB\003\340A\001\022\021\n" + + "\004etag\030c \001(\tB\003\340A\003\032(\n" + + "\013RetryPolicy\022\031\n" + + "\014max_attempts\030\001 \001(\005B\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032[\n" + "\017ConditionsEntry\022\013\n" + "\003key\030\001 \001(\t\0227\n" - + "\005value\030\002 \001(\0132(.go" - + "ogle.cloud.eventarc.v1.StateCondition:\0028\001:s\352Ap\n" - + "\037eventarc.googleapis.com/Trigger\022:projects/{project}/locations/{location}" - + "/triggers/{trigger}*\010triggers2\007trigger\"P\n" + + "\005value\030\002 \001(\0132(.google" + + ".cloud.eventarc.v1.StateCondition:\0028\001:s\352Ap\n" + + "\037eventarc.googleapis.com/Trigger\022:pro" + + "jects/{project}/locations/{location}/triggers/{trigger}*\010triggers2\007trigger\"P\n" + "\013EventFilter\022\026\n" + "\tattribute\030\001 \001(\tB\003\340A\002\022\022\n" + "\005value\030\002 \001(\tB\003\340A\002\022\025\n" @@ -156,19 +164,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014subscription\030\002 \001(\tB\003\340A\003\" \n" + "\014HttpEndpoint\022\020\n" + "\003uri\030\001 \001(\tB\003\340A\002B\241\005\n" - + "\034com.google.cloud.eventarc.v1B\014TriggerProtoP\001Z8clou" - + "d.google.com/go/eventarc/apiv1/eventarcpb;eventarcpb\352Ak\n" - + "+cloudfunctions.googleapis.com/CloudFunction\022 com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.79.0 + 1.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.79.0' +implementation 'com.google.cloud:google-cloud-filestore:1.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.81.0 [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 diff --git a/java-financialservices/README.md b/java-financialservices/README.md index e9750976450a..446c104ed982 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 0.19.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.19.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.19.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.21.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.21.0 [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 diff --git a/java-functions/README.md b/java-functions/README.md index 5bf054e81d18..de44a453d2b1 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.80.0 + 2.82.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.80.0' +implementation 'com.google.cloud:google-cloud-functions:2.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.82.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.82.0 [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 diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index d79a2e8e7832..225ab0227292 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.33.0 + 0.35.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.33.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.35.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.35.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.35.0 [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 diff --git a/java-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index 99c013dbd4ff..f1d68d726271 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.6.0 + 0.8.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.6.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.8.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.8.0 [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 diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index f66e6395244d..5ce522eb3226 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.77.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.77.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.79.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.79.0 [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 diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 9b0d68f4cee1..6e291fdf1611 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.79.0 + 0.81.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.79.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.81.0" ``` ## Authentication @@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.81.0 [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 diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index a0087e913e81..06cf8ceb97f9 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.71.0 + 26.72.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.77.0 + 0.79.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.77.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.79.0" ``` ## Authentication @@ -200,7 +200,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/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-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.79.0 [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 diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java index b631f4ab849d..0e5c438eba1d 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersClient.java @@ -418,7 +418,10 @@ * }
    * *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class AwsClustersClient implements BackgroundResource { private final AwsClustersSettings settings; @@ -533,7 +536,9 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`. *

    Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAwsClusterAsync( LocationName parent, AwsCluster awsCluster, String awsClusterId) { CreateAwsClusterRequest request = @@ -585,7 +590,9 @@ public final OperationFuture createAwsClusterAsyn * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>`. *

    Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAwsClusterAsync( String parent, AwsCluster awsCluster, String awsClusterId) { CreateAwsClusterRequest request = @@ -628,7 +635,9 @@ public final OperationFuture createAwsClusterAsyn * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAwsClusterAsync( CreateAwsClusterRequest request) { return createAwsClusterOperationCallable().futureCall(request); @@ -665,7 +674,10 @@ public final OperationFuture createAwsClusterAsyn * AwsCluster response = future.get(); * } * }

    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable createAwsClusterOperationCallable() { return stub.createAwsClusterOperationCallable(); @@ -702,7 +714,10 @@ public final OperationFuture createAwsClusterAsyn * Operation response = future.get(); * } * }
    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable createAwsClusterCallable() { return stub.createAwsClusterCallable(); } @@ -748,7 +763,9 @@ public final UnaryCallable createAwsClusterC * `monitoring_config.managed_prometheus_config.enabled`. * * `networking.per_node_pool_sg_rules_disabled`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture updateAwsClusterAsync( AwsCluster awsCluster, FieldMask updateMask) { UpdateAwsClusterRequest request = @@ -784,7 +801,9 @@ public final OperationFuture updateAwsClusterAsyn * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture updateAwsClusterAsync( UpdateAwsClusterRequest request) { return updateAwsClusterOperationCallable().futureCall(request); @@ -815,7 +834,10 @@ public final OperationFuture updateAwsClusterAsyn * AwsCluster response = future.get(); * } * }
    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable updateAwsClusterOperationCallable() { return stub.updateAwsClusterOperationCallable(); @@ -846,7 +868,10 @@ public final OperationFuture updateAwsClusterAsyn * Operation response = future.get(); * } * }
    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable updateAwsClusterCallable() { return stub.updateAwsClusterCallable(); } @@ -876,7 +901,9 @@ public final UnaryCallable updateAwsClusterC *

    See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsCluster getAwsCluster(AwsClusterName name) { GetAwsClusterRequest request = GetAwsClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); @@ -908,7 +935,9 @@ public final AwsCluster getAwsCluster(AwsClusterName name) { *

    See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsCluster getAwsCluster(String name) { GetAwsClusterRequest request = GetAwsClusterRequest.newBuilder().setName(name).build(); return getAwsCluster(request); @@ -937,7 +966,9 @@ public final AwsCluster getAwsCluster(String name) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsCluster getAwsCluster(GetAwsClusterRequest request) { return getAwsClusterCallable().call(request); } @@ -964,7 +995,10 @@ public final AwsCluster getAwsCluster(GetAwsClusterRequest request) { * AwsCluster response = future.get(); * } * }

    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAwsClusterCallable() { return stub.getAwsClusterCallable(); } @@ -996,7 +1030,9 @@ public final UnaryCallable getAwsClusterCallab *

    See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAwsClustersPagedResponse listAwsClusters(LocationName parent) { ListAwsClustersRequest request = ListAwsClustersRequest.newBuilder() @@ -1032,7 +1068,9 @@ public final ListAwsClustersPagedResponse listAwsClusters(LocationName parent) { *

    See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAwsClustersPagedResponse listAwsClusters(String parent) { ListAwsClustersRequest request = ListAwsClustersRequest.newBuilder().setParent(parent).build(); return listAwsClusters(request); @@ -1066,7 +1104,9 @@ public final ListAwsClustersPagedResponse listAwsClusters(String parent) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAwsClustersPagedResponse listAwsClusters(ListAwsClustersRequest request) { return listAwsClustersPagedCallable().call(request); } @@ -1099,7 +1139,10 @@ public final ListAwsClustersPagedResponse listAwsClusters(ListAwsClustersRequest * } * } * }

    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAwsClustersPagedCallable() { return stub.listAwsClustersPagedCallable(); @@ -1140,7 +1183,10 @@ public final ListAwsClustersPagedResponse listAwsClusters(ListAwsClustersRequest * } * } * }
    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAwsClustersCallable() { return stub.listAwsClustersCallable(); @@ -1178,7 +1224,9 @@ public final ListAwsClustersPagedResponse listAwsClusters(ListAwsClustersRequest *

    See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAwsClusterAsync( AwsClusterName name) { DeleteAwsClusterRequest request = @@ -1218,7 +1266,9 @@ public final OperationFuture deleteAwsClusterAsync( *

    See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAwsClusterAsync(String name) { DeleteAwsClusterRequest request = DeleteAwsClusterRequest.newBuilder().setName(name).build(); return deleteAwsClusterAsync(request); @@ -1258,7 +1308,9 @@ public final OperationFuture deleteAwsClusterAsync(Str * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAwsClusterAsync( DeleteAwsClusterRequest request) { return deleteAwsClusterOperationCallable().futureCall(request); @@ -1298,7 +1350,10 @@ public final OperationFuture deleteAwsClusterAsync( * future.get(); * } * }

    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable deleteAwsClusterOperationCallable() { return stub.deleteAwsClusterOperationCallable(); @@ -1338,7 +1393,10 @@ public final OperationFuture deleteAwsClusterAsync( * future.get(); * } * }
    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable deleteAwsClusterCallable() { return stub.deleteAwsClusterCallable(); } @@ -1377,7 +1435,9 @@ public final UnaryCallable deleteAwsClusterC * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final GenerateAwsClusterAgentTokenResponse generateAwsClusterAgentToken( GenerateAwsClusterAgentTokenRequest request) { return generateAwsClusterAgentTokenCallable().call(request); @@ -1416,7 +1476,10 @@ public final GenerateAwsClusterAgentTokenResponse generateAwsClusterAgentToken( * GenerateAwsClusterAgentTokenResponse response = future.get(); * } * }
    + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable< GenerateAwsClusterAgentTokenRequest, GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentTokenCallable() { @@ -1448,7 +1511,9 @@ public final GenerateAwsClusterAgentTokenResponse generateAwsClusterAgentToken( * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final GenerateAwsAccessTokenResponse generateAwsAccessToken( GenerateAwsAccessTokenRequest request) { return generateAwsAccessTokenCallable().call(request); @@ -1479,7 +1544,10 @@ public final GenerateAwsAccessTokenResponse generateAwsAccessToken( * GenerateAwsAccessTokenResponse response = future.get(); * } * }
+ * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable generateAwsAccessTokenCallable() { return stub.generateAwsAccessTokenCallable(); @@ -1526,7 +1594,9 @@ public final GenerateAwsAccessTokenResponse generateAwsAccessToken( * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`. *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAwsNodePoolAsync( AwsClusterName parent, AwsNodePool awsNodePool, String awsNodePoolId) { CreateAwsNodePoolRequest request = @@ -1579,7 +1649,9 @@ public final OperationFuture createAwsNodePoolAs * `projects/<project-id>/locations/<region>/awsClusters/<cluster-id>/awsNodePools/<node-pool-id>`. *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAwsNodePoolAsync( String parent, AwsNodePool awsNodePool, String awsNodePoolId) { CreateAwsNodePoolRequest request = @@ -1622,7 +1694,9 @@ public final OperationFuture createAwsNodePoolAs * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAwsNodePoolAsync( CreateAwsNodePoolRequest request) { return createAwsNodePoolOperationCallable().futureCall(request); @@ -1659,7 +1733,10 @@ public final OperationFuture createAwsNodePoolAs * AwsNodePool response = future.get(); * } * }

+ * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable createAwsNodePoolOperationCallable() { return stub.createAwsNodePoolOperationCallable(); @@ -1696,7 +1773,10 @@ public final OperationFuture createAwsNodePoolAs * Operation response = future.get(); * } * }
+ * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable createAwsNodePoolCallable() { return stub.createAwsNodePoolCallable(); } @@ -1742,7 +1822,9 @@ public final UnaryCallable createAwsNodePoo * `update_settings.surge_settings`. * `update_settings.surge_settings.max_surge`. * * `update_settings.surge_settings.max_unavailable`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture updateAwsNodePoolAsync( AwsNodePool awsNodePool, FieldMask updateMask) { UpdateAwsNodePoolRequest request = @@ -1778,7 +1860,9 @@ public final OperationFuture updateAwsNodePoolAs * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture updateAwsNodePoolAsync( UpdateAwsNodePoolRequest request) { return updateAwsNodePoolOperationCallable().futureCall(request); @@ -1809,7 +1893,10 @@ public final OperationFuture updateAwsNodePoolAs * AwsNodePool response = future.get(); * } * }
+ * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable updateAwsNodePoolOperationCallable() { return stub.updateAwsNodePoolOperationCallable(); @@ -1840,7 +1927,10 @@ public final OperationFuture updateAwsNodePoolAs * Operation response = future.get(); * } * }
+ * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable updateAwsNodePoolCallable() { return stub.updateAwsNodePoolCallable(); } @@ -1875,7 +1965,9 @@ public final UnaryCallable updateAwsNodePoo *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture rollbackAwsNodePoolUpdateAsync( AwsNodePoolName name) { RollbackAwsNodePoolUpdateRequest request = @@ -1916,7 +2008,9 @@ public final OperationFuture rollbackAwsNodePool *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture rollbackAwsNodePoolUpdateAsync( String name) { RollbackAwsNodePoolUpdateRequest request = @@ -1954,7 +2048,9 @@ public final OperationFuture rollbackAwsNodePool * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture rollbackAwsNodePoolUpdateAsync( RollbackAwsNodePoolUpdateRequest request) { return rollbackAwsNodePoolUpdateOperationCallable().futureCall(request); @@ -1990,7 +2086,10 @@ public final OperationFuture rollbackAwsNodePool * AwsNodePool response = future.get(); * } * }

+ * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable rollbackAwsNodePoolUpdateOperationCallable() { return stub.rollbackAwsNodePoolUpdateOperationCallable(); @@ -2026,7 +2125,10 @@ public final OperationFuture rollbackAwsNodePool * Operation response = future.get(); * } * }
+ * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable rollbackAwsNodePoolUpdateCallable() { return stub.rollbackAwsNodePoolUpdateCallable(); @@ -2058,7 +2160,9 @@ public final OperationFuture rollbackAwsNodePool *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsNodePool getAwsNodePool(AwsNodePoolName name) { GetAwsNodePoolRequest request = GetAwsNodePoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); @@ -2092,7 +2196,9 @@ public final AwsNodePool getAwsNodePool(AwsNodePoolName name) { *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsNodePool getAwsNodePool(String name) { GetAwsNodePoolRequest request = GetAwsNodePoolRequest.newBuilder().setName(name).build(); return getAwsNodePool(request); @@ -2123,7 +2229,9 @@ public final AwsNodePool getAwsNodePool(String name) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsNodePool getAwsNodePool(GetAwsNodePoolRequest request) { return getAwsNodePoolCallable().call(request); } @@ -2153,7 +2261,10 @@ public final AwsNodePool getAwsNodePool(GetAwsNodePoolRequest request) { * AwsNodePool response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAwsNodePoolCallable() { return stub.getAwsNodePoolCallable(); } @@ -2186,7 +2297,9 @@ public final UnaryCallable getAwsNodePoolCal *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAwsNodePoolsPagedResponse listAwsNodePools(AwsClusterName parent) { ListAwsNodePoolsRequest request = ListAwsNodePoolsRequest.newBuilder() @@ -2223,7 +2336,9 @@ public final ListAwsNodePoolsPagedResponse listAwsNodePools(AwsClusterName paren *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAwsNodePoolsPagedResponse listAwsNodePools(String parent) { ListAwsNodePoolsRequest request = ListAwsNodePoolsRequest.newBuilder().setParent(parent).build(); @@ -2258,7 +2373,9 @@ public final ListAwsNodePoolsPagedResponse listAwsNodePools(String parent) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAwsNodePoolsPagedResponse listAwsNodePools(ListAwsNodePoolsRequest request) { return listAwsNodePoolsPagedCallable().call(request); } @@ -2291,7 +2408,10 @@ public final ListAwsNodePoolsPagedResponse listAwsNodePools(ListAwsNodePoolsRequ * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAwsNodePoolsPagedCallable() { return stub.listAwsNodePoolsPagedCallable(); @@ -2332,7 +2452,10 @@ public final ListAwsNodePoolsPagedResponse listAwsNodePools(ListAwsNodePoolsRequ * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAwsNodePoolsCallable() { return stub.listAwsNodePoolsCallable(); @@ -2368,7 +2491,9 @@ public final ListAwsNodePoolsPagedResponse listAwsNodePools(ListAwsNodePoolsRequ *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAwsNodePoolAsync( AwsNodePoolName name) { DeleteAwsNodePoolRequest request = @@ -2409,7 +2534,9 @@ public final OperationFuture deleteAwsNodePoolAsync( *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAwsNodePoolAsync(String name) { DeleteAwsNodePoolRequest request = DeleteAwsNodePoolRequest.newBuilder().setName(name).build(); return deleteAwsNodePoolAsync(request); @@ -2448,7 +2575,9 @@ public final OperationFuture deleteAwsNodePoolAsync(St * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAwsNodePoolAsync( DeleteAwsNodePoolRequest request) { return deleteAwsNodePoolOperationCallable().futureCall(request); @@ -2487,7 +2616,10 @@ public final OperationFuture deleteAwsNodePoolAsync( * future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable deleteAwsNodePoolOperationCallable() { return stub.deleteAwsNodePoolOperationCallable(); @@ -2526,7 +2658,10 @@ public final OperationFuture deleteAwsNodePoolAsync( * future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable deleteAwsNodePoolCallable() { return stub.deleteAwsNodePoolCallable(); } @@ -2556,7 +2691,9 @@ public final UnaryCallable deleteAwsNodePoo * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsOpenIdConfig getAwsOpenIdConfig(GetAwsOpenIdConfigRequest request) { return getAwsOpenIdConfigCallable().call(request); } @@ -2586,7 +2723,10 @@ public final AwsOpenIdConfig getAwsOpenIdConfig(GetAwsOpenIdConfigRequest reques * AwsOpenIdConfig response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAwsOpenIdConfigCallable() { return stub.getAwsOpenIdConfigCallable(); @@ -2616,7 +2756,9 @@ public final AwsOpenIdConfig getAwsOpenIdConfig(GetAwsOpenIdConfigRequest reques * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsJsonWebKeys getAwsJsonWebKeys(GetAwsJsonWebKeysRequest request) { return getAwsJsonWebKeysCallable().call(request); } @@ -2645,7 +2787,10 @@ public final AwsJsonWebKeys getAwsJsonWebKeys(GetAwsJsonWebKeysRequest request) * AwsJsonWebKeys response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAwsJsonWebKeysCallable() { return stub.getAwsJsonWebKeysCallable(); } @@ -2676,7 +2821,9 @@ public final UnaryCallable getAwsJsonW *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsServerConfig getAwsServerConfig(AwsServerConfigName name) { GetAwsServerConfigRequest request = GetAwsServerConfigRequest.newBuilder() @@ -2711,7 +2858,9 @@ public final AwsServerConfig getAwsServerConfig(AwsServerConfigName name) { *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsServerConfig getAwsServerConfig(String name) { GetAwsServerConfigRequest request = GetAwsServerConfigRequest.newBuilder().setName(name).build(); @@ -2742,7 +2891,9 @@ public final AwsServerConfig getAwsServerConfig(String name) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AwsServerConfig getAwsServerConfig(GetAwsServerConfigRequest request) { return getAwsServerConfigCallable().call(request); } @@ -2771,7 +2922,10 @@ public final AwsServerConfig getAwsServerConfig(GetAwsServerConfigRequest reques * AwsServerConfig response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAwsServerConfigCallable() { return stub.getAwsServerConfigCallable(); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersSettings.java index 4e99ea617701..6051e4bd6c89 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersSettings.java @@ -112,138 +112,256 @@ * .setPollingAlgorithm(timedRetryAlgorithm) * .build(); * } + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class AwsClustersSettings extends ClientSettings { - /** Returns the object with the settings used for calls to createAwsCluster. */ + /** + * Returns the object with the settings used for calls to createAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAwsClusterSettings() { return ((AwsClustersStubSettings) getStubSettings()).createAwsClusterSettings(); } - /** Returns the object with the settings used for calls to createAwsCluster. */ + /** + * Returns the object with the settings used for calls to createAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings createAwsClusterOperationSettings() { return ((AwsClustersStubSettings) getStubSettings()).createAwsClusterOperationSettings(); } - /** Returns the object with the settings used for calls to updateAwsCluster. */ + /** + * Returns the object with the settings used for calls to updateAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateAwsClusterSettings() { return ((AwsClustersStubSettings) getStubSettings()).updateAwsClusterSettings(); } - /** Returns the object with the settings used for calls to updateAwsCluster. */ + /** + * Returns the object with the settings used for calls to updateAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings updateAwsClusterOperationSettings() { return ((AwsClustersStubSettings) getStubSettings()).updateAwsClusterOperationSettings(); } - /** Returns the object with the settings used for calls to getAwsCluster. */ + /** + * Returns the object with the settings used for calls to getAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsClusterSettings() { return ((AwsClustersStubSettings) getStubSettings()).getAwsClusterSettings(); } - /** Returns the object with the settings used for calls to listAwsClusters. */ + /** + * Returns the object with the settings used for calls to listAwsClusters. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAwsClustersRequest, ListAwsClustersResponse, ListAwsClustersPagedResponse> listAwsClustersSettings() { return ((AwsClustersStubSettings) getStubSettings()).listAwsClustersSettings(); } - /** Returns the object with the settings used for calls to deleteAwsCluster. */ + /** + * Returns the object with the settings used for calls to deleteAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAwsClusterSettings() { return ((AwsClustersStubSettings) getStubSettings()).deleteAwsClusterSettings(); } - /** Returns the object with the settings used for calls to deleteAwsCluster. */ + /** + * Returns the object with the settings used for calls to deleteAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings deleteAwsClusterOperationSettings() { return ((AwsClustersStubSettings) getStubSettings()).deleteAwsClusterOperationSettings(); } - /** Returns the object with the settings used for calls to generateAwsClusterAgentToken. */ + /** + * Returns the object with the settings used for calls to generateAwsClusterAgentToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings< GenerateAwsClusterAgentTokenRequest, GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentTokenSettings() { return ((AwsClustersStubSettings) getStubSettings()).generateAwsClusterAgentTokenSettings(); } - /** Returns the object with the settings used for calls to generateAwsAccessToken. */ + /** + * Returns the object with the settings used for calls to generateAwsAccessToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings generateAwsAccessTokenSettings() { return ((AwsClustersStubSettings) getStubSettings()).generateAwsAccessTokenSettings(); } - /** Returns the object with the settings used for calls to createAwsNodePool. */ + /** + * Returns the object with the settings used for calls to createAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAwsNodePoolSettings() { return ((AwsClustersStubSettings) getStubSettings()).createAwsNodePoolSettings(); } - /** Returns the object with the settings used for calls to createAwsNodePool. */ + /** + * Returns the object with the settings used for calls to createAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings createAwsNodePoolOperationSettings() { return ((AwsClustersStubSettings) getStubSettings()).createAwsNodePoolOperationSettings(); } - /** Returns the object with the settings used for calls to updateAwsNodePool. */ + /** + * Returns the object with the settings used for calls to updateAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateAwsNodePoolSettings() { return ((AwsClustersStubSettings) getStubSettings()).updateAwsNodePoolSettings(); } - /** Returns the object with the settings used for calls to updateAwsNodePool. */ + /** + * Returns the object with the settings used for calls to updateAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings updateAwsNodePoolOperationSettings() { return ((AwsClustersStubSettings) getStubSettings()).updateAwsNodePoolOperationSettings(); } - /** Returns the object with the settings used for calls to rollbackAwsNodePoolUpdate. */ + /** + * Returns the object with the settings used for calls to rollbackAwsNodePoolUpdate. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings rollbackAwsNodePoolUpdateSettings() { return ((AwsClustersStubSettings) getStubSettings()).rollbackAwsNodePoolUpdateSettings(); } - /** Returns the object with the settings used for calls to rollbackAwsNodePoolUpdate. */ + /** + * Returns the object with the settings used for calls to rollbackAwsNodePoolUpdate. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings rollbackAwsNodePoolUpdateOperationSettings() { return ((AwsClustersStubSettings) getStubSettings()) .rollbackAwsNodePoolUpdateOperationSettings(); } - /** Returns the object with the settings used for calls to getAwsNodePool. */ + /** + * Returns the object with the settings used for calls to getAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsNodePoolSettings() { return ((AwsClustersStubSettings) getStubSettings()).getAwsNodePoolSettings(); } - /** Returns the object with the settings used for calls to listAwsNodePools. */ + /** + * Returns the object with the settings used for calls to listAwsNodePools. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAwsNodePoolsRequest, ListAwsNodePoolsResponse, ListAwsNodePoolsPagedResponse> listAwsNodePoolsSettings() { return ((AwsClustersStubSettings) getStubSettings()).listAwsNodePoolsSettings(); } - /** Returns the object with the settings used for calls to deleteAwsNodePool. */ + /** + * Returns the object with the settings used for calls to deleteAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAwsNodePoolSettings() { return ((AwsClustersStubSettings) getStubSettings()).deleteAwsNodePoolSettings(); } - /** Returns the object with the settings used for calls to deleteAwsNodePool. */ + /** + * Returns the object with the settings used for calls to deleteAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings deleteAwsNodePoolOperationSettings() { return ((AwsClustersStubSettings) getStubSettings()).deleteAwsNodePoolOperationSettings(); } - /** Returns the object with the settings used for calls to getAwsOpenIdConfig. */ + /** + * Returns the object with the settings used for calls to getAwsOpenIdConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsOpenIdConfigSettings() { return ((AwsClustersStubSettings) getStubSettings()).getAwsOpenIdConfigSettings(); } - /** Returns the object with the settings used for calls to getAwsJsonWebKeys. */ + /** + * Returns the object with the settings used for calls to getAwsJsonWebKeys. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsJsonWebKeysSettings() { return ((AwsClustersStubSettings) getStubSettings()).getAwsJsonWebKeysSettings(); } - /** Returns the object with the settings used for calls to getAwsServerConfig. */ + /** + * Returns the object with the settings used for calls to getAwsServerConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsServerConfigSettings() { return ((AwsClustersStubSettings) getStubSettings()).getAwsServerConfigSettings(); @@ -360,141 +478,256 @@ public Builder applyToAllUnaryMethods( return this; } - /** Returns the builder for the settings used for calls to createAwsCluster. */ + /** + * Returns the builder for the settings used for calls to createAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAwsClusterSettings() { return getStubSettingsBuilder().createAwsClusterSettings(); } - /** Returns the builder for the settings used for calls to createAwsCluster. */ + /** + * Returns the builder for the settings used for calls to createAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder createAwsClusterOperationSettings() { return getStubSettingsBuilder().createAwsClusterOperationSettings(); } - /** Returns the builder for the settings used for calls to updateAwsCluster. */ + /** + * Returns the builder for the settings used for calls to updateAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateAwsClusterSettings() { return getStubSettingsBuilder().updateAwsClusterSettings(); } - /** Returns the builder for the settings used for calls to updateAwsCluster. */ + /** + * Returns the builder for the settings used for calls to updateAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder updateAwsClusterOperationSettings() { return getStubSettingsBuilder().updateAwsClusterOperationSettings(); } - /** Returns the builder for the settings used for calls to getAwsCluster. */ + /** + * Returns the builder for the settings used for calls to getAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsClusterSettings() { return getStubSettingsBuilder().getAwsClusterSettings(); } - /** Returns the builder for the settings used for calls to listAwsClusters. */ + /** + * Returns the builder for the settings used for calls to listAwsClusters. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAwsClustersRequest, ListAwsClustersResponse, ListAwsClustersPagedResponse> listAwsClustersSettings() { return getStubSettingsBuilder().listAwsClustersSettings(); } - /** Returns the builder for the settings used for calls to deleteAwsCluster. */ + /** + * Returns the builder for the settings used for calls to deleteAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAwsClusterSettings() { return getStubSettingsBuilder().deleteAwsClusterSettings(); } - /** Returns the builder for the settings used for calls to deleteAwsCluster. */ + /** + * Returns the builder for the settings used for calls to deleteAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder deleteAwsClusterOperationSettings() { return getStubSettingsBuilder().deleteAwsClusterOperationSettings(); } - /** Returns the builder for the settings used for calls to generateAwsClusterAgentToken. */ + /** + * Returns the builder for the settings used for calls to generateAwsClusterAgentToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder< GenerateAwsClusterAgentTokenRequest, GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentTokenSettings() { return getStubSettingsBuilder().generateAwsClusterAgentTokenSettings(); } - /** Returns the builder for the settings used for calls to generateAwsAccessToken. */ + /** + * Returns the builder for the settings used for calls to generateAwsAccessToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder generateAwsAccessTokenSettings() { return getStubSettingsBuilder().generateAwsAccessTokenSettings(); } - /** Returns the builder for the settings used for calls to createAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to createAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAwsNodePoolSettings() { return getStubSettingsBuilder().createAwsNodePoolSettings(); } - /** Returns the builder for the settings used for calls to createAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to createAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder createAwsNodePoolOperationSettings() { return getStubSettingsBuilder().createAwsNodePoolOperationSettings(); } - /** Returns the builder for the settings used for calls to updateAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to updateAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateAwsNodePoolSettings() { return getStubSettingsBuilder().updateAwsNodePoolSettings(); } - /** Returns the builder for the settings used for calls to updateAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to updateAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder updateAwsNodePoolOperationSettings() { return getStubSettingsBuilder().updateAwsNodePoolOperationSettings(); } - /** Returns the builder for the settings used for calls to rollbackAwsNodePoolUpdate. */ + /** + * Returns the builder for the settings used for calls to rollbackAwsNodePoolUpdate. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder rollbackAwsNodePoolUpdateSettings() { return getStubSettingsBuilder().rollbackAwsNodePoolUpdateSettings(); } - /** Returns the builder for the settings used for calls to rollbackAwsNodePoolUpdate. */ + /** + * Returns the builder for the settings used for calls to rollbackAwsNodePoolUpdate. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder< RollbackAwsNodePoolUpdateRequest, AwsNodePool, OperationMetadata> rollbackAwsNodePoolUpdateOperationSettings() { return getStubSettingsBuilder().rollbackAwsNodePoolUpdateOperationSettings(); } - /** Returns the builder for the settings used for calls to getAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to getAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsNodePoolSettings() { return getStubSettingsBuilder().getAwsNodePoolSettings(); } - /** Returns the builder for the settings used for calls to listAwsNodePools. */ + /** + * Returns the builder for the settings used for calls to listAwsNodePools. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAwsNodePoolsRequest, ListAwsNodePoolsResponse, ListAwsNodePoolsPagedResponse> listAwsNodePoolsSettings() { return getStubSettingsBuilder().listAwsNodePoolsSettings(); } - /** Returns the builder for the settings used for calls to deleteAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to deleteAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAwsNodePoolSettings() { return getStubSettingsBuilder().deleteAwsNodePoolSettings(); } - /** Returns the builder for the settings used for calls to deleteAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to deleteAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder deleteAwsNodePoolOperationSettings() { return getStubSettingsBuilder().deleteAwsNodePoolOperationSettings(); } - /** Returns the builder for the settings used for calls to getAwsOpenIdConfig. */ + /** + * Returns the builder for the settings used for calls to getAwsOpenIdConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsOpenIdConfigSettings() { return getStubSettingsBuilder().getAwsOpenIdConfigSettings(); } - /** Returns the builder for the settings used for calls to getAwsJsonWebKeys. */ + /** + * Returns the builder for the settings used for calls to getAwsJsonWebKeys. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsJsonWebKeysSettings() { return getStubSettingsBuilder().getAwsJsonWebKeysSettings(); } - /** Returns the builder for the settings used for calls to getAwsServerConfig. */ + /** + * Returns the builder for the settings used for calls to getAwsServerConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsServerConfigSettings() { return getStubSettingsBuilder().getAwsServerConfigSettings(); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java index 7ccd10af70c0..6459210d6dbf 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersClient.java @@ -492,7 +492,10 @@ * } * *

Please refer to the GitHub repository's samples for more quickstart code snippets. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class AzureClustersClient implements BackgroundResource { private final AzureClustersSettings settings; @@ -611,7 +614,9 @@ public final OperationsClient getHttpJsonOperationsClient() { * `projects/<project-id>/locations/<region>/azureClients/<client-id>`. *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAzureClientAsync( LocationName parent, AzureClient azureClient, String azureClientId) { CreateAzureClientRequest request = @@ -666,7 +671,9 @@ public final OperationFuture createAzureClientAs * `projects/<project-id>/locations/<region>/azureClients/<client-id>`. *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAzureClientAsync( String parent, AzureClient azureClient, String azureClientId) { CreateAzureClientRequest request = @@ -712,7 +719,9 @@ public final OperationFuture createAzureClientAs * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAzureClientAsync( CreateAzureClientRequest request) { return createAzureClientOperationCallable().futureCall(request); @@ -752,7 +761,10 @@ public final OperationFuture createAzureClientAs * AzureClient response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable createAzureClientOperationCallable() { return stub.createAzureClientOperationCallable(); @@ -792,7 +804,10 @@ public final OperationFuture createAzureClientAs * Operation response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable createAzureClientCallable() { return stub.createAzureClientCallable(); } @@ -822,7 +837,9 @@ public final UnaryCallable createAzureClien *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureClient getAzureClient(AzureClientName name) { GetAzureClientRequest request = GetAzureClientRequest.newBuilder().setName(name == null ? null : name.toString()).build(); @@ -854,7 +871,9 @@ public final AzureClient getAzureClient(AzureClientName name) { *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureClient getAzureClient(String name) { GetAzureClientRequest request = GetAzureClientRequest.newBuilder().setName(name).build(); return getAzureClient(request); @@ -883,7 +902,9 @@ public final AzureClient getAzureClient(String name) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureClient getAzureClient(GetAzureClientRequest request) { return getAzureClientCallable().call(request); } @@ -911,7 +932,10 @@ public final AzureClient getAzureClient(GetAzureClientRequest request) { * AzureClient response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAzureClientCallable() { return stub.getAzureClientCallable(); } @@ -943,7 +967,9 @@ public final UnaryCallable getAzureClientCal *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAzureClientsPagedResponse listAzureClients(LocationName parent) { ListAzureClientsRequest request = ListAzureClientsRequest.newBuilder() @@ -979,7 +1005,9 @@ public final ListAzureClientsPagedResponse listAzureClients(LocationName parent) *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAzureClientsPagedResponse listAzureClients(String parent) { ListAzureClientsRequest request = ListAzureClientsRequest.newBuilder().setParent(parent).build(); @@ -1014,7 +1042,9 @@ public final ListAzureClientsPagedResponse listAzureClients(String parent) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAzureClientsPagedResponse listAzureClients(ListAzureClientsRequest request) { return listAzureClientsPagedCallable().call(request); } @@ -1047,7 +1077,10 @@ public final ListAzureClientsPagedResponse listAzureClients(ListAzureClientsRequ * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAzureClientsPagedCallable() { return stub.listAzureClientsPagedCallable(); @@ -1088,7 +1121,10 @@ public final ListAzureClientsPagedResponse listAzureClients(ListAzureClientsRequ * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAzureClientsCallable() { return stub.listAzureClientsCallable(); @@ -1126,7 +1162,9 @@ public final ListAzureClientsPagedResponse listAzureClients(ListAzureClientsRequ *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAzureClientAsync( AzureClientName name) { DeleteAzureClientRequest request = @@ -1168,7 +1206,9 @@ public final OperationFuture deleteAzureClientAsync( *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAzureClientAsync(String name) { DeleteAzureClientRequest request = DeleteAzureClientRequest.newBuilder().setName(name).build(); return deleteAzureClientAsync(request); @@ -1206,7 +1246,9 @@ public final OperationFuture deleteAzureClientAsync(St * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAzureClientAsync( DeleteAzureClientRequest request) { return deleteAzureClientOperationCallable().futureCall(request); @@ -1244,7 +1286,10 @@ public final OperationFuture deleteAzureClientAsync( * future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable deleteAzureClientOperationCallable() { return stub.deleteAzureClientOperationCallable(); @@ -1282,7 +1327,10 @@ public final OperationFuture deleteAzureClientAsync( * future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable deleteAzureClientCallable() { return stub.deleteAzureClientCallable(); } @@ -1327,7 +1375,9 @@ public final UnaryCallable deleteAzureClien * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`. *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAzureClusterAsync( LocationName parent, AzureCluster azureCluster, String azureClusterId) { CreateAzureClusterRequest request = @@ -1379,7 +1429,9 @@ public final OperationFuture createAzureCluster * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>`. *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAzureClusterAsync( String parent, AzureCluster azureCluster, String azureClusterId) { CreateAzureClusterRequest request = @@ -1422,7 +1474,9 @@ public final OperationFuture createAzureCluster * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAzureClusterAsync( CreateAzureClusterRequest request) { return createAzureClusterOperationCallable().futureCall(request); @@ -1459,7 +1513,10 @@ public final OperationFuture createAzureCluster * AzureCluster response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable createAzureClusterOperationCallable() { return stub.createAzureClusterOperationCallable(); @@ -1496,7 +1553,10 @@ public final OperationFuture createAzureCluster * Operation response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable createAzureClusterCallable() { return stub.createAzureClusterCallable(); } @@ -1536,7 +1596,9 @@ public final UnaryCallable createAzureClus * * `logging_config.component_config.enable_components` * * `monitoring_config.managed_prometheus_config.enabled`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture updateAzureClusterAsync( AzureCluster azureCluster, FieldMask updateMask) { UpdateAzureClusterRequest request = @@ -1572,7 +1634,9 @@ public final OperationFuture updateAzureCluster * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture updateAzureClusterAsync( UpdateAzureClusterRequest request) { return updateAzureClusterOperationCallable().futureCall(request); @@ -1603,7 +1667,10 @@ public final OperationFuture updateAzureCluster * AzureCluster response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable updateAzureClusterOperationCallable() { return stub.updateAzureClusterOperationCallable(); @@ -1634,7 +1701,10 @@ public final OperationFuture updateAzureCluster * Operation response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable updateAzureClusterCallable() { return stub.updateAzureClusterCallable(); } @@ -1664,7 +1734,9 @@ public final UnaryCallable updateAzureClus *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureCluster getAzureCluster(AzureClusterName name) { GetAzureClusterRequest request = GetAzureClusterRequest.newBuilder().setName(name == null ? null : name.toString()).build(); @@ -1696,7 +1768,9 @@ public final AzureCluster getAzureCluster(AzureClusterName name) { *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureCluster getAzureCluster(String name) { GetAzureClusterRequest request = GetAzureClusterRequest.newBuilder().setName(name).build(); return getAzureCluster(request); @@ -1725,7 +1799,9 @@ public final AzureCluster getAzureCluster(String name) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureCluster getAzureCluster(GetAzureClusterRequest request) { return getAzureClusterCallable().call(request); } @@ -1753,7 +1829,10 @@ public final AzureCluster getAzureCluster(GetAzureClusterRequest request) { * AzureCluster response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAzureClusterCallable() { return stub.getAzureClusterCallable(); } @@ -1785,7 +1864,9 @@ public final UnaryCallable getAzureCluster *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAzureClustersPagedResponse listAzureClusters(LocationName parent) { ListAzureClustersRequest request = ListAzureClustersRequest.newBuilder() @@ -1821,7 +1902,9 @@ public final ListAzureClustersPagedResponse listAzureClusters(LocationName paren *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAzureClustersPagedResponse listAzureClusters(String parent) { ListAzureClustersRequest request = ListAzureClustersRequest.newBuilder().setParent(parent).build(); @@ -1856,7 +1939,9 @@ public final ListAzureClustersPagedResponse listAzureClusters(String parent) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAzureClustersPagedResponse listAzureClusters(ListAzureClustersRequest request) { return listAzureClustersPagedCallable().call(request); } @@ -1889,7 +1974,10 @@ public final ListAzureClustersPagedResponse listAzureClusters(ListAzureClustersR * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAzureClustersPagedCallable() { return stub.listAzureClustersPagedCallable(); @@ -1930,7 +2018,10 @@ public final ListAzureClustersPagedResponse listAzureClusters(ListAzureClustersR * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAzureClustersCallable() { return stub.listAzureClustersCallable(); @@ -1968,7 +2059,9 @@ public final ListAzureClustersPagedResponse listAzureClusters(ListAzureClustersR *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAzureClusterAsync( AzureClusterName name) { DeleteAzureClusterRequest request = @@ -2010,7 +2103,9 @@ public final OperationFuture deleteAzureClusterAsync( *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud Platform resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAzureClusterAsync(String name) { DeleteAzureClusterRequest request = DeleteAzureClusterRequest.newBuilder().setName(name).build(); @@ -2051,7 +2146,9 @@ public final OperationFuture deleteAzureClusterAsync(S * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAzureClusterAsync( DeleteAzureClusterRequest request) { return deleteAzureClusterOperationCallable().futureCall(request); @@ -2091,7 +2188,10 @@ public final OperationFuture deleteAzureClusterAsync( * future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable deleteAzureClusterOperationCallable() { return stub.deleteAzureClusterOperationCallable(); @@ -2131,7 +2231,10 @@ public final OperationFuture deleteAzureClusterAsync( * future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable deleteAzureClusterCallable() { return stub.deleteAzureClusterCallable(); } @@ -2170,7 +2273,9 @@ public final UnaryCallable deleteAzureClus * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final GenerateAzureClusterAgentTokenResponse generateAzureClusterAgentToken( GenerateAzureClusterAgentTokenRequest request) { return generateAzureClusterAgentTokenCallable().call(request); @@ -2209,7 +2314,10 @@ public final GenerateAzureClusterAgentTokenResponse generateAzureClusterAgentTok * GenerateAzureClusterAgentTokenResponse response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenCallable() { @@ -2242,7 +2350,9 @@ public final GenerateAzureClusterAgentTokenResponse generateAzureClusterAgentTok * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final GenerateAzureAccessTokenResponse generateAzureAccessToken( GenerateAzureAccessTokenRequest request) { return generateAzureAccessTokenCallable().call(request); @@ -2273,7 +2383,10 @@ public final GenerateAzureAccessTokenResponse generateAzureAccessToken( * GenerateAzureAccessTokenResponse response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable generateAzureAccessTokenCallable() { return stub.generateAzureAccessTokenCallable(); @@ -2322,7 +2435,9 @@ public final GenerateAzureAccessTokenResponse generateAzureAccessToken( * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`. *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAzureNodePoolAsync( AzureClusterName parent, AzureNodePool azureNodePool, String azureNodePoolId) { CreateAzureNodePoolRequest request = @@ -2377,7 +2492,9 @@ public final OperationFuture createAzureNodePo * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>/azureNodePools/<node-pool-id>`. *

Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAzureNodePoolAsync( String parent, AzureNodePool azureNodePool, String azureNodePoolId) { CreateAzureNodePoolRequest request = @@ -2421,7 +2538,9 @@ public final OperationFuture createAzureNodePo * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture createAzureNodePoolAsync( CreateAzureNodePoolRequest request) { return createAzureNodePoolOperationCallable().futureCall(request); @@ -2459,7 +2578,10 @@ public final OperationFuture createAzureNodePo * AzureNodePool response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable createAzureNodePoolOperationCallable() { return stub.createAzureNodePoolOperationCallable(); @@ -2497,7 +2619,10 @@ public final OperationFuture createAzureNodePo * Operation response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable createAzureNodePoolCallable() { return stub.createAzureNodePoolCallable(); } @@ -2531,7 +2656,9 @@ public final UnaryCallable createAzureNod * `autoscaling.max_node_count`. * `config.ssh_config.authorized_key`. * * `management.auto_repair`. * `management`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture updateAzureNodePoolAsync( AzureNodePool azureNodePool, FieldMask updateMask) { UpdateAzureNodePoolRequest request = @@ -2567,7 +2694,9 @@ public final OperationFuture updateAzureNodePo * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture updateAzureNodePoolAsync( UpdateAzureNodePoolRequest request) { return updateAzureNodePoolOperationCallable().futureCall(request); @@ -2598,7 +2727,10 @@ public final OperationFuture updateAzureNodePo * AzureNodePool response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable updateAzureNodePoolOperationCallable() { return stub.updateAzureNodePoolOperationCallable(); @@ -2629,7 +2761,10 @@ public final OperationFuture updateAzureNodePo * Operation response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable updateAzureNodePoolCallable() { return stub.updateAzureNodePoolCallable(); } @@ -2660,7 +2795,9 @@ public final UnaryCallable updateAzureNod *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureNodePool getAzureNodePool(AzureNodePoolName name) { GetAzureNodePoolRequest request = GetAzureNodePoolRequest.newBuilder().setName(name == null ? null : name.toString()).build(); @@ -2694,7 +2831,9 @@ public final AzureNodePool getAzureNodePool(AzureNodePoolName name) { *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureNodePool getAzureNodePool(String name) { GetAzureNodePoolRequest request = GetAzureNodePoolRequest.newBuilder().setName(name).build(); return getAzureNodePool(request); @@ -2726,7 +2865,9 @@ public final AzureNodePool getAzureNodePool(String name) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureNodePool getAzureNodePool(GetAzureNodePoolRequest request) { return getAzureNodePoolCallable().call(request); } @@ -2757,7 +2898,10 @@ public final AzureNodePool getAzureNodePool(GetAzureNodePoolRequest request) { * AzureNodePool response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAzureNodePoolCallable() { return stub.getAzureNodePoolCallable(); } @@ -2790,7 +2934,9 @@ public final UnaryCallable getAzureNodeP *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAzureNodePoolsPagedResponse listAzureNodePools(AzureClusterName parent) { ListAzureNodePoolsRequest request = ListAzureNodePoolsRequest.newBuilder() @@ -2827,7 +2973,9 @@ public final ListAzureNodePoolsPagedResponse listAzureNodePools(AzureClusterName *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAzureNodePoolsPagedResponse listAzureNodePools(String parent) { ListAzureNodePoolsRequest request = ListAzureNodePoolsRequest.newBuilder().setParent(parent).build(); @@ -2863,7 +3011,9 @@ public final ListAzureNodePoolsPagedResponse listAzureNodePools(String parent) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final ListAzureNodePoolsPagedResponse listAzureNodePools( ListAzureNodePoolsRequest request) { return listAzureNodePoolsPagedCallable().call(request); @@ -2898,7 +3048,10 @@ public final ListAzureNodePoolsPagedResponse listAzureNodePools( * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAzureNodePoolsPagedCallable() { return stub.listAzureNodePoolsPagedCallable(); @@ -2940,7 +3093,10 @@ public final ListAzureNodePoolsPagedResponse listAzureNodePools( * } * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable listAzureNodePoolsCallable() { return stub.listAzureNodePoolsCallable(); @@ -2976,7 +3132,9 @@ public final ListAzureNodePoolsPagedResponse listAzureNodePools( *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAzureNodePoolAsync( AzureNodePoolName name) { DeleteAzureNodePoolRequest request = @@ -3017,7 +3175,9 @@ public final OperationFuture deleteAzureNodePoolAsync( *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAzureNodePoolAsync(String name) { DeleteAzureNodePoolRequest request = DeleteAzureNodePoolRequest.newBuilder().setName(name).build(); @@ -3058,7 +3218,9 @@ public final OperationFuture deleteAzureNodePoolAsync( * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationFuture deleteAzureNodePoolAsync( DeleteAzureNodePoolRequest request) { return deleteAzureNodePoolOperationCallable().futureCall(request); @@ -3098,7 +3260,10 @@ public final OperationFuture deleteAzureNodePoolAsync( * future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final OperationCallable deleteAzureNodePoolOperationCallable() { return stub.deleteAzureNodePoolOperationCallable(); @@ -3138,7 +3303,10 @@ public final OperationFuture deleteAzureNodePoolAsync( * future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable deleteAzureNodePoolCallable() { return stub.deleteAzureNodePoolCallable(); } @@ -3166,7 +3334,9 @@ public final UnaryCallable deleteAzureNod * @param azureCluster Required. The AzureCluster, which owns the OIDC discovery document. Format: * projects/<project-id>/locations/<region>/azureClusters/<cluster-id> * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureOpenIdConfig getAzureOpenIdConfig(AzureClusterName azureCluster) { GetAzureOpenIdConfigRequest request = GetAzureOpenIdConfigRequest.newBuilder() @@ -3198,7 +3368,9 @@ public final AzureOpenIdConfig getAzureOpenIdConfig(AzureClusterName azureCluste * @param azureCluster Required. The AzureCluster, which owns the OIDC discovery document. Format: * projects/<project-id>/locations/<region>/azureClusters/<cluster-id> * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureOpenIdConfig getAzureOpenIdConfig(String azureCluster) { GetAzureOpenIdConfigRequest request = GetAzureOpenIdConfigRequest.newBuilder().setAzureCluster(azureCluster).build(); @@ -3230,7 +3402,9 @@ public final AzureOpenIdConfig getAzureOpenIdConfig(String azureCluster) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureOpenIdConfig getAzureOpenIdConfig(GetAzureOpenIdConfigRequest request) { return getAzureOpenIdConfigCallable().call(request); } @@ -3260,7 +3434,10 @@ public final AzureOpenIdConfig getAzureOpenIdConfig(GetAzureOpenIdConfigRequest * AzureOpenIdConfig response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAzureOpenIdConfigCallable() { return stub.getAzureOpenIdConfigCallable(); @@ -3288,7 +3465,9 @@ public final AzureOpenIdConfig getAzureOpenIdConfig(GetAzureOpenIdConfigRequest * @param azureCluster Required. The AzureCluster, which owns the JsonWebKeys. Format: * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureJsonWebKeys getAzureJsonWebKeys(AzureClusterName azureCluster) { GetAzureJsonWebKeysRequest request = GetAzureJsonWebKeysRequest.newBuilder() @@ -3319,7 +3498,9 @@ public final AzureJsonWebKeys getAzureJsonWebKeys(AzureClusterName azureCluster) * @param azureCluster Required. The AzureCluster, which owns the JsonWebKeys. Format: * `projects/<project-id>/locations/<region>/azureClusters/<cluster-id>` * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureJsonWebKeys getAzureJsonWebKeys(String azureCluster) { GetAzureJsonWebKeysRequest request = GetAzureJsonWebKeysRequest.newBuilder().setAzureCluster(azureCluster).build(); @@ -3350,7 +3531,9 @@ public final AzureJsonWebKeys getAzureJsonWebKeys(String azureCluster) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureJsonWebKeys getAzureJsonWebKeys(GetAzureJsonWebKeysRequest request) { return getAzureJsonWebKeysCallable().call(request); } @@ -3379,7 +3562,10 @@ public final AzureJsonWebKeys getAzureJsonWebKeys(GetAzureJsonWebKeysRequest req * AzureJsonWebKeys response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAzureJsonWebKeysCallable() { return stub.getAzureJsonWebKeysCallable(); @@ -3411,7 +3597,9 @@ public final AzureJsonWebKeys getAzureJsonWebKeys(GetAzureJsonWebKeysRequest req *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureServerConfig getAzureServerConfig(AzureServerConfigName name) { GetAzureServerConfigRequest request = GetAzureServerConfigRequest.newBuilder() @@ -3446,7 +3634,9 @@ public final AzureServerConfig getAzureServerConfig(AzureServerConfigName name) *

See [Resource Names](https://cloud.google.com/apis/design/resource_names) for more * details on Google Cloud resource names. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureServerConfig getAzureServerConfig(String name) { GetAzureServerConfigRequest request = GetAzureServerConfigRequest.newBuilder().setName(name).build(); @@ -3477,7 +3667,9 @@ public final AzureServerConfig getAzureServerConfig(String name) { * * @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 + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final AzureServerConfig getAzureServerConfig(GetAzureServerConfigRequest request) { return getAzureServerConfigCallable().call(request); } @@ -3506,7 +3698,10 @@ public final AzureServerConfig getAzureServerConfig(GetAzureServerConfigRequest * AzureServerConfig response = future.get(); * } * } + * + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final UnaryCallable getAzureServerConfigCallable() { return stub.getAzureServerConfigCallable(); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersSettings.java index 9feecaf5ee87..79f8f72cb5e6 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersSettings.java @@ -113,160 +113,298 @@ * .setPollingAlgorithm(timedRetryAlgorithm) * .build(); * } + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class AzureClustersSettings extends ClientSettings { - /** Returns the object with the settings used for calls to createAzureClient. */ + /** + * Returns the object with the settings used for calls to createAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAzureClientSettings() { return ((AzureClustersStubSettings) getStubSettings()).createAzureClientSettings(); } - /** Returns the object with the settings used for calls to createAzureClient. */ + /** + * Returns the object with the settings used for calls to createAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings createAzureClientOperationSettings() { return ((AzureClustersStubSettings) getStubSettings()).createAzureClientOperationSettings(); } - /** Returns the object with the settings used for calls to getAzureClient. */ + /** + * Returns the object with the settings used for calls to getAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureClientSettings() { return ((AzureClustersStubSettings) getStubSettings()).getAzureClientSettings(); } - /** Returns the object with the settings used for calls to listAzureClients. */ + /** + * Returns the object with the settings used for calls to listAzureClients. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAzureClientsRequest, ListAzureClientsResponse, ListAzureClientsPagedResponse> listAzureClientsSettings() { return ((AzureClustersStubSettings) getStubSettings()).listAzureClientsSettings(); } - /** Returns the object with the settings used for calls to deleteAzureClient. */ + /** + * Returns the object with the settings used for calls to deleteAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAzureClientSettings() { return ((AzureClustersStubSettings) getStubSettings()).deleteAzureClientSettings(); } - /** Returns the object with the settings used for calls to deleteAzureClient. */ + /** + * Returns the object with the settings used for calls to deleteAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings deleteAzureClientOperationSettings() { return ((AzureClustersStubSettings) getStubSettings()).deleteAzureClientOperationSettings(); } - /** Returns the object with the settings used for calls to createAzureCluster. */ + /** + * Returns the object with the settings used for calls to createAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAzureClusterSettings() { return ((AzureClustersStubSettings) getStubSettings()).createAzureClusterSettings(); } - /** Returns the object with the settings used for calls to createAzureCluster. */ + /** + * Returns the object with the settings used for calls to createAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings createAzureClusterOperationSettings() { return ((AzureClustersStubSettings) getStubSettings()).createAzureClusterOperationSettings(); } - /** Returns the object with the settings used for calls to updateAzureCluster. */ + /** + * Returns the object with the settings used for calls to updateAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateAzureClusterSettings() { return ((AzureClustersStubSettings) getStubSettings()).updateAzureClusterSettings(); } - /** Returns the object with the settings used for calls to updateAzureCluster. */ + /** + * Returns the object with the settings used for calls to updateAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings updateAzureClusterOperationSettings() { return ((AzureClustersStubSettings) getStubSettings()).updateAzureClusterOperationSettings(); } - /** Returns the object with the settings used for calls to getAzureCluster. */ + /** + * Returns the object with the settings used for calls to getAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureClusterSettings() { return ((AzureClustersStubSettings) getStubSettings()).getAzureClusterSettings(); } - /** Returns the object with the settings used for calls to listAzureClusters. */ + /** + * Returns the object with the settings used for calls to listAzureClusters. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAzureClustersRequest, ListAzureClustersResponse, ListAzureClustersPagedResponse> listAzureClustersSettings() { return ((AzureClustersStubSettings) getStubSettings()).listAzureClustersSettings(); } - /** Returns the object with the settings used for calls to deleteAzureCluster. */ + /** + * Returns the object with the settings used for calls to deleteAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAzureClusterSettings() { return ((AzureClustersStubSettings) getStubSettings()).deleteAzureClusterSettings(); } - /** Returns the object with the settings used for calls to deleteAzureCluster. */ + /** + * Returns the object with the settings used for calls to deleteAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings deleteAzureClusterOperationSettings() { return ((AzureClustersStubSettings) getStubSettings()).deleteAzureClusterOperationSettings(); } - /** Returns the object with the settings used for calls to generateAzureClusterAgentToken. */ + /** + * Returns the object with the settings used for calls to generateAzureClusterAgentToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenSettings() { return ((AzureClustersStubSettings) getStubSettings()).generateAzureClusterAgentTokenSettings(); } - /** Returns the object with the settings used for calls to generateAzureAccessToken. */ + /** + * Returns the object with the settings used for calls to generateAzureAccessToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings generateAzureAccessTokenSettings() { return ((AzureClustersStubSettings) getStubSettings()).generateAzureAccessTokenSettings(); } - /** Returns the object with the settings used for calls to createAzureNodePool. */ + /** + * Returns the object with the settings used for calls to createAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAzureNodePoolSettings() { return ((AzureClustersStubSettings) getStubSettings()).createAzureNodePoolSettings(); } - /** Returns the object with the settings used for calls to createAzureNodePool. */ + /** + * Returns the object with the settings used for calls to createAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings createAzureNodePoolOperationSettings() { return ((AzureClustersStubSettings) getStubSettings()).createAzureNodePoolOperationSettings(); } - /** Returns the object with the settings used for calls to updateAzureNodePool. */ + /** + * Returns the object with the settings used for calls to updateAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateAzureNodePoolSettings() { return ((AzureClustersStubSettings) getStubSettings()).updateAzureNodePoolSettings(); } - /** Returns the object with the settings used for calls to updateAzureNodePool. */ + /** + * Returns the object with the settings used for calls to updateAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings updateAzureNodePoolOperationSettings() { return ((AzureClustersStubSettings) getStubSettings()).updateAzureNodePoolOperationSettings(); } - /** Returns the object with the settings used for calls to getAzureNodePool. */ + /** + * Returns the object with the settings used for calls to getAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureNodePoolSettings() { return ((AzureClustersStubSettings) getStubSettings()).getAzureNodePoolSettings(); } - /** Returns the object with the settings used for calls to listAzureNodePools. */ + /** + * Returns the object with the settings used for calls to listAzureNodePools. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAzureNodePoolsRequest, ListAzureNodePoolsResponse, ListAzureNodePoolsPagedResponse> listAzureNodePoolsSettings() { return ((AzureClustersStubSettings) getStubSettings()).listAzureNodePoolsSettings(); } - /** Returns the object with the settings used for calls to deleteAzureNodePool. */ + /** + * Returns the object with the settings used for calls to deleteAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAzureNodePoolSettings() { return ((AzureClustersStubSettings) getStubSettings()).deleteAzureNodePoolSettings(); } - /** Returns the object with the settings used for calls to deleteAzureNodePool. */ + /** + * Returns the object with the settings used for calls to deleteAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings deleteAzureNodePoolOperationSettings() { return ((AzureClustersStubSettings) getStubSettings()).deleteAzureNodePoolOperationSettings(); } - /** Returns the object with the settings used for calls to getAzureOpenIdConfig. */ + /** + * Returns the object with the settings used for calls to getAzureOpenIdConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureOpenIdConfigSettings() { return ((AzureClustersStubSettings) getStubSettings()).getAzureOpenIdConfigSettings(); } - /** Returns the object with the settings used for calls to getAzureJsonWebKeys. */ + /** + * Returns the object with the settings used for calls to getAzureJsonWebKeys. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureJsonWebKeysSettings() { return ((AzureClustersStubSettings) getStubSettings()).getAzureJsonWebKeysSettings(); } - /** Returns the object with the settings used for calls to getAzureServerConfig. */ + /** + * Returns the object with the settings used for calls to getAzureServerConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureServerConfigSettings() { return ((AzureClustersStubSettings) getStubSettings()).getAzureServerConfigSettings(); @@ -384,169 +522,304 @@ public Builder applyToAllUnaryMethods( return this; } - /** Returns the builder for the settings used for calls to createAzureClient. */ + /** + * Returns the builder for the settings used for calls to createAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAzureClientSettings() { return getStubSettingsBuilder().createAzureClientSettings(); } - /** Returns the builder for the settings used for calls to createAzureClient. */ + /** + * Returns the builder for the settings used for calls to createAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder createAzureClientOperationSettings() { return getStubSettingsBuilder().createAzureClientOperationSettings(); } - /** Returns the builder for the settings used for calls to getAzureClient. */ + /** + * Returns the builder for the settings used for calls to getAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureClientSettings() { return getStubSettingsBuilder().getAzureClientSettings(); } - /** Returns the builder for the settings used for calls to listAzureClients. */ + /** + * Returns the builder for the settings used for calls to listAzureClients. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAzureClientsRequest, ListAzureClientsResponse, ListAzureClientsPagedResponse> listAzureClientsSettings() { return getStubSettingsBuilder().listAzureClientsSettings(); } - /** Returns the builder for the settings used for calls to deleteAzureClient. */ + /** + * Returns the builder for the settings used for calls to deleteAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAzureClientSettings() { return getStubSettingsBuilder().deleteAzureClientSettings(); } - /** Returns the builder for the settings used for calls to deleteAzureClient. */ + /** + * Returns the builder for the settings used for calls to deleteAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder deleteAzureClientOperationSettings() { return getStubSettingsBuilder().deleteAzureClientOperationSettings(); } - /** Returns the builder for the settings used for calls to createAzureCluster. */ + /** + * Returns the builder for the settings used for calls to createAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAzureClusterSettings() { return getStubSettingsBuilder().createAzureClusterSettings(); } - /** Returns the builder for the settings used for calls to createAzureCluster. */ + /** + * Returns the builder for the settings used for calls to createAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder createAzureClusterOperationSettings() { return getStubSettingsBuilder().createAzureClusterOperationSettings(); } - /** Returns the builder for the settings used for calls to updateAzureCluster. */ + /** + * Returns the builder for the settings used for calls to updateAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateAzureClusterSettings() { return getStubSettingsBuilder().updateAzureClusterSettings(); } - /** Returns the builder for the settings used for calls to updateAzureCluster. */ + /** + * Returns the builder for the settings used for calls to updateAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder updateAzureClusterOperationSettings() { return getStubSettingsBuilder().updateAzureClusterOperationSettings(); } - /** Returns the builder for the settings used for calls to getAzureCluster. */ + /** + * Returns the builder for the settings used for calls to getAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureClusterSettings() { return getStubSettingsBuilder().getAzureClusterSettings(); } - /** Returns the builder for the settings used for calls to listAzureClusters. */ + /** + * Returns the builder for the settings used for calls to listAzureClusters. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAzureClustersRequest, ListAzureClustersResponse, ListAzureClustersPagedResponse> listAzureClustersSettings() { return getStubSettingsBuilder().listAzureClustersSettings(); } - /** Returns the builder for the settings used for calls to deleteAzureCluster. */ + /** + * Returns the builder for the settings used for calls to deleteAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAzureClusterSettings() { return getStubSettingsBuilder().deleteAzureClusterSettings(); } - /** Returns the builder for the settings used for calls to deleteAzureCluster. */ + /** + * Returns the builder for the settings used for calls to deleteAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder deleteAzureClusterOperationSettings() { return getStubSettingsBuilder().deleteAzureClusterOperationSettings(); } - /** Returns the builder for the settings used for calls to generateAzureClusterAgentToken. */ + /** + * Returns the builder for the settings used for calls to generateAzureClusterAgentToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenSettings() { return getStubSettingsBuilder().generateAzureClusterAgentTokenSettings(); } - /** Returns the builder for the settings used for calls to generateAzureAccessToken. */ + /** + * Returns the builder for the settings used for calls to generateAzureAccessToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder< GenerateAzureAccessTokenRequest, GenerateAzureAccessTokenResponse> generateAzureAccessTokenSettings() { return getStubSettingsBuilder().generateAzureAccessTokenSettings(); } - /** Returns the builder for the settings used for calls to createAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to createAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAzureNodePoolSettings() { return getStubSettingsBuilder().createAzureNodePoolSettings(); } - /** Returns the builder for the settings used for calls to createAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to createAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder< CreateAzureNodePoolRequest, AzureNodePool, OperationMetadata> createAzureNodePoolOperationSettings() { return getStubSettingsBuilder().createAzureNodePoolOperationSettings(); } - /** Returns the builder for the settings used for calls to updateAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to updateAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateAzureNodePoolSettings() { return getStubSettingsBuilder().updateAzureNodePoolSettings(); } - /** Returns the builder for the settings used for calls to updateAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to updateAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder< UpdateAzureNodePoolRequest, AzureNodePool, OperationMetadata> updateAzureNodePoolOperationSettings() { return getStubSettingsBuilder().updateAzureNodePoolOperationSettings(); } - /** Returns the builder for the settings used for calls to getAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to getAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureNodePoolSettings() { return getStubSettingsBuilder().getAzureNodePoolSettings(); } - /** Returns the builder for the settings used for calls to listAzureNodePools. */ + /** + * Returns the builder for the settings used for calls to listAzureNodePools. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAzureNodePoolsRequest, ListAzureNodePoolsResponse, ListAzureNodePoolsPagedResponse> listAzureNodePoolsSettings() { return getStubSettingsBuilder().listAzureNodePoolsSettings(); } - /** Returns the builder for the settings used for calls to deleteAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to deleteAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAzureNodePoolSettings() { return getStubSettingsBuilder().deleteAzureNodePoolSettings(); } - /** Returns the builder for the settings used for calls to deleteAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to deleteAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public OperationCallSettings.Builder deleteAzureNodePoolOperationSettings() { return getStubSettingsBuilder().deleteAzureNodePoolOperationSettings(); } - /** Returns the builder for the settings used for calls to getAzureOpenIdConfig. */ + /** + * Returns the builder for the settings used for calls to getAzureOpenIdConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureOpenIdConfigSettings() { return getStubSettingsBuilder().getAzureOpenIdConfigSettings(); } - /** Returns the builder for the settings used for calls to getAzureJsonWebKeys. */ + /** + * Returns the builder for the settings used for calls to getAzureJsonWebKeys. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureJsonWebKeysSettings() { return getStubSettingsBuilder().getAzureJsonWebKeysSettings(); } - /** Returns the builder for the settings used for calls to getAzureServerConfig. */ + /** + * Returns the builder for the settings used for calls to getAzureServerConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureServerConfigSettings() { return getStubSettingsBuilder().getAzureServerConfigSettings(); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStub.java index 727295c13ad7..4a57ed72ebd0 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStub.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStub.java @@ -58,7 +58,10 @@ * Base stub class for the AwsClusters service API. * *

This class is for advanced usage and reflects the underlying API directly. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public abstract class AwsClustersStub implements BackgroundResource { @@ -70,120 +73,145 @@ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOp return null; } + @Deprecated public OperationCallable createAwsClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: createAwsClusterOperationCallable()"); } + @Deprecated public UnaryCallable createAwsClusterCallable() { throw new UnsupportedOperationException("Not implemented: createAwsClusterCallable()"); } + @Deprecated public OperationCallable updateAwsClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateAwsClusterOperationCallable()"); } + @Deprecated public UnaryCallable updateAwsClusterCallable() { throw new UnsupportedOperationException("Not implemented: updateAwsClusterCallable()"); } + @Deprecated public UnaryCallable getAwsClusterCallable() { throw new UnsupportedOperationException("Not implemented: getAwsClusterCallable()"); } + @Deprecated public UnaryCallable listAwsClustersPagedCallable() { throw new UnsupportedOperationException("Not implemented: listAwsClustersPagedCallable()"); } + @Deprecated public UnaryCallable listAwsClustersCallable() { throw new UnsupportedOperationException("Not implemented: listAwsClustersCallable()"); } + @Deprecated public OperationCallable deleteAwsClusterOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteAwsClusterOperationCallable()"); } + @Deprecated public UnaryCallable deleteAwsClusterCallable() { throw new UnsupportedOperationException("Not implemented: deleteAwsClusterCallable()"); } + @Deprecated public UnaryCallable generateAwsClusterAgentTokenCallable() { throw new UnsupportedOperationException( "Not implemented: generateAwsClusterAgentTokenCallable()"); } + @Deprecated public UnaryCallable generateAwsAccessTokenCallable() { throw new UnsupportedOperationException("Not implemented: generateAwsAccessTokenCallable()"); } + @Deprecated public OperationCallable createAwsNodePoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: createAwsNodePoolOperationCallable()"); } + @Deprecated public UnaryCallable createAwsNodePoolCallable() { throw new UnsupportedOperationException("Not implemented: createAwsNodePoolCallable()"); } + @Deprecated public OperationCallable updateAwsNodePoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateAwsNodePoolOperationCallable()"); } + @Deprecated public UnaryCallable updateAwsNodePoolCallable() { throw new UnsupportedOperationException("Not implemented: updateAwsNodePoolCallable()"); } + @Deprecated public OperationCallable rollbackAwsNodePoolUpdateOperationCallable() { throw new UnsupportedOperationException( "Not implemented: rollbackAwsNodePoolUpdateOperationCallable()"); } + @Deprecated public UnaryCallable rollbackAwsNodePoolUpdateCallable() { throw new UnsupportedOperationException("Not implemented: rollbackAwsNodePoolUpdateCallable()"); } + @Deprecated public UnaryCallable getAwsNodePoolCallable() { throw new UnsupportedOperationException("Not implemented: getAwsNodePoolCallable()"); } + @Deprecated public UnaryCallable listAwsNodePoolsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listAwsNodePoolsPagedCallable()"); } + @Deprecated public UnaryCallable listAwsNodePoolsCallable() { throw new UnsupportedOperationException("Not implemented: listAwsNodePoolsCallable()"); } + @Deprecated public OperationCallable deleteAwsNodePoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteAwsNodePoolOperationCallable()"); } + @Deprecated public UnaryCallable deleteAwsNodePoolCallable() { throw new UnsupportedOperationException("Not implemented: deleteAwsNodePoolCallable()"); } + @Deprecated public UnaryCallable getAwsOpenIdConfigCallable() { throw new UnsupportedOperationException("Not implemented: getAwsOpenIdConfigCallable()"); } + @Deprecated public UnaryCallable getAwsJsonWebKeysCallable() { throw new UnsupportedOperationException("Not implemented: getAwsJsonWebKeysCallable()"); } + @Deprecated public UnaryCallable getAwsServerConfigCallable() { throw new UnsupportedOperationException("Not implemented: getAwsServerConfigCallable()"); } diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java index 7abf72a93266..d99c207305c0 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AwsClustersStubSettings.java @@ -161,7 +161,10 @@ * .setPollingAlgorithm(timedRetryAlgorithm) * .build(); * } + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class AwsClustersStubSettings extends StubSettings { /** The default scopes of the service. */ @@ -322,7 +325,12 @@ public ApiFuture getFuturePagedResponse( } }; - /** Returns the object with the settings used for calls to createAwsCluster. */ + /** + * Returns the object with the settings used for calls to createAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAwsClusterSettings() { return createAwsClusterSettings; } @@ -333,7 +341,12 @@ public UnaryCallSettings createAwsClusterSet return createAwsClusterOperationSettings; } - /** Returns the object with the settings used for calls to updateAwsCluster. */ + /** + * Returns the object with the settings used for calls to updateAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateAwsClusterSettings() { return updateAwsClusterSettings; } @@ -344,19 +357,34 @@ public UnaryCallSettings updateAwsClusterSet return updateAwsClusterOperationSettings; } - /** Returns the object with the settings used for calls to getAwsCluster. */ + /** + * Returns the object with the settings used for calls to getAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsClusterSettings() { return getAwsClusterSettings; } - /** Returns the object with the settings used for calls to listAwsClusters. */ + /** + * Returns the object with the settings used for calls to listAwsClusters. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAwsClustersRequest, ListAwsClustersResponse, ListAwsClustersPagedResponse> listAwsClustersSettings() { return listAwsClustersSettings; } - /** Returns the object with the settings used for calls to deleteAwsCluster. */ + /** + * Returns the object with the settings used for calls to deleteAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAwsClusterSettings() { return deleteAwsClusterSettings; } @@ -367,20 +395,35 @@ public UnaryCallSettings deleteAwsClusterSet return deleteAwsClusterOperationSettings; } - /** Returns the object with the settings used for calls to generateAwsClusterAgentToken. */ + /** + * Returns the object with the settings used for calls to generateAwsClusterAgentToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings< GenerateAwsClusterAgentTokenRequest, GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentTokenSettings() { return generateAwsClusterAgentTokenSettings; } - /** Returns the object with the settings used for calls to generateAwsAccessToken. */ + /** + * Returns the object with the settings used for calls to generateAwsAccessToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings generateAwsAccessTokenSettings() { return generateAwsAccessTokenSettings; } - /** Returns the object with the settings used for calls to createAwsNodePool. */ + /** + * Returns the object with the settings used for calls to createAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAwsNodePoolSettings() { return createAwsNodePoolSettings; } @@ -391,7 +434,12 @@ public UnaryCallSettings createAwsNodePoolS return createAwsNodePoolOperationSettings; } - /** Returns the object with the settings used for calls to updateAwsNodePool. */ + /** + * Returns the object with the settings used for calls to updateAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateAwsNodePoolSettings() { return updateAwsNodePoolSettings; } @@ -402,7 +450,12 @@ public UnaryCallSettings updateAwsNodePoolS return updateAwsNodePoolOperationSettings; } - /** Returns the object with the settings used for calls to rollbackAwsNodePoolUpdate. */ + /** + * Returns the object with the settings used for calls to rollbackAwsNodePoolUpdate. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings rollbackAwsNodePoolUpdateSettings() { return rollbackAwsNodePoolUpdateSettings; @@ -414,19 +467,34 @@ public UnaryCallSettings updateAwsNodePoolS return rollbackAwsNodePoolUpdateOperationSettings; } - /** Returns the object with the settings used for calls to getAwsNodePool. */ + /** + * Returns the object with the settings used for calls to getAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsNodePoolSettings() { return getAwsNodePoolSettings; } - /** Returns the object with the settings used for calls to listAwsNodePools. */ + /** + * Returns the object with the settings used for calls to listAwsNodePools. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAwsNodePoolsRequest, ListAwsNodePoolsResponse, ListAwsNodePoolsPagedResponse> listAwsNodePoolsSettings() { return listAwsNodePoolsSettings; } - /** Returns the object with the settings used for calls to deleteAwsNodePool. */ + /** + * Returns the object with the settings used for calls to deleteAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAwsNodePoolSettings() { return deleteAwsNodePoolSettings; } @@ -437,18 +505,33 @@ public UnaryCallSettings deleteAwsNodePoolS return deleteAwsNodePoolOperationSettings; } - /** Returns the object with the settings used for calls to getAwsOpenIdConfig. */ + /** + * Returns the object with the settings used for calls to getAwsOpenIdConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsOpenIdConfigSettings() { return getAwsOpenIdConfigSettings; } - /** Returns the object with the settings used for calls to getAwsJsonWebKeys. */ + /** + * Returns the object with the settings used for calls to getAwsJsonWebKeys. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsJsonWebKeysSettings() { return getAwsJsonWebKeysSettings; } - /** Returns the object with the settings used for calls to getAwsServerConfig. */ + /** + * Returns the object with the settings used for calls to getAwsServerConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAwsServerConfigSettings() { return getAwsServerConfigSettings; @@ -1086,7 +1169,12 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } - /** Returns the builder for the settings used for calls to createAwsCluster. */ + /** + * Returns the builder for the settings used for calls to createAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAwsClusterSettings() { return createAwsClusterSettings; @@ -1098,7 +1186,12 @@ public Builder applyToAllUnaryMethods( return createAwsClusterOperationSettings; } - /** Returns the builder for the settings used for calls to updateAwsCluster. */ + /** + * Returns the builder for the settings used for calls to updateAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateAwsClusterSettings() { return updateAwsClusterSettings; @@ -1110,19 +1203,34 @@ public Builder applyToAllUnaryMethods( return updateAwsClusterOperationSettings; } - /** Returns the builder for the settings used for calls to getAwsCluster. */ + /** + * Returns the builder for the settings used for calls to getAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsClusterSettings() { return getAwsClusterSettings; } - /** Returns the builder for the settings used for calls to listAwsClusters. */ + /** + * Returns the builder for the settings used for calls to listAwsClusters. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAwsClustersRequest, ListAwsClustersResponse, ListAwsClustersPagedResponse> listAwsClustersSettings() { return listAwsClustersSettings; } - /** Returns the builder for the settings used for calls to deleteAwsCluster. */ + /** + * Returns the builder for the settings used for calls to deleteAwsCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAwsClusterSettings() { return deleteAwsClusterSettings; @@ -1134,20 +1242,35 @@ public UnaryCallSettings.Builder getAwsCluster return deleteAwsClusterOperationSettings; } - /** Returns the builder for the settings used for calls to generateAwsClusterAgentToken. */ + /** + * Returns the builder for the settings used for calls to generateAwsClusterAgentToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder< GenerateAwsClusterAgentTokenRequest, GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentTokenSettings() { return generateAwsClusterAgentTokenSettings; } - /** Returns the builder for the settings used for calls to generateAwsAccessToken. */ + /** + * Returns the builder for the settings used for calls to generateAwsAccessToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder generateAwsAccessTokenSettings() { return generateAwsAccessTokenSettings; } - /** Returns the builder for the settings used for calls to createAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to createAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAwsNodePoolSettings() { return createAwsNodePoolSettings; @@ -1159,7 +1282,12 @@ public UnaryCallSettings.Builder getAwsCluster return createAwsNodePoolOperationSettings; } - /** Returns the builder for the settings used for calls to updateAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to updateAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateAwsNodePoolSettings() { return updateAwsNodePoolSettings; @@ -1171,7 +1299,12 @@ public UnaryCallSettings.Builder getAwsCluster return updateAwsNodePoolOperationSettings; } - /** Returns the builder for the settings used for calls to rollbackAwsNodePoolUpdate. */ + /** + * Returns the builder for the settings used for calls to rollbackAwsNodePoolUpdate. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder rollbackAwsNodePoolUpdateSettings() { return rollbackAwsNodePoolUpdateSettings; @@ -1184,19 +1317,34 @@ public UnaryCallSettings.Builder getAwsCluster return rollbackAwsNodePoolUpdateOperationSettings; } - /** Returns the builder for the settings used for calls to getAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to getAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsNodePoolSettings() { return getAwsNodePoolSettings; } - /** Returns the builder for the settings used for calls to listAwsNodePools. */ + /** + * Returns the builder for the settings used for calls to listAwsNodePools. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAwsNodePoolsRequest, ListAwsNodePoolsResponse, ListAwsNodePoolsPagedResponse> listAwsNodePoolsSettings() { return listAwsNodePoolsSettings; } - /** Returns the builder for the settings used for calls to deleteAwsNodePool. */ + /** + * Returns the builder for the settings used for calls to deleteAwsNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAwsNodePoolSettings() { return deleteAwsNodePoolSettings; @@ -1208,19 +1356,34 @@ public UnaryCallSettings.Builder getAwsNodeP return deleteAwsNodePoolOperationSettings; } - /** Returns the builder for the settings used for calls to getAwsOpenIdConfig. */ + /** + * Returns the builder for the settings used for calls to getAwsOpenIdConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsOpenIdConfigSettings() { return getAwsOpenIdConfigSettings; } - /** Returns the builder for the settings used for calls to getAwsJsonWebKeys. */ + /** + * Returns the builder for the settings used for calls to getAwsJsonWebKeys. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsJsonWebKeysSettings() { return getAwsJsonWebKeysSettings; } - /** Returns the builder for the settings used for calls to getAwsServerConfig. */ + /** + * Returns the builder for the settings used for calls to getAwsServerConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAwsServerConfigSettings() { return getAwsServerConfigSettings; diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStub.java index fcd2422e66ae..45a6b963dc28 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStub.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStub.java @@ -64,7 +64,10 @@ * Base stub class for the AzureClusters service API. * *

This class is for advanced usage and reflects the underlying API directly. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public abstract class AzureClustersStub implements BackgroundResource { @@ -76,84 +79,101 @@ public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOp return null; } + @Deprecated public OperationCallable createAzureClientOperationCallable() { throw new UnsupportedOperationException( "Not implemented: createAzureClientOperationCallable()"); } + @Deprecated public UnaryCallable createAzureClientCallable() { throw new UnsupportedOperationException("Not implemented: createAzureClientCallable()"); } + @Deprecated public UnaryCallable getAzureClientCallable() { throw new UnsupportedOperationException("Not implemented: getAzureClientCallable()"); } + @Deprecated public UnaryCallable listAzureClientsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listAzureClientsPagedCallable()"); } + @Deprecated public UnaryCallable listAzureClientsCallable() { throw new UnsupportedOperationException("Not implemented: listAzureClientsCallable()"); } + @Deprecated public OperationCallable deleteAzureClientOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteAzureClientOperationCallable()"); } + @Deprecated public UnaryCallable deleteAzureClientCallable() { throw new UnsupportedOperationException("Not implemented: deleteAzureClientCallable()"); } + @Deprecated public OperationCallable createAzureClusterOperationCallable() { throw new UnsupportedOperationException( "Not implemented: createAzureClusterOperationCallable()"); } + @Deprecated public UnaryCallable createAzureClusterCallable() { throw new UnsupportedOperationException("Not implemented: createAzureClusterCallable()"); } + @Deprecated public OperationCallable updateAzureClusterOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateAzureClusterOperationCallable()"); } + @Deprecated public UnaryCallable updateAzureClusterCallable() { throw new UnsupportedOperationException("Not implemented: updateAzureClusterCallable()"); } + @Deprecated public UnaryCallable getAzureClusterCallable() { throw new UnsupportedOperationException("Not implemented: getAzureClusterCallable()"); } + @Deprecated public UnaryCallable listAzureClustersPagedCallable() { throw new UnsupportedOperationException("Not implemented: listAzureClustersPagedCallable()"); } + @Deprecated public UnaryCallable listAzureClustersCallable() { throw new UnsupportedOperationException("Not implemented: listAzureClustersCallable()"); } + @Deprecated public OperationCallable deleteAzureClusterOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteAzureClusterOperationCallable()"); } + @Deprecated public UnaryCallable deleteAzureClusterCallable() { throw new UnsupportedOperationException("Not implemented: deleteAzureClusterCallable()"); } + @Deprecated public UnaryCallable< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenCallable() { @@ -161,64 +181,77 @@ public UnaryCallable deleteAzureClusterCal "Not implemented: generateAzureClusterAgentTokenCallable()"); } + @Deprecated public UnaryCallable generateAzureAccessTokenCallable() { throw new UnsupportedOperationException("Not implemented: generateAzureAccessTokenCallable()"); } + @Deprecated public OperationCallable createAzureNodePoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: createAzureNodePoolOperationCallable()"); } + @Deprecated public UnaryCallable createAzureNodePoolCallable() { throw new UnsupportedOperationException("Not implemented: createAzureNodePoolCallable()"); } + @Deprecated public OperationCallable updateAzureNodePoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: updateAzureNodePoolOperationCallable()"); } + @Deprecated public UnaryCallable updateAzureNodePoolCallable() { throw new UnsupportedOperationException("Not implemented: updateAzureNodePoolCallable()"); } + @Deprecated public UnaryCallable getAzureNodePoolCallable() { throw new UnsupportedOperationException("Not implemented: getAzureNodePoolCallable()"); } + @Deprecated public UnaryCallable listAzureNodePoolsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listAzureNodePoolsPagedCallable()"); } + @Deprecated public UnaryCallable listAzureNodePoolsCallable() { throw new UnsupportedOperationException("Not implemented: listAzureNodePoolsCallable()"); } + @Deprecated public OperationCallable deleteAzureNodePoolOperationCallable() { throw new UnsupportedOperationException( "Not implemented: deleteAzureNodePoolOperationCallable()"); } + @Deprecated public UnaryCallable deleteAzureNodePoolCallable() { throw new UnsupportedOperationException("Not implemented: deleteAzureNodePoolCallable()"); } + @Deprecated public UnaryCallable getAzureOpenIdConfigCallable() { throw new UnsupportedOperationException("Not implemented: getAzureOpenIdConfigCallable()"); } + @Deprecated public UnaryCallable getAzureJsonWebKeysCallable() { throw new UnsupportedOperationException("Not implemented: getAzureJsonWebKeysCallable()"); } + @Deprecated public UnaryCallable getAzureServerConfigCallable() { throw new UnsupportedOperationException("Not implemented: getAzureServerConfigCallable()"); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java index 435a40fa69b9..dc75a3adba13 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/AzureClustersStubSettings.java @@ -167,7 +167,10 @@ * .setPollingAlgorithm(timedRetryAlgorithm) * .build(); * } + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class AzureClustersStubSettings extends StubSettings { /** The default scopes of the service. */ @@ -400,7 +403,12 @@ public ApiFuture getFuturePagedResponse( } }; - /** Returns the object with the settings used for calls to createAzureClient. */ + /** + * Returns the object with the settings used for calls to createAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAzureClientSettings() { return createAzureClientSettings; } @@ -411,19 +419,34 @@ public UnaryCallSettings createAzureClientS return createAzureClientOperationSettings; } - /** Returns the object with the settings used for calls to getAzureClient. */ + /** + * Returns the object with the settings used for calls to getAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureClientSettings() { return getAzureClientSettings; } - /** Returns the object with the settings used for calls to listAzureClients. */ + /** + * Returns the object with the settings used for calls to listAzureClients. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAzureClientsRequest, ListAzureClientsResponse, ListAzureClientsPagedResponse> listAzureClientsSettings() { return listAzureClientsSettings; } - /** Returns the object with the settings used for calls to deleteAzureClient. */ + /** + * Returns the object with the settings used for calls to deleteAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAzureClientSettings() { return deleteAzureClientSettings; } @@ -434,7 +457,12 @@ public UnaryCallSettings deleteAzureClientS return deleteAzureClientOperationSettings; } - /** Returns the object with the settings used for calls to createAzureCluster. */ + /** + * Returns the object with the settings used for calls to createAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAzureClusterSettings() { return createAzureClusterSettings; } @@ -445,7 +473,12 @@ public UnaryCallSettings createAzureCluste return createAzureClusterOperationSettings; } - /** Returns the object with the settings used for calls to updateAzureCluster. */ + /** + * Returns the object with the settings used for calls to updateAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateAzureClusterSettings() { return updateAzureClusterSettings; } @@ -456,19 +489,34 @@ public UnaryCallSettings updateAzureCluste return updateAzureClusterOperationSettings; } - /** Returns the object with the settings used for calls to getAzureCluster. */ + /** + * Returns the object with the settings used for calls to getAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureClusterSettings() { return getAzureClusterSettings; } - /** Returns the object with the settings used for calls to listAzureClusters. */ + /** + * Returns the object with the settings used for calls to listAzureClusters. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAzureClustersRequest, ListAzureClustersResponse, ListAzureClustersPagedResponse> listAzureClustersSettings() { return listAzureClustersSettings; } - /** Returns the object with the settings used for calls to deleteAzureCluster. */ + /** + * Returns the object with the settings used for calls to deleteAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAzureClusterSettings() { return deleteAzureClusterSettings; } @@ -479,20 +527,35 @@ public UnaryCallSettings deleteAzureCluste return deleteAzureClusterOperationSettings; } - /** Returns the object with the settings used for calls to generateAzureClusterAgentToken. */ + /** + * Returns the object with the settings used for calls to generateAzureClusterAgentToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenSettings() { return generateAzureClusterAgentTokenSettings; } - /** Returns the object with the settings used for calls to generateAzureAccessToken. */ + /** + * Returns the object with the settings used for calls to generateAzureAccessToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings generateAzureAccessTokenSettings() { return generateAzureAccessTokenSettings; } - /** Returns the object with the settings used for calls to createAzureNodePool. */ + /** + * Returns the object with the settings used for calls to createAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings createAzureNodePoolSettings() { return createAzureNodePoolSettings; } @@ -503,7 +566,12 @@ public UnaryCallSettings createAzureNodeP return createAzureNodePoolOperationSettings; } - /** Returns the object with the settings used for calls to updateAzureNodePool. */ + /** + * Returns the object with the settings used for calls to updateAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings updateAzureNodePoolSettings() { return updateAzureNodePoolSettings; } @@ -514,19 +582,34 @@ public UnaryCallSettings updateAzureNodeP return updateAzureNodePoolOperationSettings; } - /** Returns the object with the settings used for calls to getAzureNodePool. */ + /** + * Returns the object with the settings used for calls to getAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureNodePoolSettings() { return getAzureNodePoolSettings; } - /** Returns the object with the settings used for calls to listAzureNodePools. */ + /** + * Returns the object with the settings used for calls to listAzureNodePools. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings< ListAzureNodePoolsRequest, ListAzureNodePoolsResponse, ListAzureNodePoolsPagedResponse> listAzureNodePoolsSettings() { return listAzureNodePoolsSettings; } - /** Returns the object with the settings used for calls to deleteAzureNodePool. */ + /** + * Returns the object with the settings used for calls to deleteAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings deleteAzureNodePoolSettings() { return deleteAzureNodePoolSettings; } @@ -537,19 +620,34 @@ public UnaryCallSettings deleteAzureNodeP return deleteAzureNodePoolOperationSettings; } - /** Returns the object with the settings used for calls to getAzureOpenIdConfig. */ + /** + * Returns the object with the settings used for calls to getAzureOpenIdConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureOpenIdConfigSettings() { return getAzureOpenIdConfigSettings; } - /** Returns the object with the settings used for calls to getAzureJsonWebKeys. */ + /** + * Returns the object with the settings used for calls to getAzureJsonWebKeys. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureJsonWebKeysSettings() { return getAzureJsonWebKeysSettings; } - /** Returns the object with the settings used for calls to getAzureServerConfig. */ + /** + * Returns the object with the settings used for calls to getAzureServerConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings getAzureServerConfigSettings() { return getAzureServerConfigSettings; @@ -1264,7 +1362,12 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } - /** Returns the builder for the settings used for calls to createAzureClient. */ + /** + * Returns the builder for the settings used for calls to createAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAzureClientSettings() { return createAzureClientSettings; @@ -1276,19 +1379,34 @@ public Builder applyToAllUnaryMethods( return createAzureClientOperationSettings; } - /** Returns the builder for the settings used for calls to getAzureClient. */ + /** + * Returns the builder for the settings used for calls to getAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureClientSettings() { return getAzureClientSettings; } - /** Returns the builder for the settings used for calls to listAzureClients. */ + /** + * Returns the builder for the settings used for calls to listAzureClients. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAzureClientsRequest, ListAzureClientsResponse, ListAzureClientsPagedResponse> listAzureClientsSettings() { return listAzureClientsSettings; } - /** Returns the builder for the settings used for calls to deleteAzureClient. */ + /** + * Returns the builder for the settings used for calls to deleteAzureClient. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAzureClientSettings() { return deleteAzureClientSettings; @@ -1300,7 +1418,12 @@ public UnaryCallSettings.Builder getAzureCli return deleteAzureClientOperationSettings; } - /** Returns the builder for the settings used for calls to createAzureCluster. */ + /** + * Returns the builder for the settings used for calls to createAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAzureClusterSettings() { return createAzureClusterSettings; @@ -1312,7 +1435,12 @@ public UnaryCallSettings.Builder getAzureCli return createAzureClusterOperationSettings; } - /** Returns the builder for the settings used for calls to updateAzureCluster. */ + /** + * Returns the builder for the settings used for calls to updateAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateAzureClusterSettings() { return updateAzureClusterSettings; @@ -1324,20 +1452,35 @@ public UnaryCallSettings.Builder getAzureCli return updateAzureClusterOperationSettings; } - /** Returns the builder for the settings used for calls to getAzureCluster. */ + /** + * Returns the builder for the settings used for calls to getAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureClusterSettings() { return getAzureClusterSettings; } - /** Returns the builder for the settings used for calls to listAzureClusters. */ + /** + * Returns the builder for the settings used for calls to listAzureClusters. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAzureClustersRequest, ListAzureClustersResponse, ListAzureClustersPagedResponse> listAzureClustersSettings() { return listAzureClustersSettings; } - /** Returns the builder for the settings used for calls to deleteAzureCluster. */ + /** + * Returns the builder for the settings used for calls to deleteAzureCluster. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAzureClusterSettings() { return deleteAzureClusterSettings; @@ -1349,21 +1492,36 @@ public UnaryCallSettings.Builder getAzureCli return deleteAzureClusterOperationSettings; } - /** Returns the builder for the settings used for calls to generateAzureClusterAgentToken. */ + /** + * Returns the builder for the settings used for calls to generateAzureClusterAgentToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder< GenerateAzureClusterAgentTokenRequest, GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentTokenSettings() { return generateAzureClusterAgentTokenSettings; } - /** Returns the builder for the settings used for calls to generateAzureAccessToken. */ + /** + * Returns the builder for the settings used for calls to generateAzureAccessToken. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder< GenerateAzureAccessTokenRequest, GenerateAzureAccessTokenResponse> generateAzureAccessTokenSettings() { return generateAzureAccessTokenSettings; } - /** Returns the builder for the settings used for calls to createAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to createAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder createAzureNodePoolSettings() { return createAzureNodePoolSettings; @@ -1376,7 +1534,12 @@ public UnaryCallSettings.Builder getAzureCli return createAzureNodePoolOperationSettings; } - /** Returns the builder for the settings used for calls to updateAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to updateAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder updateAzureNodePoolSettings() { return updateAzureNodePoolSettings; @@ -1389,20 +1552,35 @@ public UnaryCallSettings.Builder getAzureCli return updateAzureNodePoolOperationSettings; } - /** Returns the builder for the settings used for calls to getAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to getAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureNodePoolSettings() { return getAzureNodePoolSettings; } - /** Returns the builder for the settings used for calls to listAzureNodePools. */ + /** + * Returns the builder for the settings used for calls to listAzureNodePools. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public PagedCallSettings.Builder< ListAzureNodePoolsRequest, ListAzureNodePoolsResponse, ListAzureNodePoolsPagedResponse> listAzureNodePoolsSettings() { return listAzureNodePoolsSettings; } - /** Returns the builder for the settings used for calls to deleteAzureNodePool. */ + /** + * Returns the builder for the settings used for calls to deleteAzureNodePool. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder deleteAzureNodePoolSettings() { return deleteAzureNodePoolSettings; @@ -1414,19 +1592,34 @@ public UnaryCallSettings.Builder getAzureCli return deleteAzureNodePoolOperationSettings; } - /** Returns the builder for the settings used for calls to getAzureOpenIdConfig. */ + /** + * Returns the builder for the settings used for calls to getAzureOpenIdConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureOpenIdConfigSettings() { return getAzureOpenIdConfigSettings; } - /** Returns the builder for the settings used for calls to getAzureJsonWebKeys. */ + /** + * Returns the builder for the settings used for calls to getAzureJsonWebKeys. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureJsonWebKeysSettings() { return getAzureJsonWebKeysSettings; } - /** Returns the builder for the settings used for calls to getAzureServerConfig. */ + /** + * Returns the builder for the settings used for calls to getAzureServerConfig. + * + * @deprecated This method is deprecated and will be removed in the next major version update. + */ + @Deprecated public UnaryCallSettings.Builder getAzureServerConfigSettings() { return getAzureServerConfigSettings; diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAwsClustersCallableFactory.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAwsClustersCallableFactory.java index ecd1a813ce9e..dafafc452c22 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAwsClustersCallableFactory.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAwsClustersCallableFactory.java @@ -40,7 +40,10 @@ * gRPC callable factory implementation for the AwsClusters service API. * *

This class is for advanced usage. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class GrpcAwsClustersCallableFactory implements GrpcStubCallableFactory { diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAwsClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAwsClustersStub.java index 133b61a983fb..44dbdc0f6bc4 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAwsClustersStub.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAwsClustersStub.java @@ -67,7 +67,10 @@ * gRPC stub implementation for the AwsClusters service API. * *

This class is for advanced usage and reflects the underlying API directly. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class GrpcAwsClustersStub extends AwsClustersStub { private static final MethodDescriptor diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAzureClustersCallableFactory.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAzureClustersCallableFactory.java index ada0ea990b0e..d248e92f4f04 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAzureClustersCallableFactory.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAzureClustersCallableFactory.java @@ -40,7 +40,10 @@ * gRPC callable factory implementation for the AzureClusters service API. * *

This class is for advanced usage. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class GrpcAzureClustersCallableFactory implements GrpcStubCallableFactory { diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAzureClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAzureClustersStub.java index 0dfe099a1aaf..7f202f65f5b7 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAzureClustersStub.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/GrpcAzureClustersStub.java @@ -73,7 +73,10 @@ * gRPC stub implementation for the AzureClusters service API. * *

This class is for advanced usage and reflects the underlying API directly. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class GrpcAzureClustersStub extends AzureClustersStub { private static final MethodDescriptor diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAwsClustersCallableFactory.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAwsClustersCallableFactory.java index 902d8fd213ab..9a631d8131f7 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAwsClustersCallableFactory.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAwsClustersCallableFactory.java @@ -38,7 +38,10 @@ * REST callable factory implementation for the AwsClusters service API. * *

This class is for advanced usage. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class HttpJsonAwsClustersCallableFactory implements HttpJsonStubCallableFactory { diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAwsClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAwsClustersStub.java index 9cf21ab1c895..188f29deaf5c 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAwsClustersStub.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAwsClustersStub.java @@ -78,7 +78,10 @@ * REST stub implementation for the AwsClusters service API. * *

This class is for advanced usage and reflects the underlying API directly. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class HttpJsonAwsClustersStub extends AwsClustersStub { private static final TypeRegistry typeRegistry = diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAzureClustersCallableFactory.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAzureClustersCallableFactory.java index 886ac72be79f..76d18297e7b0 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAzureClustersCallableFactory.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAzureClustersCallableFactory.java @@ -38,7 +38,10 @@ * REST callable factory implementation for the AzureClusters service API. * *

This class is for advanced usage. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class HttpJsonAzureClustersCallableFactory implements HttpJsonStubCallableFactory { diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAzureClustersStub.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAzureClustersStub.java index 10d740b62a96..f9daeff67bd2 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAzureClustersStub.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/HttpJsonAzureClustersStub.java @@ -84,7 +84,10 @@ * REST stub implementation for the AzureClusters service API. * *

This class is for advanced usage and reflects the underlying API directly. + * + * @deprecated This class is deprecated and will be removed in the next major version update. */ +@Deprecated @Generated("by gapic-generator-java") public class HttpJsonAzureClustersStub extends AzureClustersStub { private static final TypeRegistry typeRegistry = diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/resources/META-INF/native-image/com.google.cloud.gkemulticloud.v1/reflect-config.json b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/resources/META-INF/native-image/com.google.cloud.gkemulticloud.v1/reflect-config.json index 20f7ae907fae..b88e794145cd 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/resources/META-INF/native-image/com.google.cloud.gkemulticloud.v1/reflect-config.json +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/resources/META-INF/native-image/com.google.cloud.gkemulticloud.v1/reflect-config.json @@ -2285,6 +2285,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkemulticloud.v1.Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkemulticloud.v1.Label$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkemulticloud.v1.ListAttachedClustersRequest", "queryAllDeclaredConstructors": true, @@ -2762,6 +2780,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.gkemulticloud.v1.SystemComponentsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkemulticloud.v1.SystemComponentsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkemulticloud.v1.Toleration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkemulticloud.v1.Toleration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkemulticloud.v1.Toleration$Effect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.gkemulticloud.v1.Toleration$KeyOperator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.gkemulticloud.v1.UpdateAttachedClusterRequest", "queryAllDeclaredConstructors": true, diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientHttpJsonTest.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientHttpJsonTest.java index 4a6cb424ca86..e767d9438188 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientHttpJsonTest.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientHttpJsonTest.java @@ -111,6 +111,7 @@ public void createAttachedClusterTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -188,6 +189,7 @@ public void createAttachedClusterTest2() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -265,6 +267,7 @@ public void updateAttachedClusterTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -300,6 +303,7 @@ public void updateAttachedClusterTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -357,6 +361,7 @@ public void updateAttachedClusterExceptionTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateAttachedClusterAsync(attachedCluster, updateMask).get(); @@ -393,6 +398,7 @@ public void importAttachedClusterTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -468,6 +474,7 @@ public void importAttachedClusterTest2() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -543,6 +550,7 @@ public void getAttachedClusterTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -612,6 +620,7 @@ public void getAttachedClusterTest2() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientTest.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientTest.java index 5c11c55c6abf..8baf6c47eec7 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientTest.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/test/java/com/google/cloud/gkemulticloud/v1/AttachedClustersClientTest.java @@ -115,6 +115,7 @@ public void createAttachedClusterTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -192,6 +193,7 @@ public void createAttachedClusterTest2() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -269,6 +271,7 @@ public void updateAttachedClusterTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -343,6 +346,7 @@ public void importAttachedClusterTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -417,6 +421,7 @@ public void importAttachedClusterTest2() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -491,6 +496,7 @@ public void getAttachedClusterTest() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); mockAttachedClusters.addResponse(expectedResponse); @@ -554,6 +560,7 @@ public void getAttachedClusterTest2() throws Exception { .setBinaryAuthorization(BinaryAuthorization.newBuilder().build()) .setSecurityPostureConfig(SecurityPostureConfig.newBuilder().build()) .putAllTags(new HashMap()) + .setSystemComponentsConfig(SystemComponentsConfig.newBuilder().build()) .build(); mockAttachedClusters.addResponse(expectedResponse); diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java index f141411c2edb..99a232914558 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClustersGrpc.java @@ -26,6 +26,7 @@ * */ @io.grpc.stub.annotations.GrpcGenerated +@java.lang.Deprecated public final class AwsClustersGrpc { private AwsClustersGrpc() {} @@ -848,6 +849,7 @@ public AwsClustersFutureStub newStub( * to create and manage Anthos clusters that run on AWS infrastructure. * */ + @java.lang.Deprecated public interface AsyncService { /** @@ -861,6 +863,7 @@ public interface AsyncService { * described to track the status of the operation. * */ + @java.lang.Deprecated default void createAwsCluster( com.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -875,6 +878,7 @@ default void createAwsCluster( * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated default void updateAwsCluster( com.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -890,6 +894,7 @@ default void updateAwsCluster( * resource. * */ + @java.lang.Deprecated default void getAwsCluster( com.google.cloud.gkemulticloud.v1.GetAwsClusterRequest request, io.grpc.stub.StreamObserver @@ -906,6 +911,7 @@ default void getAwsCluster( * on a given Google Cloud project and region. * */ + @java.lang.Deprecated default void listAwsClusters( com.google.cloud.gkemulticloud.v1.ListAwsClustersRequest request, io.grpc.stub.StreamObserver @@ -927,6 +933,7 @@ default void listAwsClusters( * described to track the status of the operation. * */ + @java.lang.Deprecated default void deleteAwsCluster( com.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -941,6 +948,7 @@ default void deleteAwsCluster( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated default void generateAwsClusterAgentToken( com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest request, io.grpc.stub.StreamObserver< @@ -958,6 +966,7 @@ default void generateAwsClusterAgentToken( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. * */ + @java.lang.Deprecated default void generateAwsAccessToken( com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest request, io.grpc.stub.StreamObserver< @@ -978,6 +987,7 @@ default void generateAwsAccessToken( * described to track the status of the operation. * */ + @java.lang.Deprecated default void createAwsNodePool( com.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -992,6 +1002,7 @@ default void createAwsNodePool( * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * */ + @java.lang.Deprecated default void updateAwsNodePool( com.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1011,6 +1022,7 @@ default void updateAwsNodePool( * rollback. * */ + @java.lang.Deprecated default void rollbackAwsNodePoolUpdate( com.google.cloud.gkemulticloud.v1.RollbackAwsNodePoolUpdateRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1026,6 +1038,7 @@ default void rollbackAwsNodePoolUpdate( * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. * */ + @java.lang.Deprecated default void getAwsNodePool( com.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest request, io.grpc.stub.StreamObserver @@ -1043,6 +1056,7 @@ default void getAwsNodePool( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated default void listAwsNodePools( com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest request, io.grpc.stub.StreamObserver @@ -1062,6 +1076,7 @@ default void listAwsNodePools( * described to track the status of the operation. * */ + @java.lang.Deprecated default void deleteAwsNodePool( com.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1080,6 +1095,7 @@ default void deleteAwsNodePool( * for details. * */ + @java.lang.Deprecated default void getAwsOpenIdConfig( com.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest request, io.grpc.stub.StreamObserver @@ -1096,6 +1112,7 @@ default void getAwsOpenIdConfig( * JSON Web Key format. * */ + @java.lang.Deprecated default void getAwsJsonWebKeys( com.google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest request, io.grpc.stub.StreamObserver @@ -1112,6 +1129,7 @@ default void getAwsJsonWebKeys( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated default void getAwsServerConfig( com.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest request, io.grpc.stub.StreamObserver @@ -1129,6 +1147,7 @@ default void getAwsServerConfig( * to create and manage Anthos clusters that run on AWS infrastructure. * */ + @java.lang.Deprecated public abstract static class AwsClustersImplBase implements io.grpc.BindableService, AsyncService { @@ -1146,6 +1165,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * to create and manage Anthos clusters that run on AWS infrastructure. * */ + @java.lang.Deprecated public static final class AwsClustersStub extends io.grpc.stub.AbstractAsyncStub { private AwsClustersStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -1168,6 +1188,7 @@ protected AwsClustersStub build(io.grpc.Channel channel, io.grpc.CallOptions cal * described to track the status of the operation. * */ + @java.lang.Deprecated public void createAwsCluster( com.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1184,6 +1205,7 @@ public void createAwsCluster( * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated public void updateAwsCluster( com.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1201,6 +1223,7 @@ public void updateAwsCluster( * resource. * */ + @java.lang.Deprecated public void getAwsCluster( com.google.cloud.gkemulticloud.v1.GetAwsClusterRequest request, io.grpc.stub.StreamObserver @@ -1219,6 +1242,7 @@ public void getAwsCluster( * on a given Google Cloud project and region. * */ + @java.lang.Deprecated public void listAwsClusters( com.google.cloud.gkemulticloud.v1.ListAwsClustersRequest request, io.grpc.stub.StreamObserver @@ -1242,6 +1266,7 @@ public void listAwsClusters( * described to track the status of the operation. * */ + @java.lang.Deprecated public void deleteAwsCluster( com.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1258,6 +1283,7 @@ public void deleteAwsCluster( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated public void generateAwsClusterAgentToken( com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest request, io.grpc.stub.StreamObserver< @@ -1277,6 +1303,7 @@ public void generateAwsClusterAgentToken( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. * */ + @java.lang.Deprecated public void generateAwsAccessToken( com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest request, io.grpc.stub.StreamObserver< @@ -1299,6 +1326,7 @@ public void generateAwsAccessToken( * described to track the status of the operation. * */ + @java.lang.Deprecated public void createAwsNodePool( com.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1315,6 +1343,7 @@ public void createAwsNodePool( * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * */ + @java.lang.Deprecated public void updateAwsNodePool( com.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1336,6 +1365,7 @@ public void updateAwsNodePool( * rollback. * */ + @java.lang.Deprecated public void rollbackAwsNodePoolUpdate( com.google.cloud.gkemulticloud.v1.RollbackAwsNodePoolUpdateRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1353,6 +1383,7 @@ public void rollbackAwsNodePoolUpdate( * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. * */ + @java.lang.Deprecated public void getAwsNodePool( com.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest request, io.grpc.stub.StreamObserver @@ -1372,6 +1403,7 @@ public void getAwsNodePool( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated public void listAwsNodePools( com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest request, io.grpc.stub.StreamObserver @@ -1393,6 +1425,7 @@ public void listAwsNodePools( * described to track the status of the operation. * */ + @java.lang.Deprecated public void deleteAwsNodePool( com.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1413,6 +1446,7 @@ public void deleteAwsNodePool( * for details. * */ + @java.lang.Deprecated public void getAwsOpenIdConfig( com.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest request, io.grpc.stub.StreamObserver @@ -1431,6 +1465,7 @@ public void getAwsOpenIdConfig( * JSON Web Key format. * */ + @java.lang.Deprecated public void getAwsJsonWebKeys( com.google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest request, io.grpc.stub.StreamObserver @@ -1449,6 +1484,7 @@ public void getAwsJsonWebKeys( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated public void getAwsServerConfig( com.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest request, io.grpc.stub.StreamObserver @@ -1468,6 +1504,7 @@ public void getAwsServerConfig( * to create and manage Anthos clusters that run on AWS infrastructure. * */ + @java.lang.Deprecated public static final class AwsClustersBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub { private AwsClustersBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -1491,6 +1528,7 @@ protected AwsClustersBlockingV2Stub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAwsCluster( com.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest request) throws io.grpc.StatusException { @@ -1505,6 +1543,7 @@ public com.google.longrunning.Operation createAwsCluster( * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated public com.google.longrunning.Operation updateAwsCluster( com.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest request) throws io.grpc.StatusException { @@ -1520,6 +1559,7 @@ public com.google.longrunning.Operation updateAwsCluster( * resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster( com.google.cloud.gkemulticloud.v1.GetAwsClusterRequest request) throws io.grpc.StatusException { @@ -1535,6 +1575,7 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster( * on a given Google Cloud project and region. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse listAwsClusters( com.google.cloud.gkemulticloud.v1.ListAwsClustersRequest request) throws io.grpc.StatusException { @@ -1555,6 +1596,7 @@ public com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse listAwsClusters * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAwsCluster( com.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest request) throws io.grpc.StatusException { @@ -1569,6 +1611,7 @@ public com.google.longrunning.Operation deleteAwsCluster( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenResponse generateAwsClusterAgentToken( com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest request) @@ -1585,6 +1628,7 @@ public com.google.longrunning.Operation deleteAwsCluster( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse generateAwsAccessToken( com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest request) throws io.grpc.StatusException { @@ -1603,6 +1647,7 @@ public com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse generate * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAwsNodePool( com.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest request) throws io.grpc.StatusException { @@ -1617,6 +1662,7 @@ public com.google.longrunning.Operation createAwsNodePool( * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * */ + @java.lang.Deprecated public com.google.longrunning.Operation updateAwsNodePool( com.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest request) throws io.grpc.StatusException { @@ -1636,6 +1682,7 @@ public com.google.longrunning.Operation updateAwsNodePool( * rollback. * */ + @java.lang.Deprecated public com.google.longrunning.Operation rollbackAwsNodePoolUpdate( com.google.cloud.gkemulticloud.v1.RollbackAwsNodePoolUpdateRequest request) throws io.grpc.StatusException { @@ -1651,6 +1698,7 @@ public com.google.longrunning.Operation rollbackAwsNodePoolUpdate( * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool( com.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest request) throws io.grpc.StatusException { @@ -1667,6 +1715,7 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse listAwsNodePools( com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest request) throws io.grpc.StatusException { @@ -1685,6 +1734,7 @@ public com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse listAwsNodePoo * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAwsNodePool( com.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest request) throws io.grpc.StatusException { @@ -1703,6 +1753,7 @@ public com.google.longrunning.Operation deleteAwsNodePool( * for details. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsOpenIdConfig getAwsOpenIdConfig( com.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest request) throws io.grpc.StatusException { @@ -1718,6 +1769,7 @@ public com.google.cloud.gkemulticloud.v1.AwsOpenIdConfig getAwsOpenIdConfig( * JSON Web Key format. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsJsonWebKeys getAwsJsonWebKeys( com.google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest request) throws io.grpc.StatusException { @@ -1733,6 +1785,7 @@ public com.google.cloud.gkemulticloud.v1.AwsJsonWebKeys getAwsJsonWebKeys( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsServerConfig getAwsServerConfig( com.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest request) throws io.grpc.StatusException { @@ -1749,6 +1802,7 @@ public com.google.cloud.gkemulticloud.v1.AwsServerConfig getAwsServerConfig( * to create and manage Anthos clusters that run on AWS infrastructure. * */ + @java.lang.Deprecated public static final class AwsClustersBlockingStub extends io.grpc.stub.AbstractBlockingStub { private AwsClustersBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -1772,6 +1826,7 @@ protected AwsClustersBlockingStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAwsCluster( com.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1785,6 +1840,7 @@ public com.google.longrunning.Operation createAwsCluster( * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated public com.google.longrunning.Operation updateAwsCluster( com.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1799,6 +1855,7 @@ public com.google.longrunning.Operation updateAwsCluster( * resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster( com.google.cloud.gkemulticloud.v1.GetAwsClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1813,6 +1870,7 @@ public com.google.cloud.gkemulticloud.v1.AwsCluster getAwsCluster( * on a given Google Cloud project and region. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse listAwsClusters( com.google.cloud.gkemulticloud.v1.ListAwsClustersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1832,6 +1890,7 @@ public com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse listAwsClusters * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAwsCluster( com.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1845,6 +1904,7 @@ public com.google.longrunning.Operation deleteAwsCluster( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenResponse generateAwsClusterAgentToken( com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest request) { @@ -1860,6 +1920,7 @@ public com.google.longrunning.Operation deleteAwsCluster( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse generateAwsAccessToken( com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1877,6 +1938,7 @@ public com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse generate * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAwsNodePool( com.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1890,6 +1952,7 @@ public com.google.longrunning.Operation createAwsNodePool( * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * */ + @java.lang.Deprecated public com.google.longrunning.Operation updateAwsNodePool( com.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1908,6 +1971,7 @@ public com.google.longrunning.Operation updateAwsNodePool( * rollback. * */ + @java.lang.Deprecated public com.google.longrunning.Operation rollbackAwsNodePoolUpdate( com.google.cloud.gkemulticloud.v1.RollbackAwsNodePoolUpdateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1922,6 +1986,7 @@ public com.google.longrunning.Operation rollbackAwsNodePoolUpdate( * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool( com.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1937,6 +2002,7 @@ public com.google.cloud.gkemulticloud.v1.AwsNodePool getAwsNodePool( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse listAwsNodePools( com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1954,6 +2020,7 @@ public com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse listAwsNodePoo * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAwsNodePool( com.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1971,6 +2038,7 @@ public com.google.longrunning.Operation deleteAwsNodePool( * for details. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsOpenIdConfig getAwsOpenIdConfig( com.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1985,6 +2053,7 @@ public com.google.cloud.gkemulticloud.v1.AwsOpenIdConfig getAwsOpenIdConfig( * JSON Web Key format. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsJsonWebKeys getAwsJsonWebKeys( com.google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -1999,6 +2068,7 @@ public com.google.cloud.gkemulticloud.v1.AwsJsonWebKeys getAwsJsonWebKeys( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AwsServerConfig getAwsServerConfig( com.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2014,6 +2084,7 @@ public com.google.cloud.gkemulticloud.v1.AwsServerConfig getAwsServerConfig( * to create and manage Anthos clusters that run on AWS infrastructure. * */ + @java.lang.Deprecated public static final class AwsClustersFutureStub extends io.grpc.stub.AbstractFutureStub { private AwsClustersFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -2037,6 +2108,7 @@ protected AwsClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture createAwsCluster(com.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2050,6 +2122,7 @@ protected AwsClustersFutureStub build( * Updates an [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture updateAwsCluster(com.google.cloud.gkemulticloud.v1.UpdateAwsClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2064,6 +2137,7 @@ protected AwsClustersFutureStub build( * resource. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AwsCluster> getAwsCluster(com.google.cloud.gkemulticloud.v1.GetAwsClusterRequest request) { @@ -2079,6 +2153,7 @@ protected AwsClustersFutureStub build( * on a given Google Cloud project and region. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.ListAwsClustersResponse> listAwsClusters(com.google.cloud.gkemulticloud.v1.ListAwsClustersRequest request) { @@ -2099,6 +2174,7 @@ protected AwsClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture deleteAwsCluster(com.google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2112,6 +2188,7 @@ protected AwsClustersFutureStub build( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenResponse> generateAwsClusterAgentToken( @@ -2128,6 +2205,7 @@ protected AwsClustersFutureStub build( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster] resource. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse> generateAwsAccessToken( @@ -2147,6 +2225,7 @@ protected AwsClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture createAwsNodePool(com.google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2160,6 +2239,7 @@ protected AwsClustersFutureStub build( * Updates an [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool]. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture updateAwsNodePool(com.google.cloud.gkemulticloud.v1.UpdateAwsNodePoolRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2178,6 +2258,7 @@ protected AwsClustersFutureStub build( * rollback. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture rollbackAwsNodePoolUpdate( com.google.cloud.gkemulticloud.v1.RollbackAwsNodePoolUpdateRequest request) { @@ -2193,6 +2274,7 @@ protected AwsClustersFutureStub build( * [AwsNodePool][google.cloud.gkemulticloud.v1.AwsNodePool] resource. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AwsNodePool> getAwsNodePool(com.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest request) { @@ -2209,6 +2291,7 @@ protected AwsClustersFutureStub build( * [AwsCluster][google.cloud.gkemulticloud.v1.AwsCluster]. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsResponse> listAwsNodePools(com.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRequest request) { @@ -2227,6 +2310,7 @@ protected AwsClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture deleteAwsNodePool(com.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2244,6 +2328,7 @@ protected AwsClustersFutureStub build( * for details. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AwsOpenIdConfig> getAwsOpenIdConfig(com.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest request) { @@ -2259,6 +2344,7 @@ protected AwsClustersFutureStub build( * JSON Web Key format. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AwsJsonWebKeys> getAwsJsonWebKeys(com.google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest request) { @@ -2274,6 +2360,7 @@ protected AwsClustersFutureStub build( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AwsServerConfig> getAwsServerConfig(com.google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest request) { diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java index 1b9248ea424d..8316772f1bba 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClustersGrpc.java @@ -26,6 +26,7 @@ * */ @io.grpc.stub.annotations.GrpcGenerated +@java.lang.Deprecated public final class AzureClustersGrpc { private AzureClustersGrpc() {} @@ -999,6 +1000,7 @@ public AzureClustersFutureStub newStub( * to create and manage Anthos clusters that run on Azure infrastructure. * */ + @java.lang.Deprecated public interface AsyncService { /** @@ -1015,6 +1017,7 @@ public interface AsyncService { * described to track the status of the operation. * */ + @java.lang.Deprecated default void createAzureClient( com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1030,6 +1033,7 @@ default void createAzureClient( * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. * */ + @java.lang.Deprecated default void getAzureClient( com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request, io.grpc.stub.StreamObserver @@ -1046,6 +1050,7 @@ default void getAzureClient( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated default void listAzureClients( com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request, io.grpc.stub.StreamObserver @@ -1067,6 +1072,7 @@ default void listAzureClients( * described to track the status of the operation. * */ + @java.lang.Deprecated default void deleteAzureClient( com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1085,6 +1091,7 @@ default void deleteAzureClient( * described to track the status of the operation. * */ + @java.lang.Deprecated default void createAzureCluster( com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1099,6 +1106,7 @@ default void createAzureCluster( * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated default void updateAzureCluster( com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1114,6 +1122,7 @@ default void updateAzureCluster( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated default void getAzureCluster( com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request, io.grpc.stub.StreamObserver @@ -1130,6 +1139,7 @@ default void getAzureCluster( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated default void listAzureClusters( com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request, io.grpc.stub.StreamObserver @@ -1151,6 +1161,7 @@ default void listAzureClusters( * described to track the status of the operation. * */ + @java.lang.Deprecated default void deleteAzureCluster( com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1165,6 +1176,7 @@ default void deleteAzureCluster( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated default void generateAzureClusterAgentToken( com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenRequest request, io.grpc.stub.StreamObserver< @@ -1182,6 +1194,7 @@ default void generateAzureClusterAgentToken( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated default void generateAzureAccessToken( com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request, io.grpc.stub.StreamObserver< @@ -1203,6 +1216,7 @@ default void generateAzureAccessToken( * described to track the status of the operation. * */ + @java.lang.Deprecated default void createAzureNodePool( com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1217,6 +1231,7 @@ default void createAzureNodePool( * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * */ + @java.lang.Deprecated default void updateAzureNodePool( com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1232,6 +1247,7 @@ default void updateAzureNodePool( * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * */ + @java.lang.Deprecated default void getAzureNodePool( com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request, io.grpc.stub.StreamObserver @@ -1249,6 +1265,7 @@ default void getAzureNodePool( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated default void listAzureNodePools( com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request, io.grpc.stub.StreamObserver @@ -1268,6 +1285,7 @@ default void listAzureNodePools( * described to track the status of the operation. * */ + @java.lang.Deprecated default void deleteAzureNodePool( com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1286,6 +1304,7 @@ default void deleteAzureNodePool( * for details. * */ + @java.lang.Deprecated default void getAzureOpenIdConfig( com.google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest request, io.grpc.stub.StreamObserver @@ -1302,6 +1321,7 @@ default void getAzureOpenIdConfig( * JSON Web Key format. * */ + @java.lang.Deprecated default void getAzureJsonWebKeys( com.google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest request, io.grpc.stub.StreamObserver @@ -1318,6 +1338,7 @@ default void getAzureJsonWebKeys( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated default void getAzureServerConfig( com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request, io.grpc.stub.StreamObserver @@ -1335,6 +1356,7 @@ default void getAzureServerConfig( * to create and manage Anthos clusters that run on Azure infrastructure. * */ + @java.lang.Deprecated public abstract static class AzureClustersImplBase implements io.grpc.BindableService, AsyncService { @@ -1352,6 +1374,7 @@ public final io.grpc.ServerServiceDefinition bindService() { * to create and manage Anthos clusters that run on Azure infrastructure. * */ + @java.lang.Deprecated public static final class AzureClustersStub extends io.grpc.stub.AbstractAsyncStub { private AzureClustersStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -1377,6 +1400,7 @@ protected AzureClustersStub build(io.grpc.Channel channel, io.grpc.CallOptions c * described to track the status of the operation. * */ + @java.lang.Deprecated public void createAzureClient( com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1394,6 +1418,7 @@ public void createAzureClient( * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. * */ + @java.lang.Deprecated public void getAzureClient( com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request, io.grpc.stub.StreamObserver @@ -1412,6 +1437,7 @@ public void getAzureClient( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated public void listAzureClients( com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request, io.grpc.stub.StreamObserver @@ -1435,6 +1461,7 @@ public void listAzureClients( * described to track the status of the operation. * */ + @java.lang.Deprecated public void deleteAzureClient( com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1455,6 +1482,7 @@ public void deleteAzureClient( * described to track the status of the operation. * */ + @java.lang.Deprecated public void createAzureCluster( com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1471,6 +1499,7 @@ public void createAzureCluster( * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated public void updateAzureCluster( com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1488,6 +1517,7 @@ public void updateAzureCluster( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated public void getAzureCluster( com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request, io.grpc.stub.StreamObserver @@ -1506,6 +1536,7 @@ public void getAzureCluster( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated public void listAzureClusters( com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request, io.grpc.stub.StreamObserver @@ -1529,6 +1560,7 @@ public void listAzureClusters( * described to track the status of the operation. * */ + @java.lang.Deprecated public void deleteAzureCluster( com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1545,6 +1577,7 @@ public void deleteAzureCluster( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated public void generateAzureClusterAgentToken( com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenRequest request, io.grpc.stub.StreamObserver< @@ -1564,6 +1597,7 @@ public void generateAzureClusterAgentToken( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated public void generateAzureAccessToken( com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request, io.grpc.stub.StreamObserver< @@ -1587,6 +1621,7 @@ public void generateAzureAccessToken( * described to track the status of the operation. * */ + @java.lang.Deprecated public void createAzureNodePool( com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1603,6 +1638,7 @@ public void createAzureNodePool( * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * */ + @java.lang.Deprecated public void updateAzureNodePool( com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1620,6 +1656,7 @@ public void updateAzureNodePool( * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * */ + @java.lang.Deprecated public void getAzureNodePool( com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request, io.grpc.stub.StreamObserver @@ -1639,6 +1676,7 @@ public void getAzureNodePool( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated public void listAzureNodePools( com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request, io.grpc.stub.StreamObserver @@ -1660,6 +1698,7 @@ public void listAzureNodePools( * described to track the status of the operation. * */ + @java.lang.Deprecated public void deleteAzureNodePool( com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request, io.grpc.stub.StreamObserver responseObserver) { @@ -1680,6 +1719,7 @@ public void deleteAzureNodePool( * for details. * */ + @java.lang.Deprecated public void getAzureOpenIdConfig( com.google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest request, io.grpc.stub.StreamObserver @@ -1698,6 +1738,7 @@ public void getAzureOpenIdConfig( * JSON Web Key format. * */ + @java.lang.Deprecated public void getAzureJsonWebKeys( com.google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest request, io.grpc.stub.StreamObserver @@ -1716,6 +1757,7 @@ public void getAzureJsonWebKeys( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated public void getAzureServerConfig( com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request, io.grpc.stub.StreamObserver @@ -1735,6 +1777,7 @@ public void getAzureServerConfig( * to create and manage Anthos clusters that run on Azure infrastructure. * */ + @java.lang.Deprecated public static final class AzureClustersBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub { private AzureClustersBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -1761,6 +1804,7 @@ protected AzureClustersBlockingV2Stub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAzureClient( com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request) throws io.grpc.StatusException { @@ -1776,6 +1820,7 @@ public com.google.longrunning.Operation createAzureClient( * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient( com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request) throws io.grpc.StatusException { @@ -1791,6 +1836,7 @@ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse listAzureClients( com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request) throws io.grpc.StatusException { @@ -1811,6 +1857,7 @@ public com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse listAzureClien * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAzureClient( com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request) throws io.grpc.StatusException { @@ -1829,6 +1876,7 @@ public com.google.longrunning.Operation deleteAzureClient( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAzureCluster( com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request) throws io.grpc.StatusException { @@ -1843,6 +1891,7 @@ public com.google.longrunning.Operation createAzureCluster( * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated public com.google.longrunning.Operation updateAzureCluster( com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request) throws io.grpc.StatusException { @@ -1858,6 +1907,7 @@ public com.google.longrunning.Operation updateAzureCluster( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster( com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request) throws io.grpc.StatusException { @@ -1873,6 +1923,7 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse listAzureClusters( com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request) throws io.grpc.StatusException { @@ -1893,6 +1944,7 @@ public com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse listAzureClus * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAzureCluster( com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request) throws io.grpc.StatusException { @@ -1907,6 +1959,7 @@ public com.google.longrunning.Operation deleteAzureCluster( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenResponse generateAzureClusterAgentToken( com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenRequest request) @@ -1923,6 +1976,7 @@ public com.google.longrunning.Operation deleteAzureCluster( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse generateAzureAccessToken( com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request) @@ -1943,6 +1997,7 @@ public com.google.longrunning.Operation deleteAzureCluster( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAzureNodePool( com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request) throws io.grpc.StatusException { @@ -1957,6 +2012,7 @@ public com.google.longrunning.Operation createAzureNodePool( * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * */ + @java.lang.Deprecated public com.google.longrunning.Operation updateAzureNodePool( com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request) throws io.grpc.StatusException { @@ -1972,6 +2028,7 @@ public com.google.longrunning.Operation updateAzureNodePool( * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool( com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request) throws io.grpc.StatusException { @@ -1988,6 +2045,7 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNodePools( com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) throws io.grpc.StatusException { @@ -2006,6 +2064,7 @@ public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNod * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAzureNodePool( com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request) throws io.grpc.StatusException { @@ -2024,6 +2083,7 @@ public com.google.longrunning.Operation deleteAzureNodePool( * for details. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureOpenIdConfig getAzureOpenIdConfig( com.google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest request) throws io.grpc.StatusException { @@ -2039,6 +2099,7 @@ public com.google.cloud.gkemulticloud.v1.AzureOpenIdConfig getAzureOpenIdConfig( * JSON Web Key format. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureJsonWebKeys getAzureJsonWebKeys( com.google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest request) throws io.grpc.StatusException { @@ -2054,6 +2115,7 @@ public com.google.cloud.gkemulticloud.v1.AzureJsonWebKeys getAzureJsonWebKeys( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureServerConfig getAzureServerConfig( com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request) throws io.grpc.StatusException { @@ -2070,6 +2132,7 @@ public com.google.cloud.gkemulticloud.v1.AzureServerConfig getAzureServerConfig( * to create and manage Anthos clusters that run on Azure infrastructure. * */ + @java.lang.Deprecated public static final class AzureClustersBlockingStub extends io.grpc.stub.AbstractBlockingStub { private AzureClustersBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -2096,6 +2159,7 @@ protected AzureClustersBlockingStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAzureClient( com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2110,6 +2174,7 @@ public com.google.longrunning.Operation createAzureClient( * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient( com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2124,6 +2189,7 @@ public com.google.cloud.gkemulticloud.v1.AzureClient getAzureClient( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse listAzureClients( com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2143,6 +2209,7 @@ public com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse listAzureClien * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAzureClient( com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2160,6 +2227,7 @@ public com.google.longrunning.Operation deleteAzureClient( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAzureCluster( com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2173,6 +2241,7 @@ public com.google.longrunning.Operation createAzureCluster( * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated public com.google.longrunning.Operation updateAzureCluster( com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2187,6 +2256,7 @@ public com.google.longrunning.Operation updateAzureCluster( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster( com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2201,6 +2271,7 @@ public com.google.cloud.gkemulticloud.v1.AzureCluster getAzureCluster( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse listAzureClusters( com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2220,6 +2291,7 @@ public com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse listAzureClus * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAzureCluster( com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2233,6 +2305,7 @@ public com.google.longrunning.Operation deleteAzureCluster( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenResponse generateAzureClusterAgentToken( com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenRequest request) { @@ -2248,6 +2321,7 @@ public com.google.longrunning.Operation deleteAzureCluster( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse generateAzureAccessToken( com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest request) { @@ -2267,6 +2341,7 @@ public com.google.longrunning.Operation deleteAzureCluster( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation createAzureNodePool( com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2280,6 +2355,7 @@ public com.google.longrunning.Operation createAzureNodePool( * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * */ + @java.lang.Deprecated public com.google.longrunning.Operation updateAzureNodePool( com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2294,6 +2370,7 @@ public com.google.longrunning.Operation updateAzureNodePool( * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool( com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2309,6 +2386,7 @@ public com.google.cloud.gkemulticloud.v1.AzureNodePool getAzureNodePool( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNodePools( com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2326,6 +2404,7 @@ public com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse listAzureNod * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.longrunning.Operation deleteAzureNodePool( com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2343,6 +2422,7 @@ public com.google.longrunning.Operation deleteAzureNodePool( * for details. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureOpenIdConfig getAzureOpenIdConfig( com.google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2357,6 +2437,7 @@ public com.google.cloud.gkemulticloud.v1.AzureOpenIdConfig getAzureOpenIdConfig( * JSON Web Key format. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureJsonWebKeys getAzureJsonWebKeys( com.google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2371,6 +2452,7 @@ public com.google.cloud.gkemulticloud.v1.AzureJsonWebKeys getAzureJsonWebKeys( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated public com.google.cloud.gkemulticloud.v1.AzureServerConfig getAzureServerConfig( com.google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( @@ -2386,6 +2468,7 @@ public com.google.cloud.gkemulticloud.v1.AzureServerConfig getAzureServerConfig( * to create and manage Anthos clusters that run on Azure infrastructure. * */ + @java.lang.Deprecated public static final class AzureClustersFutureStub extends io.grpc.stub.AbstractFutureStub { private AzureClustersFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { @@ -2412,6 +2495,7 @@ protected AzureClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture createAzureClient(com.google.cloud.gkemulticloud.v1.CreateAzureClientRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2426,6 +2510,7 @@ protected AzureClustersFutureStub build( * [AzureClient][google.cloud.gkemulticloud.v1.AzureClient] resource. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AzureClient> getAzureClient(com.google.cloud.gkemulticloud.v1.GetAzureClientRequest request) { @@ -2441,6 +2526,7 @@ protected AzureClustersFutureStub build( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.ListAzureClientsResponse> listAzureClients(com.google.cloud.gkemulticloud.v1.ListAzureClientsRequest request) { @@ -2461,6 +2547,7 @@ protected AzureClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture deleteAzureClient(com.google.cloud.gkemulticloud.v1.DeleteAzureClientRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2478,6 +2565,7 @@ protected AzureClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture createAzureCluster(com.google.cloud.gkemulticloud.v1.CreateAzureClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2491,6 +2579,7 @@ protected AzureClustersFutureStub build( * Updates an [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture updateAzureCluster(com.google.cloud.gkemulticloud.v1.UpdateAzureClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2505,6 +2594,7 @@ protected AzureClustersFutureStub build( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AzureCluster> getAzureCluster(com.google.cloud.gkemulticloud.v1.GetAzureClusterRequest request) { @@ -2520,6 +2610,7 @@ protected AzureClustersFutureStub build( * resources on a given Google Cloud project and region. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.ListAzureClustersResponse> listAzureClusters(com.google.cloud.gkemulticloud.v1.ListAzureClustersRequest request) { @@ -2540,6 +2631,7 @@ protected AzureClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture deleteAzureCluster(com.google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2553,6 +2645,7 @@ protected AzureClustersFutureStub build( * Generates an access token for a cluster agent. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenResponse> generateAzureClusterAgentToken( @@ -2570,6 +2663,7 @@ protected AzureClustersFutureStub build( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster] resource. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse> generateAzureAccessToken( @@ -2590,6 +2684,7 @@ protected AzureClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture createAzureNodePool(com.google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2603,6 +2698,7 @@ protected AzureClustersFutureStub build( * Updates an [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool]. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture updateAzureNodePool(com.google.cloud.gkemulticloud.v1.UpdateAzureNodePoolRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2617,6 +2713,7 @@ protected AzureClustersFutureStub build( * [AzureNodePool][google.cloud.gkemulticloud.v1.AzureNodePool] resource. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AzureNodePool> getAzureNodePool(com.google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest request) { @@ -2633,6 +2730,7 @@ protected AzureClustersFutureStub build( * [AzureCluster][google.cloud.gkemulticloud.v1.AzureCluster]. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsResponse> listAzureNodePools(com.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest request) { @@ -2651,6 +2749,7 @@ protected AzureClustersFutureStub build( * described to track the status of the operation. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture deleteAzureNodePool(com.google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( @@ -2668,6 +2767,7 @@ protected AzureClustersFutureStub build( * for details. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AzureOpenIdConfig> getAzureOpenIdConfig( @@ -2684,6 +2784,7 @@ protected AzureClustersFutureStub build( * JSON Web Key format. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AzureJsonWebKeys> getAzureJsonWebKeys(com.google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest request) { @@ -2699,6 +2800,7 @@ protected AzureClustersFutureStub build( * versions, on a given Google Cloud location. * */ + @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.gkemulticloud.v1.AzureServerConfig> getAzureServerConfig( diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedCluster.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedCluster.java index 50d863437e25..a42f7855dcea 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedCluster.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedCluster.java @@ -1770,15 +1770,16 @@ public int getTagsCount() { * * *

-   * Optional. Input only. Tag keys/values directly bound to this resource.
+   * Optional. Input only. Tag keys and values directly bound to this resource.
    *
-   * Tag key must be specified in the format <tag namespace>/<tag key name>
+   * The tag key must be specified in the format
+   * `<tag namespace>/<tag key name>,`
    * where the tag namespace is the ID of the organization or name of the
-   * project that the tag key is defined in.
-   * The short name of a tag key or value can have a maximum length of 256
-   * characters. The permitted character set for the short name includes UTF-8
-   * encoded Unicode characters except single quotes ('), double quotes ("),
-   * backslashes (\), and forward slashes (/).
+   * project that the tag key is defined in. The short name of a tag key or
+   * value can have a maximum length of 256 characters. The permitted character
+   * set for the short name includes UTF-8 encoded Unicode characters except
+   * single quotation marks (`'`), double quotation marks (`"`), backslashes
+   * (`\`), and forward slashes (`/`).
    *
    * See
    * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -1808,15 +1809,16 @@ public java.util.Map getTags() {
    *
    *
    * 
-   * Optional. Input only. Tag keys/values directly bound to this resource.
+   * Optional. Input only. Tag keys and values directly bound to this resource.
    *
-   * Tag key must be specified in the format <tag namespace>/<tag key name>
+   * The tag key must be specified in the format
+   * `<tag namespace>/<tag key name>,`
    * where the tag namespace is the ID of the organization or name of the
-   * project that the tag key is defined in.
-   * The short name of a tag key or value can have a maximum length of 256
-   * characters. The permitted character set for the short name includes UTF-8
-   * encoded Unicode characters except single quotes ('), double quotes ("),
-   * backslashes (\), and forward slashes (/).
+   * project that the tag key is defined in. The short name of a tag key or
+   * value can have a maximum length of 256 characters. The permitted character
+   * set for the short name includes UTF-8 encoded Unicode characters except
+   * single quotation marks (`'`), double quotation marks (`"`), backslashes
+   * (`\`), and forward slashes (`/`).
    *
    * See
    * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -1836,15 +1838,16 @@ public java.util.Map getTagsMap() {
    *
    *
    * 
-   * Optional. Input only. Tag keys/values directly bound to this resource.
+   * Optional. Input only. Tag keys and values directly bound to this resource.
    *
-   * Tag key must be specified in the format <tag namespace>/<tag key name>
+   * The tag key must be specified in the format
+   * `<tag namespace>/<tag key name>,`
    * where the tag namespace is the ID of the organization or name of the
-   * project that the tag key is defined in.
-   * The short name of a tag key or value can have a maximum length of 256
-   * characters. The permitted character set for the short name includes UTF-8
-   * encoded Unicode characters except single quotes ('), double quotes ("),
-   * backslashes (\), and forward slashes (/).
+   * project that the tag key is defined in. The short name of a tag key or
+   * value can have a maximum length of 256 characters. The permitted character
+   * set for the short name includes UTF-8 encoded Unicode characters except
+   * single quotation marks (`'`), double quotation marks (`"`), backslashes
+   * (`\`), and forward slashes (`/`).
    *
    * See
    * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -1871,15 +1874,16 @@ public java.util.Map getTagsMap() {
    *
    *
    * 
-   * Optional. Input only. Tag keys/values directly bound to this resource.
+   * Optional. Input only. Tag keys and values directly bound to this resource.
    *
-   * Tag key must be specified in the format <tag namespace>/<tag key name>
+   * The tag key must be specified in the format
+   * `<tag namespace>/<tag key name>,`
    * where the tag namespace is the ID of the organization or name of the
-   * project that the tag key is defined in.
-   * The short name of a tag key or value can have a maximum length of 256
-   * characters. The permitted character set for the short name includes UTF-8
-   * encoded Unicode characters except single quotes ('), double quotes ("),
-   * backslashes (\), and forward slashes (/).
+   * project that the tag key is defined in. The short name of a tag key or
+   * value can have a maximum length of 256 characters. The permitted character
+   * set for the short name includes UTF-8 encoded Unicode characters except
+   * single quotation marks (`'`), double quotation marks (`"`), backslashes
+   * (`\`), and forward slashes (`/`).
    *
    * See
    * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -1902,6 +1906,69 @@ public java.lang.String getTagsOrThrow(java.lang.String key) {
     return map.get(key);
   }
 
+  public static final int SYSTEM_COMPONENTS_CONFIG_FIELD_NUMBER = 28;
+  private com.google.cloud.gkemulticloud.v1.SystemComponentsConfig systemComponentsConfig_;
+
+  /**
+   *
+   *
+   * 
+   * Optional. Kubernetes configurations for auto-installed components on the
+   * cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemComponentsConfig field is set. + */ + @java.lang.Override + public boolean hasSystemComponentsConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
+   * Optional. Kubernetes configurations for auto-installed components on the
+   * cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemComponentsConfig. + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.SystemComponentsConfig getSystemComponentsConfig() { + return systemComponentsConfig_ == null + ? com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.getDefaultInstance() + : systemComponentsConfig_; + } + + /** + * + * + *
+   * Optional. Kubernetes configurations for auto-installed components on the
+   * cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.SystemComponentsConfigOrBuilder + getSystemComponentsConfigOrBuilder() { + return systemComponentsConfig_ == null + ? com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.getDefaultInstance() + : systemComponentsConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1987,6 +2054,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetTags(), TagsDefaultEntryHolder.defaultEntry, 27); + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(28, getSystemComponentsConfig()); + } getUnknownFields().writeTo(output); } @@ -2086,6 +2156,10 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, tags__); } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(28, getSystemComponentsConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2159,6 +2233,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSecurityPostureConfig().equals(other.getSecurityPostureConfig())) return false; } if (!internalGetTags().equals(other.internalGetTags())) return false; + if (hasSystemComponentsConfig() != other.hasSystemComponentsConfig()) return false; + if (hasSystemComponentsConfig()) { + if (!getSystemComponentsConfig().equals(other.getSystemComponentsConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2246,6 +2324,10 @@ public int hashCode() { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + internalGetTags().hashCode(); } + if (hasSystemComponentsConfig()) { + hash = (37 * hash) + SYSTEM_COMPONENTS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSystemComponentsConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2425,6 +2507,7 @@ private void maybeForceBuilderInitialization() { getProxyConfigFieldBuilder(); getBinaryAuthorizationFieldBuilder(); getSecurityPostureConfigFieldBuilder(); + getSystemComponentsConfigFieldBuilder(); } } @@ -2506,6 +2589,11 @@ public Builder clear() { securityPostureConfigBuilder_ = null; } internalGetMutableTags().clear(); + systemComponentsConfig_ = null; + if (systemComponentsConfigBuilder_ != null) { + systemComponentsConfigBuilder_.dispose(); + systemComponentsConfigBuilder_ = null; + } return this; } @@ -2652,6 +2740,13 @@ private void buildPartial0(com.google.cloud.gkemulticloud.v1.AttachedCluster res result.tags_ = internalGetTags(); result.tags_.makeImmutable(); } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.systemComponentsConfig_ = + systemComponentsConfigBuilder_ == null + ? systemComponentsConfig_ + : systemComponentsConfigBuilder_.build(); + to_bitField0_ |= 0x00000800; + } result.bitField0_ |= to_bitField0_; } @@ -2811,6 +2906,9 @@ public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AttachedCluster other } internalGetMutableTags().mergeFrom(other.internalGetTags()); bitField0_ |= 0x00800000; + if (other.hasSystemComponentsConfig()) { + mergeSystemComponentsConfig(other.getSystemComponentsConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3002,6 +3100,13 @@ public Builder mergeFrom( bitField0_ |= 0x00800000; break; } // case 218 + case 226: + { + input.readMessage( + getSystemComponentsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 226 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7219,15 +7324,16 @@ public int getTagsCount() { * * *
-     * Optional. Input only. Tag keys/values directly bound to this resource.
+     * Optional. Input only. Tag keys and values directly bound to this resource.
      *
-     * Tag key must be specified in the format <tag namespace>/<tag key name>
+     * The tag key must be specified in the format
+     * `<tag namespace>/<tag key name>,`
      * where the tag namespace is the ID of the organization or name of the
-     * project that the tag key is defined in.
-     * The short name of a tag key or value can have a maximum length of 256
-     * characters. The permitted character set for the short name includes UTF-8
-     * encoded Unicode characters except single quotes ('), double quotes ("),
-     * backslashes (\), and forward slashes (/).
+     * project that the tag key is defined in. The short name of a tag key or
+     * value can have a maximum length of 256 characters. The permitted character
+     * set for the short name includes UTF-8 encoded Unicode characters except
+     * single quotation marks (`'`), double quotation marks (`"`), backslashes
+     * (`\`), and forward slashes (`/`).
      *
      * See
      * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -7257,15 +7363,16 @@ public java.util.Map getTags() {
      *
      *
      * 
-     * Optional. Input only. Tag keys/values directly bound to this resource.
+     * Optional. Input only. Tag keys and values directly bound to this resource.
      *
-     * Tag key must be specified in the format <tag namespace>/<tag key name>
+     * The tag key must be specified in the format
+     * `<tag namespace>/<tag key name>,`
      * where the tag namespace is the ID of the organization or name of the
-     * project that the tag key is defined in.
-     * The short name of a tag key or value can have a maximum length of 256
-     * characters. The permitted character set for the short name includes UTF-8
-     * encoded Unicode characters except single quotes ('), double quotes ("),
-     * backslashes (\), and forward slashes (/).
+     * project that the tag key is defined in. The short name of a tag key or
+     * value can have a maximum length of 256 characters. The permitted character
+     * set for the short name includes UTF-8 encoded Unicode characters except
+     * single quotation marks (`'`), double quotation marks (`"`), backslashes
+     * (`\`), and forward slashes (`/`).
      *
      * See
      * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -7285,15 +7392,16 @@ public java.util.Map getTagsMap() {
      *
      *
      * 
-     * Optional. Input only. Tag keys/values directly bound to this resource.
+     * Optional. Input only. Tag keys and values directly bound to this resource.
      *
-     * Tag key must be specified in the format <tag namespace>/<tag key name>
+     * The tag key must be specified in the format
+     * `<tag namespace>/<tag key name>,`
      * where the tag namespace is the ID of the organization or name of the
-     * project that the tag key is defined in.
-     * The short name of a tag key or value can have a maximum length of 256
-     * characters. The permitted character set for the short name includes UTF-8
-     * encoded Unicode characters except single quotes ('), double quotes ("),
-     * backslashes (\), and forward slashes (/).
+     * project that the tag key is defined in. The short name of a tag key or
+     * value can have a maximum length of 256 characters. The permitted character
+     * set for the short name includes UTF-8 encoded Unicode characters except
+     * single quotation marks (`'`), double quotation marks (`"`), backslashes
+     * (`\`), and forward slashes (`/`).
      *
      * See
      * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -7320,15 +7428,16 @@ public java.util.Map getTagsMap() {
      *
      *
      * 
-     * Optional. Input only. Tag keys/values directly bound to this resource.
+     * Optional. Input only. Tag keys and values directly bound to this resource.
      *
-     * Tag key must be specified in the format <tag namespace>/<tag key name>
+     * The tag key must be specified in the format
+     * `<tag namespace>/<tag key name>,`
      * where the tag namespace is the ID of the organization or name of the
-     * project that the tag key is defined in.
-     * The short name of a tag key or value can have a maximum length of 256
-     * characters. The permitted character set for the short name includes UTF-8
-     * encoded Unicode characters except single quotes ('), double quotes ("),
-     * backslashes (\), and forward slashes (/).
+     * project that the tag key is defined in. The short name of a tag key or
+     * value can have a maximum length of 256 characters. The permitted character
+     * set for the short name includes UTF-8 encoded Unicode characters except
+     * single quotation marks (`'`), double quotation marks (`"`), backslashes
+     * (`\`), and forward slashes (`/`).
      *
      * See
      * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -7361,15 +7470,16 @@ public Builder clearTags() {
      *
      *
      * 
-     * Optional. Input only. Tag keys/values directly bound to this resource.
+     * Optional. Input only. Tag keys and values directly bound to this resource.
      *
-     * Tag key must be specified in the format <tag namespace>/<tag key name>
+     * The tag key must be specified in the format
+     * `<tag namespace>/<tag key name>,`
      * where the tag namespace is the ID of the organization or name of the
-     * project that the tag key is defined in.
-     * The short name of a tag key or value can have a maximum length of 256
-     * characters. The permitted character set for the short name includes UTF-8
-     * encoded Unicode characters except single quotes ('), double quotes ("),
-     * backslashes (\), and forward slashes (/).
+     * project that the tag key is defined in. The short name of a tag key or
+     * value can have a maximum length of 256 characters. The permitted character
+     * set for the short name includes UTF-8 encoded Unicode characters except
+     * single quotation marks (`'`), double quotation marks (`"`), backslashes
+     * (`\`), and forward slashes (`/`).
      *
      * See
      * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -7399,15 +7509,16 @@ public java.util.Map getMutableTags() {
      *
      *
      * 
-     * Optional. Input only. Tag keys/values directly bound to this resource.
+     * Optional. Input only. Tag keys and values directly bound to this resource.
      *
-     * Tag key must be specified in the format <tag namespace>/<tag key name>
+     * The tag key must be specified in the format
+     * `<tag namespace>/<tag key name>,`
      * where the tag namespace is the ID of the organization or name of the
-     * project that the tag key is defined in.
-     * The short name of a tag key or value can have a maximum length of 256
-     * characters. The permitted character set for the short name includes UTF-8
-     * encoded Unicode characters except single quotes ('), double quotes ("),
-     * backslashes (\), and forward slashes (/).
+     * project that the tag key is defined in. The short name of a tag key or
+     * value can have a maximum length of 256 characters. The permitted character
+     * set for the short name includes UTF-8 encoded Unicode characters except
+     * single quotation marks (`'`), double quotation marks (`"`), backslashes
+     * (`\`), and forward slashes (`/`).
      *
      * See
      * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -7434,15 +7545,16 @@ public Builder putTags(java.lang.String key, java.lang.String value) {
      *
      *
      * 
-     * Optional. Input only. Tag keys/values directly bound to this resource.
+     * Optional. Input only. Tag keys and values directly bound to this resource.
      *
-     * Tag key must be specified in the format <tag namespace>/<tag key name>
+     * The tag key must be specified in the format
+     * `<tag namespace>/<tag key name>,`
      * where the tag namespace is the ID of the organization or name of the
-     * project that the tag key is defined in.
-     * The short name of a tag key or value can have a maximum length of 256
-     * characters. The permitted character set for the short name includes UTF-8
-     * encoded Unicode characters except single quotes ('), double quotes ("),
-     * backslashes (\), and forward slashes (/).
+     * project that the tag key is defined in. The short name of a tag key or
+     * value can have a maximum length of 256 characters. The permitted character
+     * set for the short name includes UTF-8 encoded Unicode characters except
+     * single quotation marks (`'`), double quotation marks (`"`), backslashes
+     * (`\`), and forward slashes (`/`).
      *
      * See
      * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -7459,6 +7571,233 @@ public Builder putAllTags(java.util.Map valu
       return this;
     }
 
+    private com.google.cloud.gkemulticloud.v1.SystemComponentsConfig systemComponentsConfig_;
+    private com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.gkemulticloud.v1.SystemComponentsConfig,
+            com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.Builder,
+            com.google.cloud.gkemulticloud.v1.SystemComponentsConfigOrBuilder>
+        systemComponentsConfigBuilder_;
+
+    /**
+     *
+     *
+     * 
+     * Optional. Kubernetes configurations for auto-installed components on the
+     * cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemComponentsConfig field is set. + */ + public boolean hasSystemComponentsConfig() { + return ((bitField0_ & 0x01000000) != 0); + } + + /** + * + * + *
+     * Optional. Kubernetes configurations for auto-installed components on the
+     * cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemComponentsConfig. + */ + public com.google.cloud.gkemulticloud.v1.SystemComponentsConfig getSystemComponentsConfig() { + if (systemComponentsConfigBuilder_ == null) { + return systemComponentsConfig_ == null + ? com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.getDefaultInstance() + : systemComponentsConfig_; + } else { + return systemComponentsConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Kubernetes configurations for auto-installed components on the
+     * cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSystemComponentsConfig( + com.google.cloud.gkemulticloud.v1.SystemComponentsConfig value) { + if (systemComponentsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemComponentsConfig_ = value; + } else { + systemComponentsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Kubernetes configurations for auto-installed components on the
+     * cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSystemComponentsConfig( + com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.Builder builderForValue) { + if (systemComponentsConfigBuilder_ == null) { + systemComponentsConfig_ = builderForValue.build(); + } else { + systemComponentsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x01000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Kubernetes configurations for auto-installed components on the
+     * cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSystemComponentsConfig( + com.google.cloud.gkemulticloud.v1.SystemComponentsConfig value) { + if (systemComponentsConfigBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) + && systemComponentsConfig_ != null + && systemComponentsConfig_ + != com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.getDefaultInstance()) { + getSystemComponentsConfigBuilder().mergeFrom(value); + } else { + systemComponentsConfig_ = value; + } + } else { + systemComponentsConfigBuilder_.mergeFrom(value); + } + if (systemComponentsConfig_ != null) { + bitField0_ |= 0x01000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Kubernetes configurations for auto-installed components on the
+     * cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSystemComponentsConfig() { + bitField0_ = (bitField0_ & ~0x01000000); + systemComponentsConfig_ = null; + if (systemComponentsConfigBuilder_ != null) { + systemComponentsConfigBuilder_.dispose(); + systemComponentsConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Kubernetes configurations for auto-installed components on the
+     * cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.Builder + getSystemComponentsConfigBuilder() { + bitField0_ |= 0x01000000; + onChanged(); + return getSystemComponentsConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Kubernetes configurations for auto-installed components on the
+     * cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.gkemulticloud.v1.SystemComponentsConfigOrBuilder + getSystemComponentsConfigOrBuilder() { + if (systemComponentsConfigBuilder_ != null) { + return systemComponentsConfigBuilder_.getMessageOrBuilder(); + } else { + return systemComponentsConfig_ == null + ? com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.getDefaultInstance() + : systemComponentsConfig_; + } + } + + /** + * + * + *
+     * Optional. Kubernetes configurations for auto-installed components on the
+     * cluster.
+     * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.SystemComponentsConfig, + com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.Builder, + com.google.cloud.gkemulticloud.v1.SystemComponentsConfigOrBuilder> + getSystemComponentsConfigFieldBuilder() { + if (systemComponentsConfigBuilder_ == null) { + systemComponentsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.gkemulticloud.v1.SystemComponentsConfig, + com.google.cloud.gkemulticloud.v1.SystemComponentsConfig.Builder, + com.google.cloud.gkemulticloud.v1.SystemComponentsConfigOrBuilder>( + getSystemComponentsConfig(), getParentForChildren(), isClean()); + systemComponentsConfig_ = null; + } + return systemComponentsConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterOrBuilder.java index 5324fe68e9b1..b39cc2636297 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedClusterOrBuilder.java @@ -960,15 +960,16 @@ java.lang.String getAnnotationsOrDefault( * * *
-   * Optional. Input only. Tag keys/values directly bound to this resource.
+   * Optional. Input only. Tag keys and values directly bound to this resource.
    *
-   * Tag key must be specified in the format <tag namespace>/<tag key name>
+   * The tag key must be specified in the format
+   * `<tag namespace>/<tag key name>,`
    * where the tag namespace is the ID of the organization or name of the
-   * project that the tag key is defined in.
-   * The short name of a tag key or value can have a maximum length of 256
-   * characters. The permitted character set for the short name includes UTF-8
-   * encoded Unicode characters except single quotes ('), double quotes ("),
-   * backslashes (\), and forward slashes (/).
+   * project that the tag key is defined in. The short name of a tag key or
+   * value can have a maximum length of 256 characters. The permitted character
+   * set for the short name includes UTF-8 encoded Unicode characters except
+   * single quotation marks (`'`), double quotation marks (`"`), backslashes
+   * (`\`), and forward slashes (`/`).
    *
    * See
    * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -985,15 +986,16 @@ java.lang.String getAnnotationsOrDefault(
    *
    *
    * 
-   * Optional. Input only. Tag keys/values directly bound to this resource.
+   * Optional. Input only. Tag keys and values directly bound to this resource.
    *
-   * Tag key must be specified in the format <tag namespace>/<tag key name>
+   * The tag key must be specified in the format
+   * `<tag namespace>/<tag key name>,`
    * where the tag namespace is the ID of the organization or name of the
-   * project that the tag key is defined in.
-   * The short name of a tag key or value can have a maximum length of 256
-   * characters. The permitted character set for the short name includes UTF-8
-   * encoded Unicode characters except single quotes ('), double quotes ("),
-   * backslashes (\), and forward slashes (/).
+   * project that the tag key is defined in. The short name of a tag key or
+   * value can have a maximum length of 256 characters. The permitted character
+   * set for the short name includes UTF-8 encoded Unicode characters except
+   * single quotation marks (`'`), double quotation marks (`"`), backslashes
+   * (`\`), and forward slashes (`/`).
    *
    * See
    * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -1014,15 +1016,16 @@ java.lang.String getAnnotationsOrDefault(
    *
    *
    * 
-   * Optional. Input only. Tag keys/values directly bound to this resource.
+   * Optional. Input only. Tag keys and values directly bound to this resource.
    *
-   * Tag key must be specified in the format <tag namespace>/<tag key name>
+   * The tag key must be specified in the format
+   * `<tag namespace>/<tag key name>,`
    * where the tag namespace is the ID of the organization or name of the
-   * project that the tag key is defined in.
-   * The short name of a tag key or value can have a maximum length of 256
-   * characters. The permitted character set for the short name includes UTF-8
-   * encoded Unicode characters except single quotes ('), double quotes ("),
-   * backslashes (\), and forward slashes (/).
+   * project that the tag key is defined in. The short name of a tag key or
+   * value can have a maximum length of 256 characters. The permitted character
+   * set for the short name includes UTF-8 encoded Unicode characters except
+   * single quotation marks (`'`), double quotation marks (`"`), backslashes
+   * (`\`), and forward slashes (`/`).
    *
    * See
    * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -1039,15 +1042,16 @@ java.lang.String getAnnotationsOrDefault(
    *
    *
    * 
-   * Optional. Input only. Tag keys/values directly bound to this resource.
+   * Optional. Input only. Tag keys and values directly bound to this resource.
    *
-   * Tag key must be specified in the format <tag namespace>/<tag key name>
+   * The tag key must be specified in the format
+   * `<tag namespace>/<tag key name>,`
    * where the tag namespace is the ID of the organization or name of the
-   * project that the tag key is defined in.
-   * The short name of a tag key or value can have a maximum length of 256
-   * characters. The permitted character set for the short name includes UTF-8
-   * encoded Unicode characters except single quotes ('), double quotes ("),
-   * backslashes (\), and forward slashes (/).
+   * project that the tag key is defined in. The short name of a tag key or
+   * value can have a maximum length of 256 characters. The permitted character
+   * set for the short name includes UTF-8 encoded Unicode characters except
+   * single quotation marks (`'`), double quotation marks (`"`), backslashes
+   * (`\`), and forward slashes (`/`).
    *
    * See
    * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -1068,15 +1072,16 @@ java.lang.String getTagsOrDefault(
    *
    *
    * 
-   * Optional. Input only. Tag keys/values directly bound to this resource.
+   * Optional. Input only. Tag keys and values directly bound to this resource.
    *
-   * Tag key must be specified in the format <tag namespace>/<tag key name>
+   * The tag key must be specified in the format
+   * `<tag namespace>/<tag key name>,`
    * where the tag namespace is the ID of the organization or name of the
-   * project that the tag key is defined in.
-   * The short name of a tag key or value can have a maximum length of 256
-   * characters. The permitted character set for the short name includes UTF-8
-   * encoded Unicode characters except single quotes ('), double quotes ("),
-   * backslashes (\), and forward slashes (/).
+   * project that the tag key is defined in. The short name of a tag key or
+   * value can have a maximum length of 256 characters. The permitted character
+   * set for the short name includes UTF-8 encoded Unicode characters except
+   * single quotation marks (`'`), double quotation marks (`"`), backslashes
+   * (`\`), and forward slashes (`/`).
    *
    * See
    * [Tags](https://cloud.google.com/resource-manager/docs/tags/tags-overview)
@@ -1088,4 +1093,51 @@ java.lang.String getTagsOrDefault(
    * 
    */
   java.lang.String getTagsOrThrow(java.lang.String key);
+
+  /**
+   *
+   *
+   * 
+   * Optional. Kubernetes configurations for auto-installed components on the
+   * cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the systemComponentsConfig field is set. + */ + boolean hasSystemComponentsConfig(); + + /** + * + * + *
+   * Optional. Kubernetes configurations for auto-installed components on the
+   * cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The systemComponentsConfig. + */ + com.google.cloud.gkemulticloud.v1.SystemComponentsConfig getSystemComponentsConfig(); + + /** + * + * + *
+   * Optional. Kubernetes configurations for auto-installed components on the
+   * cluster.
+   * 
+ * + * + * .google.cloud.gkemulticloud.v1.SystemComponentsConfig system_components_config = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.gkemulticloud.v1.SystemComponentsConfigOrBuilder + getSystemComponentsConfigOrBuilder(); } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfo.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfo.java index deee60ce040e..9859ab96719c 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfo.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfo.java @@ -64,6 +64,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.Builder.class); } + private int bitField0_; public static final int VERSION_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -117,6 +118,154 @@ public com.google.protobuf.ByteString getVersionBytes() { } } + public static final int ENABLED_FIELD_NUMBER = 3; + private boolean enabled_ = false; + + /** + * + * + *
+   * Optional. True if the version is available for attachedcluster creation. If
+   * a version is enabled, it can be used to attach new clusters.
+   * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + public static final int END_OF_LIFE_FIELD_NUMBER = 4; + private boolean endOfLife_ = false; + + /** + * + * + *
+   * Optional. True if this cluster version belongs to a minor version that has
+   * reached its end of life and is no longer in scope to receive security and
+   * bug fixes.
+   * 
+ * + * bool end_of_life = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endOfLife. + */ + @java.lang.Override + public boolean getEndOfLife() { + return endOfLife_; + } + + public static final int END_OF_LIFE_DATE_FIELD_NUMBER = 5; + private com.google.type.Date endOfLifeDate_; + + /** + * + * + *
+   * Optional. The estimated date (in Pacific Time) when this cluster version
+   * will reach its end of life. Or if this version is no longer supported (the
+   * `end_of_life` field is true), this is the actual date (in Pacific time)
+   * when the version reached its end of life.
+   * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endOfLifeDate field is set. + */ + @java.lang.Override + public boolean hasEndOfLifeDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The estimated date (in Pacific Time) when this cluster version
+   * will reach its end of life. Or if this version is no longer supported (the
+   * `end_of_life` field is true), this is the actual date (in Pacific time)
+   * when the version reached its end of life.
+   * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endOfLifeDate. + */ + @java.lang.Override + public com.google.type.Date getEndOfLifeDate() { + return endOfLifeDate_ == null ? com.google.type.Date.getDefaultInstance() : endOfLifeDate_; + } + + /** + * + * + *
+   * Optional. The estimated date (in Pacific Time) when this cluster version
+   * will reach its end of life. Or if this version is no longer supported (the
+   * `end_of_life` field is true), this is the actual date (in Pacific time)
+   * when the version reached its end of life.
+   * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEndOfLifeDateOrBuilder() { + return endOfLifeDate_ == null ? com.google.type.Date.getDefaultInstance() : endOfLifeDate_; + } + + public static final int RELEASE_DATE_FIELD_NUMBER = 6; + private com.google.type.Date releaseDate_; + + /** + * + * + *
+   * Optional. The date (in Pacific Time) when the cluster version was released.
+   * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the releaseDate field is set. + */ + @java.lang.Override + public boolean hasReleaseDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The date (in Pacific Time) when the cluster version was released.
+   * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The releaseDate. + */ + @java.lang.Override + public com.google.type.Date getReleaseDate() { + return releaseDate_ == null ? com.google.type.Date.getDefaultInstance() : releaseDate_; + } + + /** + * + * + *
+   * Optional. The date (in Pacific Time) when the cluster version was released.
+   * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getReleaseDateOrBuilder() { + return releaseDate_ == null ? com.google.type.Date.getDefaultInstance() : releaseDate_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -134,6 +283,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); } + if (enabled_ != false) { + output.writeBool(3, enabled_); + } + if (endOfLife_ != false) { + output.writeBool(4, endOfLife_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getEndOfLifeDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getReleaseDate()); + } getUnknownFields().writeTo(output); } @@ -146,6 +307,18 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enabled_); + } + if (endOfLife_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, endOfLife_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEndOfLifeDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getReleaseDate()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -163,6 +336,16 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo) obj; if (!getVersion().equals(other.getVersion())) return false; + if (getEnabled() != other.getEnabled()) return false; + if (getEndOfLife() != other.getEndOfLife()) return false; + if (hasEndOfLifeDate() != other.hasEndOfLifeDate()) return false; + if (hasEndOfLifeDate()) { + if (!getEndOfLifeDate().equals(other.getEndOfLifeDate())) return false; + } + if (hasReleaseDate() != other.hasReleaseDate()) return false; + if (hasReleaseDate()) { + if (!getReleaseDate().equals(other.getReleaseDate())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -176,6 +359,18 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + END_OF_LIFE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEndOfLife()); + if (hasEndOfLifeDate()) { + hash = (37 * hash) + END_OF_LIFE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndOfLifeDate().hashCode(); + } + if (hasReleaseDate()) { + hash = (37 * hash) + RELEASE_DATE_FIELD_NUMBER; + hash = (53 * hash) + getReleaseDate().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -307,10 +502,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.gkemulticloud.v1.AttachedPlatformVersionInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getEndOfLifeDateFieldBuilder(); + getReleaseDateFieldBuilder(); + } } @java.lang.Override @@ -318,6 +523,18 @@ public Builder clear() { super.clear(); bitField0_ = 0; version_ = ""; + enabled_ = false; + endOfLife_ = false; + endOfLifeDate_ = null; + if (endOfLifeDateBuilder_ != null) { + endOfLifeDateBuilder_.dispose(); + endOfLifeDateBuilder_ = null; + } + releaseDate_ = null; + if (releaseDateBuilder_ != null) { + releaseDateBuilder_.dispose(); + releaseDateBuilder_ = null; + } return this; } @@ -359,6 +576,24 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.version_ = version_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enabled_ = enabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endOfLife_ = endOfLife_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.endOfLifeDate_ = + endOfLifeDateBuilder_ == null ? endOfLifeDate_ : endOfLifeDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.releaseDate_ = + releaseDateBuilder_ == null ? releaseDate_ : releaseDateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -413,6 +648,18 @@ public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.AttachedPlatformVersi bitField0_ |= 0x00000001; onChanged(); } + if (other.getEnabled() != false) { + setEnabled(other.getEnabled()); + } + if (other.getEndOfLife() != false) { + setEndOfLife(other.getEndOfLife()); + } + if (other.hasEndOfLifeDate()) { + mergeEndOfLifeDate(other.getEndOfLifeDate()); + } + if (other.hasReleaseDate()) { + mergeReleaseDate(other.getReleaseDate()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -445,6 +692,30 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 24: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + endOfLife_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + input.readMessage(getEndOfLifeDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage(getReleaseDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -575,6 +846,531 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { return this; } + private boolean enabled_; + + /** + * + * + *
+     * Optional. True if the version is available for attachedcluster creation. If
+     * a version is enabled, it can be used to attach new clusters.
+     * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
+     * Optional. True if the version is available for attachedcluster creation. If
+     * a version is enabled, it can be used to attach new clusters.
+     * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. True if the version is available for attachedcluster creation. If
+     * a version is enabled, it can be used to attach new clusters.
+     * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + enabled_ = false; + onChanged(); + return this; + } + + private boolean endOfLife_; + + /** + * + * + *
+     * Optional. True if this cluster version belongs to a minor version that has
+     * reached its end of life and is no longer in scope to receive security and
+     * bug fixes.
+     * 
+ * + * bool end_of_life = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endOfLife. + */ + @java.lang.Override + public boolean getEndOfLife() { + return endOfLife_; + } + + /** + * + * + *
+     * Optional. True if this cluster version belongs to a minor version that has
+     * reached its end of life and is no longer in scope to receive security and
+     * bug fixes.
+     * 
+ * + * bool end_of_life = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The endOfLife to set. + * @return This builder for chaining. + */ + public Builder setEndOfLife(boolean value) { + + endOfLife_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. True if this cluster version belongs to a minor version that has
+     * reached its end of life and is no longer in scope to receive security and
+     * bug fixes.
+     * 
+ * + * bool end_of_life = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEndOfLife() { + bitField0_ = (bitField0_ & ~0x00000004); + endOfLife_ = false; + onChanged(); + return this; + } + + private com.google.type.Date endOfLifeDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endOfLifeDateBuilder_; + + /** + * + * + *
+     * Optional. The estimated date (in Pacific Time) when this cluster version
+     * will reach its end of life. Or if this version is no longer supported (the
+     * `end_of_life` field is true), this is the actual date (in Pacific time)
+     * when the version reached its end of life.
+     * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endOfLifeDate field is set. + */ + public boolean hasEndOfLifeDate() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. The estimated date (in Pacific Time) when this cluster version
+     * will reach its end of life. Or if this version is no longer supported (the
+     * `end_of_life` field is true), this is the actual date (in Pacific time)
+     * when the version reached its end of life.
+     * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endOfLifeDate. + */ + public com.google.type.Date getEndOfLifeDate() { + if (endOfLifeDateBuilder_ == null) { + return endOfLifeDate_ == null ? com.google.type.Date.getDefaultInstance() : endOfLifeDate_; + } else { + return endOfLifeDateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The estimated date (in Pacific Time) when this cluster version
+     * will reach its end of life. Or if this version is no longer supported (the
+     * `end_of_life` field is true), this is the actual date (in Pacific time)
+     * when the version reached its end of life.
+     * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndOfLifeDate(com.google.type.Date value) { + if (endOfLifeDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endOfLifeDate_ = value; + } else { + endOfLifeDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The estimated date (in Pacific Time) when this cluster version
+     * will reach its end of life. Or if this version is no longer supported (the
+     * `end_of_life` field is true), this is the actual date (in Pacific time)
+     * when the version reached its end of life.
+     * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndOfLifeDate(com.google.type.Date.Builder builderForValue) { + if (endOfLifeDateBuilder_ == null) { + endOfLifeDate_ = builderForValue.build(); + } else { + endOfLifeDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The estimated date (in Pacific Time) when this cluster version
+     * will reach its end of life. Or if this version is no longer supported (the
+     * `end_of_life` field is true), this is the actual date (in Pacific time)
+     * when the version reached its end of life.
+     * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndOfLifeDate(com.google.type.Date value) { + if (endOfLifeDateBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && endOfLifeDate_ != null + && endOfLifeDate_ != com.google.type.Date.getDefaultInstance()) { + getEndOfLifeDateBuilder().mergeFrom(value); + } else { + endOfLifeDate_ = value; + } + } else { + endOfLifeDateBuilder_.mergeFrom(value); + } + if (endOfLifeDate_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The estimated date (in Pacific Time) when this cluster version
+     * will reach its end of life. Or if this version is no longer supported (the
+     * `end_of_life` field is true), this is the actual date (in Pacific time)
+     * when the version reached its end of life.
+     * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndOfLifeDate() { + bitField0_ = (bitField0_ & ~0x00000008); + endOfLifeDate_ = null; + if (endOfLifeDateBuilder_ != null) { + endOfLifeDateBuilder_.dispose(); + endOfLifeDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The estimated date (in Pacific Time) when this cluster version
+     * will reach its end of life. Or if this version is no longer supported (the
+     * `end_of_life` field is true), this is the actual date (in Pacific time)
+     * when the version reached its end of life.
+     * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.Date.Builder getEndOfLifeDateBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getEndOfLifeDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The estimated date (in Pacific Time) when this cluster version
+     * will reach its end of life. Or if this version is no longer supported (the
+     * `end_of_life` field is true), this is the actual date (in Pacific time)
+     * when the version reached its end of life.
+     * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.DateOrBuilder getEndOfLifeDateOrBuilder() { + if (endOfLifeDateBuilder_ != null) { + return endOfLifeDateBuilder_.getMessageOrBuilder(); + } else { + return endOfLifeDate_ == null ? com.google.type.Date.getDefaultInstance() : endOfLifeDate_; + } + } + + /** + * + * + *
+     * Optional. The estimated date (in Pacific Time) when this cluster version
+     * will reach its end of life. Or if this version is no longer supported (the
+     * `end_of_life` field is true), this is the actual date (in Pacific time)
+     * when the version reached its end of life.
+     * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getEndOfLifeDateFieldBuilder() { + if (endOfLifeDateBuilder_ == null) { + endOfLifeDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndOfLifeDate(), getParentForChildren(), isClean()); + endOfLifeDate_ = null; + } + return endOfLifeDateBuilder_; + } + + private com.google.type.Date releaseDate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + releaseDateBuilder_; + + /** + * + * + *
+     * Optional. The date (in Pacific Time) when the cluster version was released.
+     * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the releaseDate field is set. + */ + public boolean hasReleaseDate() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. The date (in Pacific Time) when the cluster version was released.
+     * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The releaseDate. + */ + public com.google.type.Date getReleaseDate() { + if (releaseDateBuilder_ == null) { + return releaseDate_ == null ? com.google.type.Date.getDefaultInstance() : releaseDate_; + } else { + return releaseDateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The date (in Pacific Time) when the cluster version was released.
+     * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setReleaseDate(com.google.type.Date value) { + if (releaseDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + releaseDate_ = value; + } else { + releaseDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The date (in Pacific Time) when the cluster version was released.
+     * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setReleaseDate(com.google.type.Date.Builder builderForValue) { + if (releaseDateBuilder_ == null) { + releaseDate_ = builderForValue.build(); + } else { + releaseDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The date (in Pacific Time) when the cluster version was released.
+     * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeReleaseDate(com.google.type.Date value) { + if (releaseDateBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && releaseDate_ != null + && releaseDate_ != com.google.type.Date.getDefaultInstance()) { + getReleaseDateBuilder().mergeFrom(value); + } else { + releaseDate_ = value; + } + } else { + releaseDateBuilder_.mergeFrom(value); + } + if (releaseDate_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The date (in Pacific Time) when the cluster version was released.
+     * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearReleaseDate() { + bitField0_ = (bitField0_ & ~0x00000010); + releaseDate_ = null; + if (releaseDateBuilder_ != null) { + releaseDateBuilder_.dispose(); + releaseDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The date (in Pacific Time) when the cluster version was released.
+     * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.Date.Builder getReleaseDateBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getReleaseDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The date (in Pacific Time) when the cluster version was released.
+     * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.DateOrBuilder getReleaseDateOrBuilder() { + if (releaseDateBuilder_ != null) { + return releaseDateBuilder_.getMessageOrBuilder(); + } else { + return releaseDate_ == null ? com.google.type.Date.getDefaultInstance() : releaseDate_; + } + } + + /** + * + * + *
+     * Optional. The date (in Pacific Time) when the cluster version was released.
+     * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + getReleaseDateFieldBuilder() { + if (releaseDateBuilder_ == null) { + releaseDateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getReleaseDate(), getParentForChildren(), isClean()); + releaseDate_ = null; + } + return releaseDateBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfoOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfoOrBuilder.java index ba53b27de2db..b00a2d9e8192 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfoOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedPlatformVersionInfoOrBuilder.java @@ -49,4 +49,116 @@ public interface AttachedPlatformVersionInfoOrBuilder * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
+   * Optional. True if the version is available for attachedcluster creation. If
+   * a version is enabled, it can be used to attach new clusters.
+   * 
+ * + * bool enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); + + /** + * + * + *
+   * Optional. True if this cluster version belongs to a minor version that has
+   * reached its end of life and is no longer in scope to receive security and
+   * bug fixes.
+   * 
+ * + * bool end_of_life = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endOfLife. + */ + boolean getEndOfLife(); + + /** + * + * + *
+   * Optional. The estimated date (in Pacific Time) when this cluster version
+   * will reach its end of life. Or if this version is no longer supported (the
+   * `end_of_life` field is true), this is the actual date (in Pacific time)
+   * when the version reached its end of life.
+   * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endOfLifeDate field is set. + */ + boolean hasEndOfLifeDate(); + + /** + * + * + *
+   * Optional. The estimated date (in Pacific Time) when this cluster version
+   * will reach its end of life. Or if this version is no longer supported (the
+   * `end_of_life` field is true), this is the actual date (in Pacific time)
+   * when the version reached its end of life.
+   * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endOfLifeDate. + */ + com.google.type.Date getEndOfLifeDate(); + + /** + * + * + *
+   * Optional. The estimated date (in Pacific Time) when this cluster version
+   * will reach its end of life. Or if this version is no longer supported (the
+   * `end_of_life` field is true), this is the actual date (in Pacific time)
+   * when the version reached its end of life.
+   * 
+ * + * .google.type.Date end_of_life_date = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.DateOrBuilder getEndOfLifeDateOrBuilder(); + + /** + * + * + *
+   * Optional. The date (in Pacific Time) when the cluster version was released.
+   * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the releaseDate field is set. + */ + boolean hasReleaseDate(); + + /** + * + * + *
+   * Optional. The date (in Pacific Time) when the cluster version was released.
+   * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The releaseDate. + */ + com.google.type.Date getReleaseDate(); + + /** + * + * + *
+   * Optional. The date (in Pacific Time) when the cluster version was released.
+   * 
+ * + * .google.type.Date release_date = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.DateOrBuilder getReleaseDateOrBuilder(); } diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedResourcesProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedResourcesProto.java index a12aa6dba217..1aacac78a7e2 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedResourcesProto.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedResourcesProto.java @@ -76,6 +76,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_gkemulticloud_v1_KubernetesSecret_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_gkemulticloud_v1_KubernetesSecret_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_SystemComponentsConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_SystemComponentsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_Toleration_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_Toleration_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_gkemulticloud_v1_Label_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_gkemulticloud_v1_Label_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -89,18 +101,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "6google/cloud/gkemulticloud/v1/attached_resources.proto\022\035google.cloud.gkemultic" + "loud.v1\032\037google/api/field_behavior.proto" + "\032\031google/api/resource.proto\0324google/clou" - + "d/gkemulticloud/v1/common_resources.proto\032\037google/protobuf/timestamp.proto\"\313\r\n" + + "d/gkemulticloud/v1/common_resources.prot" + + "o\032\037google/protobuf/timestamp.proto\032\026google/type/date.proto\"\251\016\n" + "\017AttachedCluster\022\014\n" + "\004name\030\001 \001(\t\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022K\n" - + "\013oidc_config\030\003 \001(\01321.go" - + "ogle.cloud.gkemulticloud.v1.AttachedOidcConfigB\003\340A\002\022\035\n" + + "\013oidc_config\030\003" + + " \001(\01321.google.cloud.gkemulticloud.v1.AttachedOidcConfigB\003\340A\002\022\035\n" + "\020platform_version\030\004 \001(\tB\003\340A\002\022\031\n" + "\014distribution\030\020 \001(\tB\003\340A\002\022\033\n" + "\016cluster_region\030\026 \001(\tB\003\340A\003\0228\n" + "\005fleet\030\005 \001(\0132$.google.cloud.gkemulticloud.v1.FleetB\003\340A\002\022H\n" - + "\005state\030\006" - + " \001(\01624.google.cloud.gkemulticloud.v1.AttachedCluster.StateB\003\340A\003\022\020\n" + + "\005state\030\006 \001(\01624.go" + + "ogle.cloud.gkemulticloud.v1.AttachedCluster.StateB\003\340A\003\022\020\n" + "\003uid\030\007 \001(\tB\003\340A\003\022\030\n" + "\013reconciling\030\010 \001(\010B\003\340A\003\0224\n" + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -109,26 +122,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\013 \001(\t\022\037\n" + "\022kubernetes_version\030\014 \001(\tB\003\340A\003\022Y\n" + "\013annotations\030\r" - + " \003(\0132?.google.cloud.gkemulticloud." - + "v1.AttachedCluster.AnnotationsEntryB\003\340A\001\022\\\n" - + "\030workload_identity_config\030\016 \001(\01325.goo" - + "gle.cloud.gkemulticloud.v1.WorkloadIdentityConfigB\003\340A\003\022I\n" - + "\016logging_config\030\017 \001(\0132," - + ".google.cloud.gkemulticloud.v1.LoggingConfigB\003\340A\001\022H\n" - + "\006errors\030\024 \003(\01323.google.cloud" - + ".gkemulticloud.v1.AttachedClusterErrorB\003\340A\003\022X\n\r" - + "authorization\030\025 \001(\0132<.google.clou" - + "d.gkemulticloud.v1.AttachedClustersAuthorizationB\003\340A\001\022O\n" - + "\021monitoring_config\030\027 \001(\013" - + "2/.google.cloud.gkemulticloud.v1.MonitoringConfigB\003\340A\001\022M\n" - + "\014proxy_config\030\030 \001(\01322.g" - + "oogle.cloud.gkemulticloud.v1.AttachedProxyConfigB\003\340A\001\022U\n" - + "\024binary_authorization\030\031 " - + "\001(\01322.google.cloud.gkemulticloud.v1.BinaryAuthorizationB\003\340A\001\022Z\n" - + "\027security_posture_config\030\032" - + " \001(\01324.google.cloud.gkemulticloud.v1.SecurityPostureConfigB\003\340A\001\022N\n" - + "\004tags\030\033" - + " \003(\01328.google.cloud.gkemulticloud.v1.AttachedCluster.TagsEntryB\006\340A\001\340A\004\0322\n" + + " \003(\0132?.goo" + + "gle.cloud.gkemulticloud.v1.AttachedCluster.AnnotationsEntryB\003\340A\001\022\\\n" + + "\030workload_identity_config\030\016 \001(\01325.google.cloud.gkemul" + + "ticloud.v1.WorkloadIdentityConfigB\003\340A\003\022I\n" + + "\016logging_config\030\017" + + " \001(\0132,.google.cloud.gkemulticloud.v1.LoggingConfigB\003\340A\001\022H\n" + + "\006errors\030\024" + + " \003(\01323.google.cloud.gkemulticloud.v1.AttachedClusterErrorB\003\340A\003\022X\n\r" + + "authorization\030\025" + + " \001(\0132<.google.cloud.gkemulticloud.v1.AttachedClustersAuthorizationB\003\340A\001\022O\n" + + "\021monitoring_config\030\027 \001(\0132/.google.cloud." + + "gkemulticloud.v1.MonitoringConfigB\003\340A\001\022M\n" + + "\014proxy_config\030\030" + + " \001(\01322.google.cloud.gkemulticloud.v1.AttachedProxyConfigB\003\340A\001\022U\n" + + "\024binary_authorization\030\031 \001(\01322.google.clo" + + "ud.gkemulticloud.v1.BinaryAuthorizationB\003\340A\001\022Z\n" + + "\027security_posture_config\030\032 \001(\01324." + + "google.cloud.gkemulticloud.v1.SecurityPostureConfigB\003\340A\001\022N\n" + + "\004tags\030\033 \003(\01328.google." + + "cloud.gkemulticloud.v1.AttachedCluster.TagsEntryB\006\340A\001\340A\004\022\\\n" + + "\030system_components_config\030\034" + + " \001(\01325.google.cloud.gkemulticloud.v1.SystemComponentsConfigB\003\340A\001\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" @@ -143,13 +158,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010STOPPING\020\004\022\t\n" + "\005ERROR\020\005\022\014\n" + "\010DEGRADED\020\006:~\352A{\n" - + ",gkemulticloud.googleapis.com/AttachedCluster\022Kprojects/{project}/" - + "locations/{location}/attachedClusters/{attached_cluster}\"\275\001\n" + + ",gkemulticloud.googleapis.com/AttachedCluster\022Kprojects/{project}/lo" + + "cations/{location}/attachedClusters/{attached_cluster}\"\275\001\n" + "\035AttachedClustersAuthorization\022L\n" - + "\013admin_users\030\001 \003(\01322.google" - + ".cloud.gkemulticloud.v1.AttachedClusterUserB\003\340A\001\022N\n" - + "\014admin_groups\030\002 \003(\01323.google." - + "cloud.gkemulticloud.v1.AttachedClusterGroupB\003\340A\001\",\n" + + "\013admin_users\030\001 \003(\01322.google.c" + + "loud.gkemulticloud.v1.AttachedClusterUserB\003\340A\001\022N\n" + + "\014admin_groups\030\002 \003(\01323.google.cl" + + "oud.gkemulticloud.v1.AttachedClusterGroupB\003\340A\001\",\n" + "\023AttachedClusterUser\022\025\n" + "\010username\030\001 \001(\tB\003\340A\002\"*\n" + "\024AttachedClusterGroup\022\022\n" @@ -159,24 +174,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004jwks\030\002 \001(\014B\003\340A\001\"\356\001\n" + "\024AttachedServerConfig\022\014\n" + "\004name\030\001 \001(\t\022R\n" - + "\016valid_versions\030\002 \003(\0132:.google.cloud.gk" - + "emulticloud.v1.AttachedPlatformVersionInfo:t\352Aq\n" - + "1gkemulticloud.googleapis.com/AttachedServerConfig\022\n" + + "\013tolerations\030\001 \003(\0132).google.cloud.gkemulticloud.v1.Toleration\0224\n" + + "\006labels\030\002 \003(\0132$.google.cloud.gkemulticloud.v1.Label\"\205\003\n\n" + + "Toleration\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t\022K\n" + + "\014key_operator\030\003 \001(\01625.goo" + + "gle.cloud.gkemulticloud.v1.Toleration.KeyOperator\022@\n" + + "\006effect\030\004 \001(\01620.google.cloud.gkemulticloud.v1.Toleration.Effect\"\\\n" + + "\013KeyOperator\022\034\n" + + "\030KEY_OPERATOR_UNSPECIFIED\020\000\022\026\n" + + "\022KEY_OPERATOR_EQUAL\020\001\022\027\n" + + "\023KEY_OPERATOR_EXISTS\020\002\"n\n" + + "\006Effect\022\026\n" + + "\022EFFECT_UNSPECIFIED\020\000\022\026\n" + + "\022EFFECT_NO_SCHEDULE\020\001\022\035\n" + + "\031EFFECT_PREFER_NO_SCHEDULE\020\002\022\025\n" + + "\021EFFECT_NO_EXECUTE\020\003\"#\n" + + "\005Label\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\tB\351\001\n" + + "!com.google.cloud.gkemulticloud.v1B\026AttachedResourcesProtoP\001ZGcloud.google.com" + + "/go/gkemulticloud/apiv1/gkemulticloudpb;" + + "gkemulticloudpb\252\002\035Google.Cloud.GkeMultiC" + + "loud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + " Google::Cloud::GkeMultiCloud::V1b\006proto3" }; descriptor = @@ -187,6 +227,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.gkemulticloud.v1.CommonResourcesProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), }); internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_descriptor = getDescriptor().getMessageTypes().get(0); @@ -218,6 +259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BinaryAuthorization", "SecurityPostureConfig", "Tags", + "SystemComponentsConfig", }); internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_AnnotationsEntry_descriptor = internal_static_google_cloud_gkemulticloud_v1_AttachedCluster_descriptor @@ -285,7 +327,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_gkemulticloud_v1_AttachedPlatformVersionInfo_descriptor, new java.lang.String[] { - "Version", + "Version", "Enabled", "EndOfLife", "EndOfLifeDate", "ReleaseDate", }); internal_static_google_cloud_gkemulticloud_v1_AttachedClusterError_descriptor = getDescriptor().getMessageTypes().get(7); @@ -311,6 +353,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Namespace", }); + internal_static_google_cloud_gkemulticloud_v1_SystemComponentsConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_gkemulticloud_v1_SystemComponentsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_SystemComponentsConfig_descriptor, + new java.lang.String[] { + "Tolerations", "Labels", + }); + internal_static_google_cloud_gkemulticloud_v1_Toleration_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_gkemulticloud_v1_Toleration_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_Toleration_descriptor, + new java.lang.String[] { + "Key", "Value", "KeyOperator", "Effect", + }); + internal_static_google_cloud_gkemulticloud_v1_Label_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_gkemulticloud_v1_Label_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_gkemulticloud_v1_Label_descriptor, + new java.lang.String[] { + "Key", "Value", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -321,6 +387,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.gkemulticloud.v1.CommonResourcesProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServiceProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServiceProto.java index 12cd0d54ef02..487c9405a1af 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServiceProto.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AttachedServiceProto.java @@ -157,59 +157,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005scope\030\010 \001(\tB\003\340A\001\022!\n" + "\024requested_token_type\030\t \001(\tB\003\340A\001\022\024\n" + "\007options\030\n" - + " \001(\tB\003\340A\001\"i\n" - + ")GenerateAttachedClusterAgentTokenResponse\022\024\n" - + "\014access_token\030\001 \001(\t\022\022\n\n" - + "expires_in\030\002 \001(\005\022\022\n\n" - + "token_type\030\003 \001(\t2\335\022\n" + + " \001(\tB\003\340A\001\"\217\001\n" + + ")GenerateAttachedClusterAgentTokenResponse\022\"\n" + + "\014access_token\030\001 \001(\tR\014access_token\022\036\n\n" + + "expires_in\030\002 \001(\005R\n" + + "expires_in\022\036\n\n" + + "token_type\030\003 \001(\tR\n" + + "token_type2\335\022\n" + "\020AttachedClusters\022\231\002\n" - + "\025CreateAttachedCluster\022;.google.cloud.gkemulticlo" - + "ud.v1.CreateAttachedClusterRequest\032\035.google.longrunning.Operation\"\243\001\312A$\n" - + "\017AttachedCluster\022\021OperationMetadata\332A+parent,att" - + "ached_cluster,attached_cluster_id\202\323\344\223\002H\"" - + "4/v1/{parent=projects/*/locations/*}/attachedClusters:\020attached_cluster\022\233\002\n" - + "\025UpdateAttachedCluster\022;.google.cloud.gkemult" - + "icloud.v1.UpdateAttachedClusterRequest\032\035.google.longrunning.Operation\"\245\001\312A$\n" - + "\017AttachedCluster\022\021OperationMetadata\332A\034attach" - + "ed_cluster,update_mask\202\323\344\223\002Y2E/v1/{attac" - + "hed_cluster.name=projects/*/locations/*/" - + "attachedClusters/*}:\020attached_cluster\022\375\001\n" - + "\025ImportAttachedCluster\022;.google.cloud.gkemulticloud.v1.ImportAttachedClusterReq" - + "uest\032\035.google.longrunning.Operation\"\207\001\312A$\n" - + "\017AttachedCluster\022\021OperationMetadata\332A\027" - + "parent,fleet_membership\202\323\344\223\002@\";/v1/{pare" - + "nt=projects/*/locations/*}/attachedClusters:import:\001*\022\303\001\n" - + "\022GetAttachedCluster\0228.google.cloud.gkemulticloud.v1.GetAttached" - + "ClusterRequest\032..google.cloud.gkemulticl" - + "oud.v1.AttachedCluster\"C\332A\004name\202\323\344\223\0026\0224/" - + "v1/{name=projects/*/locations/*/attachedClusters/*}\022\326\001\n" - + "\024ListAttachedClusters\022:.google.cloud.gkemulticloud.v1.ListAttache" - + "dClustersRequest\032;.google.cloud.gkemulti" - + "cloud.v1.ListAttachedClustersResponse\"E\332" - + "A\006parent\202\323\344\223\0026\0224/v1/{parent=projects/*/locations/*}/attachedClusters\022\345\001\n" - + "\025DeleteAttachedCluster\022;.google.cloud.gkemulticl" - + "oud.v1.DeleteAttachedClusterRequest\032\035.google.longrunning.Operation\"p\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\0026*4/v1/{name=projects/*/locations/*/attachedClusters/*}\022\324\001\n" - + "\027GetAttachedServerConfig\022=.google.cloud.gkemulticloud.v1" - + ".GetAttachedServerConfigRequest\0323.google.cloud.gkemulticloud.v1.AttachedServerCo" - + "nfig\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/locations/*/attachedServerConfig}\022\266\002\n" - + "&GenerateAttachedClusterInstallManifest\022L.google.cloud.gkemulticloud.v1.GenerateA" - + "ttachedClusterInstallManifestRequest\032M.google.cloud.gkemulticloud.v1.GenerateAtt" - + "achedClusterInstallManifestResponse\"o\332A\032" - + "parent,attached_cluster_id\202\323\344\223\002L\022J/v1/{p" - + "arent=projects/*/locations/*}:generateAttachedClusterInstallManifest\022\245\002\n" - + "!GenerateAttachedClusterAgentToken\022G.google.clou" - + "d.gkemulticloud.v1.GenerateAttachedClusterAgentTokenRequest\032H.google.cloud.gkemu" - + "lticloud.v1.GenerateAttachedClusterAgent" - + "TokenResponse\"m\202\323\344\223\002g\"b/v1/{attached_clu" - + "ster=projects/*/locations/*/attachedClusters/*}:generateAttachedClusterAgentToke" - + "n:\001*\032P\312A\034gkemulticloud.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-platformB\347\001\n" - + "!com.google.cloud.gkemulticloud.v1B\024AttachedServiceProtoP\001ZGcloud.goog" - + "le.com/go/gkemulticloud/apiv1/gkemulticl" - + "oudpb;gkemulticloudpb\252\002\035Google.Cloud.Gke" - + "MultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + + "\025CreateAttachedCluster\022;.google.cloud.gkemulticlou" + + "d.v1.CreateAttachedClusterRequest\032\035.google.longrunning.Operation\"\243\001\312A$\n" + + "\017AttachedCluster\022\021OperationMetadata\332A+parent,atta" + + "ched_cluster,attached_cluster_id\202\323\344\223\002H\"4" + + "/v1/{parent=projects/*/locations/*}/attachedClusters:\020attached_cluster\022\233\002\n" + + "\025UpdateAttachedCluster\022;.google.cloud.gkemulti" + + "cloud.v1.UpdateAttachedClusterRequest\032\035.google.longrunning.Operation\"\245\001\312A$\n" + + "\017AttachedCluster\022\021OperationMetadata\332A\034attache" + + "d_cluster,update_mask\202\323\344\223\002Y2E/v1/{attach" + + "ed_cluster.name=projects/*/locations/*/attachedClusters/*}:\020attached_cluster\022\375\001\n" + + "\025ImportAttachedCluster\022;.google.cloud.gkemulticloud.v1.ImportAttachedClusterRequ" + + "est\032\035.google.longrunning.Operation\"\207\001\312A$\n" + + "\017AttachedCluster\022\021OperationMetadata\332A\027p" + + "arent,fleet_membership\202\323\344\223\002@\";/v1/{paren" + + "t=projects/*/locations/*}/attachedClusters:import:\001*\022\303\001\n" + + "\022GetAttachedCluster\0228.google.cloud.gkemulticloud.v1.GetAttachedC" + + "lusterRequest\032..google.cloud.gkemulticlo" + + "ud.v1.AttachedCluster\"C\332A\004name\202\323\344\223\0026\0224/v" + + "1/{name=projects/*/locations/*/attachedClusters/*}\022\326\001\n" + + "\024ListAttachedClusters\022:.google.cloud.gkemulticloud.v1.ListAttached" + + "ClustersRequest\032;.google.cloud.gkemultic" + + "loud.v1.ListAttachedClustersResponse\"E\332A" + + "\006parent\202\323\344\223\0026\0224/v1/{parent=projects/*/locations/*}/attachedClusters\022\345\001\n" + + "\025DeleteAttachedCluster\022;.google.cloud.gkemulticlo" + + "ud.v1.DeleteAttachedClusterRequest\032\035.google.longrunning.Operation\"p\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202" + + "\323\344\223\0026*4/v1/{name=projects/*/locations/*/attachedClusters/*}\022\324\001\n" + + "\027GetAttachedServerConfig\022=.google.cloud.gkemulticloud.v1." + + "GetAttachedServerConfigRequest\0323.google.cloud.gkemulticloud.v1.AttachedServerCon" + + "fig\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/locations/*/attachedServerConfig}\022\266\002\n" + + "&GenerateAttachedClusterInstallManifest\022L.google.cloud.gkemulticloud.v1.GenerateAt" + + "tachedClusterInstallManifestRequest\032M.google.cloud.gkemulticloud.v1.GenerateAtta" + + "chedClusterInstallManifestResponse\"o\332A\032p" + + "arent,attached_cluster_id\202\323\344\223\002L\022J/v1/{pa" + + "rent=projects/*/locations/*}:generateAttachedClusterInstallManifest\022\245\002\n" + + "!GenerateAttachedClusterAgentToken\022G.google.cloud" + + ".gkemulticloud.v1.GenerateAttachedClusterAgentTokenRequest\032H.google.cloud.gkemul" + + "ticloud.v1.GenerateAttachedClusterAgentT" + + "okenResponse\"m\202\323\344\223\002g\"b/v1/{attached_clus" + + "ter=projects/*/locations/*/attachedClusters/*}:generateAttachedClusterAgentToken" + + ":\001*\032P\312A\034gkemulticloud.googleapis.com\322A.h" + + "ttps://www.googleapis.com/auth/cloud-platformB\347\001\n" + + "!com.google.cloud.gkemulticloud.v1B\024AttachedServiceProtoP\001ZGcloud.googl" + + "e.com/go/gkemulticloud/apiv1/gkemulticlo" + + "udpb;gkemulticloudpb\252\002\035Google.Cloud.GkeM" + + "ultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + " Google::Cloud::GkeMultiCloud::V1b\006proto3" }; descriptor = diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAuthorization.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAuthorization.java index 95db0bf3f4d7..b0a478eeb11f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAuthorization.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAuthorization.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsAuthorization} */ +@java.lang.Deprecated public final class AwsAuthorization extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsAuthorization) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAuthorizationOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAuthorizationOrBuilder.java index 8f9c755ac840..6572374548da 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAuthorizationOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAuthorizationOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsAuthorizationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsAuthorization) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollection.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollection.java index 7fd41edf1205..8572e3825b44 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollection.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollection.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection} */ +@java.lang.Deprecated public final class AwsAutoscalingGroupMetricsCollection extends com.google.protobuf.GeneratedMessageV3 implements diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollectionOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollectionOrBuilder.java index a2a30b228dec..88f222c1fe4d 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollectionOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsAutoscalingGroupMetricsCollectionOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsAutoscalingGroupMetricsCollectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsAutoscalingGroupMetricsCollection) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsCluster.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsCluster.java index 874566e5130c..2405ff101807 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsCluster.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsCluster.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsCluster} */ +@java.lang.Deprecated public final class AwsCluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsCluster) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterError.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterError.java index 8dec3acfe3ab..1b307cd3de22 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterError.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterError.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsClusterError} */ +@java.lang.Deprecated public final class AwsClusterError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsClusterError) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterErrorOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterErrorOrBuilder.java index 459828c93393..6d07323cb2cb 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterErrorOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterErrorOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsClusterErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsClusterError) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterGroup.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterGroup.java index 42a95f80a862..6d952c063bf9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterGroup.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterGroup.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsClusterGroup} */ +@java.lang.Deprecated public final class AwsClusterGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsClusterGroup) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterGroupOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterGroupOrBuilder.java index ca697bf84ed1..b181d7c9524e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterGroupOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterGroupOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsClusterGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsClusterGroup) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworking.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworking.java index 4c043f448ada..e237f94e998f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworking.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworking.java @@ -31,6 +31,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsClusterNetworking} */ +@java.lang.Deprecated public final class AwsClusterNetworking extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsClusterNetworking) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworkingOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworkingOrBuilder.java index 3ca34cd12ef4..d9f58c21c713 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworkingOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterNetworkingOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsClusterNetworkingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsClusterNetworking) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterOrBuilder.java index d5bc9606648a..ebc4de480bca 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsCluster) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterUser.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterUser.java index a2727ab4e33c..b87245073bd4 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterUser.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterUser.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsClusterUser} */ +@java.lang.Deprecated public final class AwsClusterUser extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsClusterUser) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterUserOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterUserOrBuilder.java index 32508f912f50..cd720ccf0b96 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterUserOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsClusterUserOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsClusterUserOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsClusterUser) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsConfigEncryption.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsConfigEncryption.java index ecb2f98c74c4..c16e7c644295 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsConfigEncryption.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsConfigEncryption.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsConfigEncryption} */ +@java.lang.Deprecated public final class AwsConfigEncryption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsConfigEncryption) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsConfigEncryptionOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsConfigEncryptionOrBuilder.java index 06d8897d97dd..e7bf3040cf30 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsConfigEncryptionOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsConfigEncryptionOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsConfigEncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsConfigEncryption) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlane.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlane.java index c341cd68eac3..2936ac6e5e39 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlane.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlane.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsControlPlane} */ +@java.lang.Deprecated public final class AwsControlPlane extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsControlPlane) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlaneOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlaneOrBuilder.java index 9f9e2f448c16..ea0f32b14f98 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlaneOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsControlPlaneOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsControlPlaneOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsControlPlane) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsDatabaseEncryption.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsDatabaseEncryption.java index 6f3fe708d34a..ab8b241ebb46 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsDatabaseEncryption.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsDatabaseEncryption.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsDatabaseEncryption} */ +@java.lang.Deprecated public final class AwsDatabaseEncryption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsDatabaseEncryption) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsDatabaseEncryptionOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsDatabaseEncryptionOrBuilder.java index ae202741d694..8397598eefb9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsDatabaseEncryptionOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsDatabaseEncryptionOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsDatabaseEncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsDatabaseEncryption) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsInstancePlacement.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsInstancePlacement.java index bc442c489230..a94165861f01 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsInstancePlacement.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsInstancePlacement.java @@ -32,6 +32,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsInstancePlacement} */ +@java.lang.Deprecated public final class AwsInstancePlacement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsInstancePlacement) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsInstancePlacementOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsInstancePlacementOrBuilder.java index cfb595124082..41afb4ca33ce 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsInstancePlacementOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsInstancePlacementOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsInstancePlacementOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsInstancePlacement) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsJsonWebKeys.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsJsonWebKeys.java index 16e2296c5f5e..0e3bfce8bbf3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsJsonWebKeys.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsJsonWebKeys.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsJsonWebKeys} */ +@java.lang.Deprecated public final class AwsJsonWebKeys extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsJsonWebKeys) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsJsonWebKeysOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsJsonWebKeysOrBuilder.java index a9595d114f9e..d8a18b0ea874 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsJsonWebKeysOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsJsonWebKeysOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsJsonWebKeysOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsJsonWebKeys) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsK8sVersionInfo.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsK8sVersionInfo.java index 23bbffc4aa41..0648343e55a9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsK8sVersionInfo.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsK8sVersionInfo.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsK8sVersionInfo} */ +@java.lang.Deprecated public final class AwsK8sVersionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsK8sVersionInfo) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsK8sVersionInfoOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsK8sVersionInfoOrBuilder.java index c7cffb4c5f6f..1ee4ac9b4f1a 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsK8sVersionInfoOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsK8sVersionInfoOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsK8sVersionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsK8sVersionInfo) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfig.java index 5b6aec2b8167..a4be8b378e4a 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfig.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodeConfig} */ +@java.lang.Deprecated public final class AwsNodeConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsNodeConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfigOrBuilder.java index 0cb804d04767..6cdc5096278f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsNodeConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsNodeConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeManagement.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeManagement.java index ff141eee3c2f..9667c062d775 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeManagement.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeManagement.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodeManagement} */ +@java.lang.Deprecated public final class AwsNodeManagement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsNodeManagement) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeManagementOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeManagementOrBuilder.java index 919dc4d38ffc..b7a9849619b6 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeManagementOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodeManagementOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsNodeManagementOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsNodeManagement) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePool.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePool.java index 5a3bca071183..49e3252f5284 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePool.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePool.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodePool} */ +@java.lang.Deprecated public final class AwsNodePool extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsNodePool) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscaling.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscaling.java index 6856ffb5fbfd..8b2e2a059b7a 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscaling.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscaling.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling} */ +@java.lang.Deprecated public final class AwsNodePoolAutoscaling extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscalingOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscalingOrBuilder.java index 99e0d8d60519..bbaef8750907 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscalingOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolAutoscalingOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsNodePoolAutoscalingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsNodePoolAutoscaling) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolError.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolError.java index 828b76a34fd1..9a1a7add72a4 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolError.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolError.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsNodePoolError} */ +@java.lang.Deprecated public final class AwsNodePoolError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsNodePoolError) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolErrorOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolErrorOrBuilder.java index 3011c6b178dc..7d3a9daaf318 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolErrorOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolErrorOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsNodePoolErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsNodePoolError) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolOrBuilder.java index 37516fcc2ebd..58bf666265f1 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsNodePoolOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsNodePoolOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsNodePool) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsOpenIdConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsOpenIdConfig.java index 8e42c0219de7..83ac223fbb08 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsOpenIdConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsOpenIdConfig.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsOpenIdConfig} */ +@java.lang.Deprecated public final class AwsOpenIdConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsOpenIdConfig) @@ -136,7 +137,7 @@ public com.google.protobuf.ByteString getIssuerBytes() { * JSON Web Key uri. *
* - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The jwksUri. */ @@ -160,7 +161,7 @@ public java.lang.String getJwksUri() { * JSON Web Key uri. *
* - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The bytes for jwksUri. */ @@ -190,7 +191,8 @@ public com.google.protobuf.ByteString getJwksUriBytes() { * Supported response types. *
* - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return A list containing the responseTypesSupported. */ @@ -205,7 +207,8 @@ public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { * Supported response types. *
* - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return The count of responseTypesSupported. */ @@ -220,7 +223,8 @@ public int getResponseTypesSupportedCount() { * Supported response types. *
* - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the element to return. * @return The responseTypesSupported at the given index. @@ -236,7 +240,8 @@ public java.lang.String getResponseTypesSupported(int index) { * Supported response types. *
* - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the responseTypesSupported at the given index. @@ -258,7 +263,8 @@ public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) * Supported subject types. *
* - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return A list containing the subjectTypesSupported. */ @@ -273,7 +279,8 @@ public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { * Supported subject types. *
* - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return The count of subjectTypesSupported. */ @@ -288,7 +295,8 @@ public int getSubjectTypesSupportedCount() { * Supported subject types. *
* - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the element to return. * @return The subjectTypesSupported at the given index. @@ -304,7 +312,8 @@ public java.lang.String getSubjectTypesSupported(int index) { * Supported subject types. *
* - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the subjectTypesSupported at the given index. @@ -326,7 +335,9 @@ public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { * supported ID Token signing Algorithms. *
* - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return A list containing the idTokenSigningAlgValuesSupported. */ @@ -341,7 +352,9 @@ public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupporte * supported ID Token signing Algorithms. *
* - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return The count of idTokenSigningAlgValuesSupported. */ @@ -356,7 +369,9 @@ public int getIdTokenSigningAlgValuesSupportedCount() { * supported ID Token signing Algorithms. *
* - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the element to return. * @return The idTokenSigningAlgValuesSupported at the given index. @@ -372,7 +387,9 @@ public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { * supported ID Token signing Algorithms. *
* - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. @@ -394,7 +411,7 @@ public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(i * Supported claims. *
* - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return A list containing the claimsSupported. */ @@ -409,7 +426,7 @@ public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { * Supported claims. *
* - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return The count of claimsSupported. */ @@ -424,7 +441,7 @@ public int getClaimsSupportedCount() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the element to return. * @return The claimsSupported at the given index. @@ -440,7 +457,7 @@ public java.lang.String getClaimsSupported(int index) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the value to return. * @return The bytes of the claimsSupported at the given index. @@ -462,7 +479,7 @@ public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return A list containing the grantTypes. */ @@ -477,7 +494,7 @@ public com.google.protobuf.ProtocolStringList getGrantTypesList() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return The count of grantTypes. */ @@ -492,7 +509,7 @@ public int getGrantTypesCount() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the element to return. * @return The grantTypes at the given index. @@ -508,7 +525,7 @@ public java.lang.String getGrantTypes(int index) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the value to return. * @return The bytes of the grantTypes at the given index. @@ -1200,7 +1217,7 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The jwksUri. */ @@ -1223,7 +1240,7 @@ public java.lang.String getJwksUri() { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The bytes for jwksUri. */ @@ -1246,7 +1263,7 @@ public com.google.protobuf.ByteString getJwksUriBytes() { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @param value The jwksUri to set. * @return This builder for chaining. @@ -1268,7 +1285,7 @@ public Builder setJwksUri(java.lang.String value) { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return This builder for chaining. */ @@ -1286,7 +1303,7 @@ public Builder clearJwksUri() { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @param value The bytes for jwksUri to set. * @return This builder for chaining. @@ -1320,7 +1337,8 @@ private void ensureResponseTypesSupportedIsMutable() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return A list containing the responseTypesSupported. */ @@ -1336,7 +1354,8 @@ public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return The count of responseTypesSupported. */ @@ -1351,7 +1370,8 @@ public int getResponseTypesSupportedCount() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the element to return. * @return The responseTypesSupported at the given index. @@ -1367,7 +1387,8 @@ public java.lang.String getResponseTypesSupported(int index) { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the responseTypesSupported at the given index. @@ -1383,7 +1404,8 @@ public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index to set the value at. * @param value The responseTypesSupported to set. @@ -1407,7 +1429,8 @@ public Builder setResponseTypesSupported(int index, java.lang.String value) { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param value The responseTypesSupported to add. * @return This builder for chaining. @@ -1430,7 +1453,8 @@ public Builder addResponseTypesSupported(java.lang.String value) { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param values The responseTypesSupported to add. * @return This builder for chaining. @@ -1450,7 +1474,8 @@ public Builder addAllResponseTypesSupported(java.lang.Iterable * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return This builder for chaining. */ @@ -1469,7 +1494,8 @@ public Builder clearResponseTypesSupported() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param value The bytes of the responseTypesSupported to add. * @return This builder for chaining. @@ -1504,7 +1530,8 @@ private void ensureSubjectTypesSupportedIsMutable() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return A list containing the subjectTypesSupported. */ @@ -1520,7 +1547,8 @@ public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return The count of subjectTypesSupported. */ @@ -1535,7 +1563,8 @@ public int getSubjectTypesSupportedCount() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the element to return. * @return The subjectTypesSupported at the given index. @@ -1551,7 +1580,8 @@ public java.lang.String getSubjectTypesSupported(int index) { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the subjectTypesSupported at the given index. @@ -1567,7 +1597,8 @@ public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index to set the value at. * @param value The subjectTypesSupported to set. @@ -1591,7 +1622,8 @@ public Builder setSubjectTypesSupported(int index, java.lang.String value) { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param value The subjectTypesSupported to add. * @return This builder for chaining. @@ -1614,7 +1646,8 @@ public Builder addSubjectTypesSupported(java.lang.String value) { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param values The subjectTypesSupported to add. * @return This builder for chaining. @@ -1634,7 +1667,8 @@ public Builder addAllSubjectTypesSupported(java.lang.Iterable * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return This builder for chaining. */ @@ -1653,7 +1687,8 @@ public Builder clearSubjectTypesSupported() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param value The bytes of the subjectTypesSupported to add. * @return This builder for chaining. @@ -1688,7 +1723,9 @@ private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return A list containing the idTokenSigningAlgValuesSupported. */ @@ -1704,7 +1741,9 @@ public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupporte * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return The count of idTokenSigningAlgValuesSupported. */ @@ -1719,7 +1758,9 @@ public int getIdTokenSigningAlgValuesSupportedCount() { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the element to return. * @return The idTokenSigningAlgValuesSupported at the given index. @@ -1735,7 +1776,9 @@ public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. @@ -1751,7 +1794,9 @@ public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(i * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index to set the value at. * @param value The idTokenSigningAlgValuesSupported to set. @@ -1775,7 +1820,9 @@ public Builder setIdTokenSigningAlgValuesSupported(int index, java.lang.String v * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param value The idTokenSigningAlgValuesSupported to add. * @return This builder for chaining. @@ -1798,7 +1845,9 @@ public Builder addIdTokenSigningAlgValuesSupported(java.lang.String value) { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param values The idTokenSigningAlgValuesSupported to add. * @return This builder for chaining. @@ -1820,7 +1869,9 @@ public Builder addAllIdTokenSigningAlgValuesSupported( * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return This builder for chaining. */ @@ -1839,7 +1890,9 @@ public Builder clearIdTokenSigningAlgValuesSupported() { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param value The bytes of the idTokenSigningAlgValuesSupported to add. * @return This builder for chaining. @@ -1873,7 +1926,7 @@ private void ensureClaimsSupportedIsMutable() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return A list containing the claimsSupported. */ @@ -1889,7 +1942,7 @@ public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return The count of claimsSupported. */ @@ -1904,7 +1957,7 @@ public int getClaimsSupportedCount() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the element to return. * @return The claimsSupported at the given index. @@ -1920,7 +1973,7 @@ public java.lang.String getClaimsSupported(int index) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the value to return. * @return The bytes of the claimsSupported at the given index. @@ -1936,7 +1989,7 @@ public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index to set the value at. * @param value The claimsSupported to set. @@ -1960,7 +2013,7 @@ public Builder setClaimsSupported(int index, java.lang.String value) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param value The claimsSupported to add. * @return This builder for chaining. @@ -1983,7 +2036,7 @@ public Builder addClaimsSupported(java.lang.String value) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param values The claimsSupported to add. * @return This builder for chaining. @@ -2003,7 +2056,7 @@ public Builder addAllClaimsSupported(java.lang.Iterable values * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return This builder for chaining. */ @@ -2022,7 +2075,7 @@ public Builder clearClaimsSupported() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param value The bytes of the claimsSupported to add. * @return This builder for chaining. @@ -2056,7 +2109,7 @@ private void ensureGrantTypesIsMutable() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return A list containing the grantTypes. */ @@ -2072,7 +2125,7 @@ public com.google.protobuf.ProtocolStringList getGrantTypesList() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return The count of grantTypes. */ @@ -2087,7 +2140,7 @@ public int getGrantTypesCount() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the element to return. * @return The grantTypes at the given index. @@ -2103,7 +2156,7 @@ public java.lang.String getGrantTypes(int index) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the value to return. * @return The bytes of the grantTypes at the given index. @@ -2119,7 +2172,7 @@ public com.google.protobuf.ByteString getGrantTypesBytes(int index) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index to set the value at. * @param value The grantTypes to set. @@ -2143,7 +2196,7 @@ public Builder setGrantTypes(int index, java.lang.String value) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param value The grantTypes to add. * @return This builder for chaining. @@ -2166,7 +2219,7 @@ public Builder addGrantTypes(java.lang.String value) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param values The grantTypes to add. * @return This builder for chaining. @@ -2186,7 +2239,7 @@ public Builder addAllGrantTypes(java.lang.Iterable values) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return This builder for chaining. */ @@ -2205,7 +2258,7 @@ public Builder clearGrantTypes() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param value The bytes of the grantTypes to add. * @return This builder for chaining. diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsOpenIdConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsOpenIdConfigOrBuilder.java index bb9a54a69bdf..26a7c0464958 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsOpenIdConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsOpenIdConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsOpenIdConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsOpenIdConfig) @@ -57,7 +58,7 @@ public interface AwsOpenIdConfigOrBuilder * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The jwksUri. */ @@ -70,7 +71,7 @@ public interface AwsOpenIdConfigOrBuilder * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The bytes for jwksUri. */ @@ -83,7 +84,8 @@ public interface AwsOpenIdConfigOrBuilder * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return A list containing the responseTypesSupported. */ @@ -96,7 +98,8 @@ public interface AwsOpenIdConfigOrBuilder * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return The count of responseTypesSupported. */ @@ -109,7 +112,8 @@ public interface AwsOpenIdConfigOrBuilder * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the element to return. * @return The responseTypesSupported at the given index. @@ -123,7 +127,8 @@ public interface AwsOpenIdConfigOrBuilder * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the responseTypesSupported at the given index. @@ -137,7 +142,8 @@ public interface AwsOpenIdConfigOrBuilder * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return A list containing the subjectTypesSupported. */ @@ -150,7 +156,8 @@ public interface AwsOpenIdConfigOrBuilder * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return The count of subjectTypesSupported. */ @@ -163,7 +170,8 @@ public interface AwsOpenIdConfigOrBuilder * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the element to return. * @return The subjectTypesSupported at the given index. @@ -177,7 +185,8 @@ public interface AwsOpenIdConfigOrBuilder * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the subjectTypesSupported at the given index. @@ -191,7 +200,9 @@ public interface AwsOpenIdConfigOrBuilder * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return A list containing the idTokenSigningAlgValuesSupported. */ @@ -204,7 +215,9 @@ public interface AwsOpenIdConfigOrBuilder * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return The count of idTokenSigningAlgValuesSupported. */ @@ -217,7 +230,9 @@ public interface AwsOpenIdConfigOrBuilder * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the element to return. * @return The idTokenSigningAlgValuesSupported at the given index. @@ -231,7 +246,9 @@ public interface AwsOpenIdConfigOrBuilder * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. @@ -245,7 +262,7 @@ public interface AwsOpenIdConfigOrBuilder * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return A list containing the claimsSupported. */ @@ -258,7 +275,7 @@ public interface AwsOpenIdConfigOrBuilder * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return The count of claimsSupported. */ @@ -271,7 +288,7 @@ public interface AwsOpenIdConfigOrBuilder * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the element to return. * @return The claimsSupported at the given index. @@ -285,7 +302,7 @@ public interface AwsOpenIdConfigOrBuilder * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the value to return. * @return The bytes of the claimsSupported at the given index. @@ -299,7 +316,7 @@ public interface AwsOpenIdConfigOrBuilder * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return A list containing the grantTypes. */ @@ -312,7 +329,7 @@ public interface AwsOpenIdConfigOrBuilder * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return The count of grantTypes. */ @@ -325,7 +342,7 @@ public interface AwsOpenIdConfigOrBuilder * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the element to return. * @return The grantTypes at the given index. @@ -339,7 +356,7 @@ public interface AwsOpenIdConfigOrBuilder * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the value to return. * @return The bytes of the grantTypes at the given index. diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfig.java index 01f1400aaa77..d333d6b91009 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfig.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsProxyConfig} */ +@java.lang.Deprecated public final class AwsProxyConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsProxyConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfigOrBuilder.java index 8c3bebe9794b..0c3de642b8cd 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsProxyConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsProxyConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsProxyConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsResourcesProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsResourcesProto.java index c3b66f83e3b5..a7e117d44f76 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsResourcesProto.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsResourcesProto.java @@ -170,7 +170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v1\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\0324google/cloud/gke" + "multicloud/v1/common_resources.proto\032\037go" - + "ogle/protobuf/timestamp.proto\032\026google/type/date.proto\"\235\013\n\n" + + "ogle/protobuf/timestamp.proto\032\026google/type/date.proto\"\237\013\n\n" + "AwsCluster\022\014\n" + "\004name\030\001 \001(\t\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022L\n\n" @@ -216,9 +216,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013RECONCILING\020\003\022\014\n" + "\010STOPPING\020\004\022\t\n" + "\005ERROR\020\005\022\014\n" - + "\010DEGRADED\020\006:o\352Al\n" - + "\'gkemulticloud.googleapis.com/AwsCluster\022Aprojects/{pr" - + "oject}/locations/{location}/awsClusters/{aws_cluster}\"\250\007\n" + + "\010DEGRADED\020\006:q\030\001\352Al\n" + + "\'gkemulticloud.googleapis.com/AwsCluster\022Aprojects/{" + + "project}/locations/{location}/awsClusters/{aws_cluster}\"\254\007\n" + "\017AwsControlPlane\022\024\n" + "\007version\030\001 \001(\tB\003\340A\002\022\032\n\r" + "instance_type\030\002 \001(\tB\003\340A\001\022D\n\n" @@ -227,16 +227,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "subnet_ids\030\004 \003(\tB\003\340A\002\022\037\n" + "\022security_group_ids\030\005 \003(\tB\003\340A\001\022!\n" + "\024iam_instance_profile\030\007 \001(\tB\003\340A\002\022J\n" - + "\013root_volume\030\010 \001(\01320.google.clo" - + "ud.gkemulticloud.v1.AwsVolumeTemplateB\003\340A\001\022J\n" - + "\013main_volume\030\t \001(\01320.google.cloud.g" - + "kemulticloud.v1.AwsVolumeTemplateB\003\340A\001\022V\n" + + "\013root_volume\030\010 \001(\01320.google.c" + + "loud.gkemulticloud.v1.AwsVolumeTemplateB\003\340A\001\022J\n" + + "\013main_volume\030\t \001(\01320.google.cloud" + + ".gkemulticloud.v1.AwsVolumeTemplateB\003\340A\001\022V\n" + "\023database_encryption\030\n" + " \001(\01324.google.cloud.gkemulticloud.v1.AwsDatabaseEncryptionB\003\340A\002\022K\n" - + "\004tags\030\013 \003(\01328.google.cloud.gkem" - + "ulticloud.v1.AwsControlPlane.TagsEntryB\003\340A\001\022b\n" - + "\033aws_services_authentication\030\014 \001(\013" - + "28.google.cloud.gkemulticloud.v1.AwsServicesAuthenticationB\003\340A\002\022H\n" + + "\004tags\030\013 \003(\01328.google.cloud.gk" + + "emulticloud.v1.AwsControlPlane.TagsEntryB\003\340A\001\022b\n" + + "\033aws_services_authentication\030\014 \001" + + "(\01328.google.cloud.gkemulticloud.v1.AwsServicesAuthenticationB\003\340A\002\022H\n" + "\014proxy_config\030\020" + " \001(\0132-.google.cloud.gkemulticloud.v1.AwsProxyConfigB\003\340A\001\022R\n" + "\021config_encryption\030\021" @@ -245,44 +245,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01323.google.cloud.gkemulticloud.v1.AwsInstancePlacementB\003\340A\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"R\n" + + "\005value\030\002 \001(\t:\0028\001:\002\030\001\"V\n" + "\031AwsServicesAuthentication\022\025\n" + "\010role_arn\030\001 \001(\tB\003\340A\002\022\036\n" - + "\021role_session_name\030\002 \001(\tB\003\340A\001\"\246\001\n" + + "\021role_session_name\030\002 \001(\tB\003\340A\001:\002\030\001\"\252\001\n" + "\020AwsAuthorization\022G\n" - + "\013admin_users\030\001 \003(\0132-" - + ".google.cloud.gkemulticloud.v1.AwsClusterUserB\003\340A\001\022I\n" - + "\014admin_groups\030\002 \003(\0132..googl" - + "e.cloud.gkemulticloud.v1.AwsClusterGroupB\003\340A\001\"\'\n" + + "\013admin_users\030\001" + + " \003(\0132-.google.cloud.gkemulticloud.v1.AwsClusterUserB\003\340A\001\022I\n" + + "\014admin_groups\030\002 \003" + + "(\0132..google.cloud.gkemulticloud.v1.AwsClusterGroupB\003\340A\001:\002\030\001\"+\n" + "\016AwsClusterUser\022\025\n" - + "\010username\030\001 \001(\tB\003\340A\002\"%\n" + + "\010username\030\001 \001(\tB\003\340A\002:\002\030\001\")\n" + "\017AwsClusterGroup\022\022\n" - + "\005group\030\001 \001(\tB\003\340A\002\"1\n" + + "\005group\030\001 \001(\tB\003\340A\002:\002\030\001\"5\n" + "\025AwsDatabaseEncryption\022\030\n" - + "\013kms_key_arn\030\001 \001(\tB\003\340A\002\"\204\002\n" + + "\013kms_key_arn\030\001 \001(\tB\003\340A\002:\002\030\001\"\210\002\n" + "\021AwsVolumeTemplate\022\025\n" + "\010size_gib\030\001 \001(\005B\003\340A\001\022U\n" - + "\013volume_type\030\002 \001" - + "(\0162;.google.cloud.gkemulticloud.v1.AwsVolumeTemplate.VolumeTypeB\003\340A\001\022\021\n" + + "\013volume_type\030\002 \001(\0162;.google.cl" + + "oud.gkemulticloud.v1.AwsVolumeTemplate.VolumeTypeB\003\340A\001\022\021\n" + "\004iops\030\003 \001(\005B\003\340A\001\022\027\n\n" + "throughput\030\005 \001(\005B\003\340A\001\022\030\n" + "\013kms_key_arn\030\004 \001(\tB\003\340A\001\";\n\n" + "VolumeType\022\033\n" + "\027VOLUME_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003GP2\020\001\022\007\n" - + "\003GP3\020\002\"\251\001\n" + + "\003GP3\020\002:\002\030\001\"\255\001\n" + "\024AwsClusterNetworking\022\023\n" + "\006vpc_id\030\001 \001(\tB\003\340A\002\022$\n" + "\027pod_address_cidr_blocks\030\002 \003(\tB\003\340A\002\022(\n" + "\033service_address_cidr_blocks\030\003 \003(\tB\003\340A\002\022,\n" - + "\037per_node_pool_sg_rules_disabled\030\005 \001(\010B\003\340A\001\"\335\t\n" + + "\037per_node_pool_sg_rules_disabled\030\005 \001(\010B\003\340A\001:\002\030\001\"\337" + + "\t\n" + "\013AwsNodePool\022\014\n" + "\004name\030\001 \001(\t\022\024\n" + "\007version\030\003 \001(\tB\003\340A\002\022A\n" - + "\006config\030\034 \001(\0132" - + ",.google.cloud.gkemulticloud.v1.AwsNodeConfigB\003\340A\002\022O\n" - + "\013autoscaling\030\031 \001(\01325.google" - + ".cloud.gkemulticloud.v1.AwsNodePoolAutoscalingB\003\340A\002\022\026\n" + + "\006config\030\034 \001(\0132,.goog" + + "le.cloud.gkemulticloud.v1.AwsNodeConfigB\003\340A\002\022O\n" + + "\013autoscaling\030\031 \001(\01325.google.cloud" + + ".gkemulticloud.v1.AwsNodePoolAutoscalingB\003\340A\002\022\026\n" + "\tsubnet_id\030\006 \001(\tB\003\340A\002\022D\n" + "\005state\030\020" + " \001(\01620.google.cloud.gkemulticloud.v1.AwsNodePool.StateB\003\340A\003\022\020\n" @@ -292,10 +293,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\024" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + "\004etag\030\025 \001(\t\022U\n" - + "\013annotations\030\026 \003(\0132;.google.cloud.gkemulticlou" - + "d.v1.AwsNodePool.AnnotationsEntryB\003\340A\001\022R\n" - + "\023max_pods_constraint\030\033 \001(\01320.google.clo" - + "ud.gkemulticloud.v1.MaxPodsConstraintB\003\340A\002\022D\n" + + "\013annotations\030\026" + + " \003(\0132;.google.cloud.gkemulticloud.v1.AwsNodePool.AnnotationsEntryB\003\340A\001\022R\n" + + "\023max_pods_constraint\030\033" + + " \001(\01320.google.cloud.gkemulticloud.v1.MaxPodsConstraintB\003\340A\002\022D\n" + "\006errors\030\035" + " \003(\0132/.google.cloud.gkemulticloud.v1.AwsNodePoolErrorB\003\340A\003\022I\n\n" + "management\030\036" @@ -314,102 +315,107 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013RECONCILING\020\003\022\014\n" + "\010STOPPING\020\004\022\t\n" + "\005ERROR\020\005\022\014\n" - + "\010DEGRADED\020\006:\216\001\352A\212\001\n" - + "(gkemulticloud.googleapis.com/AwsNodePool\022^projects/{project}/locations/{locat" - + "ion}/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool}\"[\n" + + "\010DEGRADED\020\006:\220\001\030\001\352A\212\001\n" + + "(gkemulticloud.googleapis.com/AwsNodePool\022^projects/{project}/locations/{location}" + + "/awsClusters/{aws_cluster}/awsNodePools/{aws_node_pool}\"_\n" + "\016UpdateSettings\022I\n" + "\016surge_settings\030\001" - + " \001(\0132,.google.cloud.gkemulticloud.v1.SurgeSettingsB\003\340A\001\"E\n\r" + + " \001(\0132,.google.cloud.gkemulticloud.v1.SurgeSettingsB\003\340A\001:\002\030\001\"I\n\r" + "SurgeSettings\022\026\n" + "\tmax_surge\030\001 \001(\005B\003\340A\001\022\034\n" - + "\017max_unavailable\030\002 \001(\005B\003\340A\001\"-\n" + + "\017max_unavailable\030\002 \001(\005B\003\340A\001:\002\030\001\"1\n" + "\021AwsNodeManagement\022\030\n" - + "\013auto_repair\030\001 \001(\010B\003\340A\001\"\372\007\n\r" + + "\013auto_repair\030\001 \001(\010B\003\340A\001:\002\030\001\"\376\007\n\r" + "AwsNodeConfig\022\032\n\r" + "instance_type\030\001 \001(\tB\003\340A\001\022J\n" - + "\013root_volume\030\002" - + " \001(\01320.google.cloud.gkemulticloud.v1.AwsVolumeTemplateB\003\340A\001\022=\n" + + "\013root_volume\030\002 \001(\01320.google.cloud" + + ".gkemulticloud.v1.AwsVolumeTemplateB\003\340A\001\022=\n" + "\006taints\030\003" + " \003(\0132(.google.cloud.gkemulticloud.v1.NodeTaintB\003\340A\001\022M\n" - + "\006labels\030\004 \003(\01328.google" - + ".cloud.gkemulticloud.v1.AwsNodeConfig.LabelsEntryB\003\340A\001\022I\n" - + "\004tags\030\005 \003(\01326.google.cl" - + "oud.gkemulticloud.v1.AwsNodeConfig.TagsEntryB\003\340A\001\022!\n" + + "\006labels\030\004 \003(\0132" + + "8.google.cloud.gkemulticloud.v1.AwsNodeConfig.LabelsEntryB\003\340A\001\022I\n" + + "\004tags\030\005 \003(\01326.g" + + "oogle.cloud.gkemulticloud.v1.AwsNodeConfig.TagsEntryB\003\340A\001\022!\n" + "\024iam_instance_profile\030\006 \001(\tB\003\340A\002\022\027\n\n" - + "image_type\030\013 \001(\tB\003\340A\001\022D\n\n" + + "image_type\030\013 \001(\tB\003\340A\001\022D\n" + + "\n" + "ssh_config\030\t" + " \001(\0132+.google.cloud.gkemulticloud.v1.AwsSshConfigB\003\340A\001\022\037\n" + "\022security_group_ids\030\n" + " \003(\tB\003\340A\001\022H\n" - + "\014proxy_config\030\014 \001(\0132-.goo" - + "gle.cloud.gkemulticloud.v1.AwsProxyConfigB\003\340A\001\022R\n" + + "\014proxy_config\030\014 \001" + + "(\0132-.google.cloud.gkemulticloud.v1.AwsProxyConfigB\003\340A\001\022R\n" + "\021config_encryption\030\r" + " \001(\01322.google.cloud.gkemulticloud.v1.AwsConfigEncryptionB\003\340A\002\022T\n" - + "\022instance_placement\030\016 \001(\01323" - + ".google.cloud.gkemulticloud.v1.AwsInstancePlacementB\003\340A\001\022p\n" - + "\036autoscaling_metrics_collection\030\017 \001(\0132C.google.cloud.gkemulti" - + "cloud.v1.AwsAutoscalingGroupMetricsCollectionB\003\340A\001\022C\n" - + "\013spot_config\030\020 \001(\0132).google" - + ".cloud.gkemulticloud.v1.SpotConfigB\003\340A\001\032-\n" + + "\022instance_placement\030\016" + + " \001(\01323.google.cloud.gkemulticloud.v1.AwsInstancePlacementB\003\340A\001\022p\n" + + "\036autoscaling_metrics_collection\030\017 \001(\0132C.google.cloud." + + "gkemulticloud.v1.AwsAutoscalingGroupMetricsCollectionB\003\340A\001\022C\n" + + "\013spot_config\030\020 \001(\0132" + + ").google.cloud.gkemulticloud.v1.SpotConfigB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"R\n" + + "\005value\030\002 \001(\t:\0028\001:\002\030\001\"V\n" + "\026AwsNodePoolAutoscaling\022\033\n" + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n" - + "\016max_node_count\030\002 \001(\005B\003\340A\002\"\324\001\n" + + "\016max_node_count\030\002 \001(\005B\003\340A\002:\002\030\001\"\333\002\n" + "\017AwsOpenIdConfig\022\016\n" - + "\006issuer\030\001 \001(\t\022\020\n" - + "\010jwks_uri\030\002 \001(\t\022 \n" - + "\030response_types_supported\030\003 \003(\t\022\037\n" - + "\027subject_types_supported\030\004 \003(\t\022-\n" - + "%id_token_signing_alg_values_supported\030\005 \003(\t\022\030\n" - + "\020claims_supported\030\006 \003(\t\022\023\n" - + "\013grant_types\030\007 \003(\t\"B\n" + + "\006issuer\030\001 \001(\t\022\032\n" + + "\010jwks_uri\030\002 \001(\tR\010jwks_uri\022:\n" + + "\030response_types_supported\030\003 \003(\tR\030response_types_supported\0228\n" + + "\027subject_types_supported\030\004 \003(\tR\027subject_types_supported\022T\n" + + "%id_token_signing_alg_values_supported\030\005 \003(" + + "\tR%id_token_signing_alg_values_supported\022*\n" + + "\020claims_supported\030\006 \003(\tR\020claims_supported\022 \n" + + "\013grant_types\030\007 \003(\tR\013grant_types:\002\030\001\"F\n" + "\016AwsJsonWebKeys\0220\n" - + "\004keys\030\001 \003(\0132\".google.cloud.gkemulticloud.v1.Jwk\"\364\001\n" + + "\004keys\030\001" + + " \003(\0132\".google.cloud.gkemulticloud.v1.Jwk:\002\030\001\"\366\001\n" + "\017AwsServerConfig\022\014\n" + "\004name\030\001 \001(\t\022H\n" - + "\016valid_versions\030\002 \003(\01320.g" - + "oogle.cloud.gkemulticloud.v1.AwsK8sVersionInfo\022\035\n" - + "\025supported_aws_regions\030\003 \003(\t:j\352Ag\n" - + ",gkemulticloud.googleapis.com/AwsServ" - + "erConfig\0227projects/{project}/locations/{location}/awsServerConfig\"\264\001\n" + + "\016valid_versions\030\002 \003(\01320.google" + + ".cloud.gkemulticloud.v1.AwsK8sVersionInfo\022\035\n" + + "\025supported_aws_regions\030\003 \003(\t:l\030\001\352Ag\n" + + ",gkemulticloud.googleapis.com/AwsServerC" + + "onfig\0227projects/{project}/locations/{location}/awsServerConfig\"\270\001\n" + "\021AwsK8sVersionInfo\022\017\n" + "\007version\030\001 \001(\t\022\024\n" + "\007enabled\030\003 \001(\010B\003\340A\001\022\030\n" + "\013end_of_life\030\004 \001(\010B\003\340A\001\0220\n" + "\020end_of_life_date\030\005 \001(\0132\021.google.type.DateB\003\340A\001\022,\n" - + "\014release_date\030\006 \001(\0132\021.google.type.DateB\003\340A\001\")\n" + + "\014release_date\030\006" + + " \001(\0132\021.google.type.DateB\003\340A\001:\002\030\001\"-\n" + "\014AwsSshConfig\022\031\n" - + "\014ec2_key_pair\030\001 \001(\tB\003\340A\002\"<\n" + + "\014ec2_key_pair\030\001 \001(\tB\003\340A\002:\002\030\001\"@\n" + "\016AwsProxyConfig\022\022\n\n" + "secret_arn\030\001 \001(\t\022\026\n" - + "\016secret_version\030\002 \001(\t\"/\n" + + "\016secret_version\030\002 \001(\t:\002\030\001\"3\n" + "\023AwsConfigEncryption\022\030\n" - + "\013kms_key_arn\030\001 \001(\tB\003\340A\002\"\263\001\n" + + "\013kms_key_arn\030\001 \001(\tB\003\340A\002:\002\030\001\"\267\001\n" + "\024AwsInstancePlacement\022Q\n" - + "\007tenancy\030\001" - + " \001(\0162;.google.cloud.gkemulticloud.v1.AwsInstancePlacement.TenancyB\003\340A\002\"H\n" + + "\007tenancy\030\001 \001(\0162;.google.cloud.gkemult" + + "icloud.v1.AwsInstancePlacement.TenancyB\003\340A\002\"H\n" + "\007Tenancy\022\027\n" + "\023TENANCY_UNSPECIFIED\020\000\022\013\n" + "\007DEFAULT\020\001\022\r\n" + "\tDEDICATED\020\002\022\010\n" - + "\004HOST\020\003\"V\n" + + "\004HOST\020\003:\002\030\001\"Z\n" + "$AwsAutoscalingGroupMetricsCollection\022\030\n" + "\013granularity\030\001 \001(\tB\003\340A\002\022\024\n" - + "\007metrics\030\002 \003(\tB\003\340A\001\")\n\n" + + "\007metrics\030\002 \003(\tB\003\340A\001:\002\030\001\"-\n\n" + "SpotConfig\022\033\n" - + "\016instance_types\030\001 \003(\tB\003\340A\002\"\"\n" + + "\016instance_types\030\001 \003(\tB\003\340A\002:\002\030\001\"&\n" + "\017AwsClusterError\022\017\n" - + "\007message\030\001 \001(\t\"#\n" + + "\007message\030\001 \001(\t:\002\030\001\"\'\n" + "\020AwsNodePoolError\022\017\n" - + "\007message\030\001 \001(\tB\344\001\n" - + "!com.google.cloud.gkemulticloud.v1B\021AwsResources" - + "ProtoP\001ZGcloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticloudpb" - + "\252\002\035Google.Cloud.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + + "\007message\030\001 \001(\t:\002\030\001B\344\001\n" + + "!com.google.cloud.gkemulticloud.v1B\021AwsResourcesProtoP\001" + + "ZGcloud.google.com/go/gkemulticloud/apiv" + + "1/gkemulticloudpb;gkemulticloudpb\252\002\035Goog" + + "le.Cloud.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + " Google::Cloud::GkeMultiCloud::V1b\006proto3" }; descriptor = diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfig.java index b647d4e70ba0..37a4b2d53580 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfig.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsServerConfig} */ +@java.lang.Deprecated public final class AwsServerConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsServerConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfigOrBuilder.java index 52d8aa5e28c2..d0a9abf07146 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServerConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsServerConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsServerConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServiceProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServiceProto.java index e1b5eb2249e7..436bbf1ef1f7 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServiceProto.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServiceProto.java @@ -125,89 +125,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle/cloud/gkemulticloud/v1/aws_resources.proto\0324google/cloud/gkemulticloud/v1/co" + "mmon_resources.proto\032#google/longrunning" + "/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\323\001\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\327\001\n" + "\027CreateAwsClusterRequest\022?\n" + "\006parent\030\001 \001(\tB/\340" + "A\002\372A)\022\'gkemulticloud.googleapis.com/AwsCluster\022C\n" + "\013aws_cluster\030\002" + " \001(\0132).google.cloud.gkemulticloud.v1.AwsClusterB\003\340A\002\022\033\n" + "\016aws_cluster_id\030\003 \001(\tB\003\340A\002\022\025\n\r" - + "validate_only\030\004 \001(\010\"\253\001\n" + + "validate_only\030\004 \001(\010:\002\030\001\"\257\001\n" + "\027UpdateAwsClusterRequest\022C\n" + "\013aws_cluster\030\001" + " \001(\0132).google.cloud.gkemulticloud.v1.AwsClusterB\003\340A\002\022\025\n\r" + "validate_only\030\002 \001(\010\0224\n" - + "\013update_mask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"U\n" + + "\013update_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002:\002\030\001\"Y\n" + "\024GetAwsClusterRequest\022=\n" + "\004name\030\001 \001(\tB/\340A\002\372A)\n" - + "\'gkemulticloud.googleapis.com/AwsCluster\"\200\001\n" + + "\'gkemulticloud.googleapis.com/AwsCluster:\002\030\001\"\204\001\n" + "\026ListAwsClustersRequest\022?\n" - + "\006parent\030\001 \001(\tB/\340A\002\372A)\022" - + "\'gkemulticloud.googleapis.com/AwsCluster\022\021\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'gkemulticloud.googleapis.com/AwsCluster\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"s\n" + + "page_token\030\003 \001(\t:\002\030\001\"w\n" + "\027ListAwsClustersResponse\022?\n" + "\014aws_clusters\030\001" + " \003(\0132).google.cloud.gkemulticloud.v1.AwsCluster\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\260\001\n" + + "\017next_page_token\030\002 \001(\t:\002\030\001\"\264\001\n" + "\027DeleteAwsClusterRequest\022=\n" + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + "\'gkemulticloud.googleapis.com/AwsCluster\022\025\n\r" + "validate_only\030\002 \001(\010\022\025\n\r" + "allow_missing\030\003 \001(\010\022\032\n\r" + "ignore_errors\030\005 \001(\010B\003\340A\001\022\014\n" - + "\004etag\030\004 \001(\t\"\332\001\n" + + "\004etag\030\004 \001(\t:\002\030\001\"\336\001\n" + "\030CreateAwsNodePoolRequest\022@\n" + "\006parent\030\001 \001(" + "\tB0\340A\002\372A*\022(gkemulticloud.googleapis.com/AwsNodePool\022F\n\r" - + "aws_node_pool\030\002" - + " \001(\0132*.google.cloud.gkemulticloud.v1.AwsNodePoolB\003\340A\002\022\035\n" - + "\020aws_node_pool_id\030\003 \001(\tB\003\340A\002\022\025\n\r" - + "validate_only\030\004 \001(\010\"\257\001\n" + + "aws_node_pool\030\002 \001(\0132*." + + "google.cloud.gkemulticloud.v1.AwsNodePoolB\003\340A\002\022\035\n" + + "\020aws_node_pool_id\030\003 \001(\tB\003\340A\002\022\025\n" + + "\r" + + "validate_only\030\004 \001(\010:\002\030\001\"\263\001\n" + "\030UpdateAwsNodePoolRequest\022F\n\r" - + "aws_node_pool\030\001" - + " \001(\0132*.google.cloud.gkemulticloud.v1.AwsNodePoolB\003\340A\002\022\025\n\r" + + "aws_node_pool\030\001 \001(\0132*.g" + + "oogle.cloud.gkemulticloud.v1.AwsNodePoolB\003\340A\002\022\025\n\r" + "validate_only\030\002 \001(\010\0224\n" - + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"|\n" + + "\013update_mask\030\003" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002:\002\030\001\"\200\001\n" + " RollbackAwsNodePoolUpdateRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(gkemulticloud.googleapis.com/AwsNodePool\022\030\n" - + "\013respect_pdb\030\002 \001(\010B\003\340A\001\"W\n" + + "\013respect_pdb\030\002 \001(\010B\003\340A\001:\002\030\001\"[\n" + "\025GetAwsNodePoolRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(gkemulticloud.googleapis.com/AwsNodePool\"\202\001\n" + + "(gkemulticloud.googleapis.com/AwsNodePool:\002\030\001\"\206\001\n" + "\027ListAwsNodePoolsRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A" - + "*\022(gkemulticloud.googleapis.com/AwsNodePool\022\021\n" + + "\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(gkemulticloud.googleapis.com/AwsNodePool\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"w\n" + + "page_token\030\003 \001(\t:\002\030\001\"{\n" + "\030ListAwsNodePoolsResponse\022B\n" + "\016aws_node_pools\030\001" + " \003(\0132*.google.cloud.gkemulticloud.v1.AwsNodePool\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\262\001\n" + + "\017next_page_token\030\002 \001(\t:\002\030\001\"\266\001\n" + "\030DeleteAwsNodePoolRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(gkemulticloud.googleapis.com/AwsNodePool\022\025\n\r" + "validate_only\030\002 \001(\010\022\025\n\r" + "allow_missing\030\003 \001(\010\022\032\n\r" + "ignore_errors\030\005 \001(\010B\003\340A\001\022\014\n" - + "\004etag\030\004 \001(\t\"a\n" + + "\004etag\030\004 \001(\t:\002\030\001\"e\n" + "\031GetAwsOpenIdConfigRequest\022D\n" + "\013aws_cluster\030\001 \001(\tB/\340A\002\372A)\n" - + "\'gkemulticloud.googleapis.com/AwsCluster\"`\n" + + "\'gkemulticloud.googleapis.com/AwsCluster:\002\030\001\"d\n" + "\030GetAwsJsonWebKeysRequest\022D\n" + "\013aws_cluster\030\001 \001(\tB/\340A\002\372A)\n" - + "\'gkemulticloud.googleapis.com/AwsCluster\"_\n" + + "\'gkemulticloud.googleapis.com/AwsCluster:\002\030\001\"c\n" + "\031GetAwsServerConfigRequest\022B\n" + "\004name\030\001 \001(\tB4\340A\002\372A.\n" - + ",gkemulticloud.googleapis.com/AwsServerConfig\"e\n" + + ",gkemulticloud.googleapis.com/AwsServerConfig:\002\030\001\"i\n" + "\035GenerateAwsAccessTokenRequest\022D\n" + "\013aws_cluster\030\001 \001(\tB/\340A\002\372A)\n" - + "\'gkemulticloud.googleapis.com/AwsCluster\"u\n" + + "\'gkemulticloud.googleapis.com/AwsCluster:\002\030\001\"y\n" + "\036GenerateAwsAccessTokenResponse\022\031\n" + "\014access_token\030\001 \001(\tB\003\340A\003\0228\n" + "\017expiration_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\326\002\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\002\030\001\"\332\002\n" + "#GenerateAwsClusterAgentTokenRequest\022D\n" + "\013aws_cluster\030\001 \001(\tB/\340A\002\372A)\n" + "\'gkemulticloud.googleapis.com/AwsCluster\022\032\n\r" @@ -220,94 +223,91 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005scope\030\010 \001(\tB\003\340A\001\022!\n" + "\024requested_token_type\030\t \001(\tB\003\340A\001\022\024\n" + "\007options\030\n" - + " \001(\tB\003\340A\001\"d\n" - + "$GenerateAwsClusterAgentTokenResponse\022\024\n" - + "\014access_token\030\001 \001(\t\022\022\n\n" - + "expires_in\030\002 \001(\005\022\022\n\n" - + "token_type\030\003 \001(\t2\251\035\n" - + "\013AwsClusters\022\366\001\n" - + "\020CreateAwsCluster\0226.google.cloud." - + "gkemulticloud.v1.CreateAwsClusterRequest\032\035.google.longrunning.Operation\"\212\001\312A\037\n\n" - + "AwsCluster\022\021OperationMetadata\332A!parent,aw" - + "s_cluster,aws_cluster_id\202\323\344\223\002>\"//v1/{par" - + "ent=projects/*/locations/*}/awsClusters:\013aws_cluster\022\370\001\n" - + "\020UpdateAwsCluster\0226.google.cloud.gkemulticloud.v1.UpdateAwsClust" - + "erRequest\032\035.google.longrunning.Operation\"\214\001\312A\037\n\n" - + "AwsCluster\022\021OperationMetadata\332A\027" - + "aws_cluster,update_mask\202\323\344\223\002J2;/v1/{aws_" - + "cluster.name=projects/*/locations/*/awsClusters/*}:\013aws_cluster\022\257\001\n\r" - + "GetAwsCluster\0223.google.cloud.gkemulticloud.v1.GetAws" - + "ClusterRequest\032).google.cloud.gkemulticl" - + "oud.v1.AwsCluster\">\332A\004name\202\323\344\223\0021\022//v1/{n" - + "ame=projects/*/locations/*/awsClusters/*}\022\302\001\n" - + "\017ListAwsClusters\0225.google.cloud.gkemulticloud.v1.ListAwsClustersRequest\0326.g" - + "oogle.cloud.gkemulticloud.v1.ListAwsClus" - + "tersResponse\"@\332A\006parent\202\323\344\223\0021\022//v1/{pare" - + "nt=projects/*/locations/*}/awsClusters\022\326\001\n" - + "\020DeleteAwsCluster\0226.google.cloud.gkemu" - + "lticloud.v1.DeleteAwsClusterRequest\032\035.google.longrunning.Operation\"k\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\0021*//v1/{name=projects/*/locations/*/awsClusters/*}\022\207\002\n" - + "\034GenerateAwsClusterAgentToken\022B.google.cloud.gkemulticloud.v1" - + ".GenerateAwsClusterAgentTokenRequest\032C.google.cloud.gkemulticloud.v1.GenerateAws" - + "ClusterAgentTokenResponse\"^\202\323\344\223\002X\"S/v1/{" - + "aws_cluster=projects/*/locations/*/awsCl" - + "usters/*}:generateAwsClusterAgentToken:\001*\022\354\001\n" - + "\026GenerateAwsAccessToken\022<.google.cloud.gkemulticloud.v1.GenerateAwsAccessTo" - + "kenRequest\032=.google.cloud.gkemulticloud." - + "v1.GenerateAwsAccessTokenResponse\"U\202\323\344\223\002" - + "O\022M/v1/{aws_cluster=projects/*/locations" - + "/*/awsClusters/*}:generateAwsAccessToken\022\216\002\n" - + "\021CreateAwsNodePool\0227.google.cloud.gk" - + "emulticloud.v1.CreateAwsNodePoolRequest\032\035.google.longrunning.Operation\"\240\001\312A" - + " \n" - + "\013AwsNodePool\022\021OperationMetadata\332A%parent,aw" - + "s_node_pool,aws_node_pool_id\202\323\344\223\002O\">/v1/" - + "{parent=projects/*/locations/*/awsClusters/*}/awsNodePools:\r" - + "aws_node_pool\022\220\002\n" - + "\021UpdateAwsNodePool\0227.google.cloud.gkemultic" - + "loud.v1.UpdateAwsNodePoolRequest\032\035.google.longrunning.Operation\"\242\001\312A" + + " \001(\tB\003\340A\001:\002\030\001\"\216\001\n" + + "$GenerateAwsClusterAgentTokenResponse\022\"\n" + + "\014access_token\030\001 \001(\tR\014access_token\022\036\n\n" + + "expires_in\030\002 \001(\005R\n" + + "expires_in\022\036\n\n" + + "token_type\030\003 \001(\tR\n" + + "token_type:\002\030\0012\334\035\n" + + "\013AwsClusters\022\371\001\n" + + "\020CreateAwsCluster\0226.google.cloud.gkemulticloud.v1.CreateAwsClusterRequest" + + "\032\035.google.longrunning.Operation\"\215\001\210\002\001\312A\037\n\n" + + "AwsCluster\022\021OperationMetadata\332A!parent" + + ",aws_cluster,aws_cluster_id\202\323\344\223\002>\"//v1/{" + + "parent=projects/*/locations/*}/awsClusters:\013aws_cluster\022\373\001\n" + + "\020UpdateAwsCluster\0226.google.cloud.gkemulticloud.v1.UpdateAwsCl" + + "usterRequest\032\035.google.longrunning.Operation\"\217\001\210\002\001\312A\037\n\n" + + "AwsCluster\022\021OperationMetad" + + "ata\332A\027aws_cluster,update_mask\202\323\344\223\002J2;/v1" + + "/{aws_cluster.name=projects/*/locations/*/awsClusters/*}:\013aws_cluster\022\262\001\n\r" + + "GetAwsCluster\0223.google.cloud.gkemulticloud.v1." + + "GetAwsClusterRequest\032).google.cloud.gkem" + + "ulticloud.v1.AwsCluster\"A\210\002\001\332A\004name\202\323\344\223\002" + + "1\022//v1/{name=projects/*/locations/*/awsClusters/*}\022\305\001\n" + + "\017ListAwsClusters\0225.google.cloud.gkemulticloud.v1.ListAwsClustersRe" + + "quest\0326.google.cloud.gkemulticloud.v1.Li" + + "stAwsClustersResponse\"C\210\002\001\332A\006parent\202\323\344\223\002" + + "1\022//v1/{parent=projects/*/locations/*}/awsClusters\022\331\001\n" + + "\020DeleteAwsCluster\0226.google.cloud.gkemulticloud.v1.DeleteAwsCluster" + + "Request\032\035.google.longrunning.Operation\"n\210\002\001\312A*\n" + + "\025google.protobuf.Empty\022\021Operation" + + "Metadata\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/awsClusters/*}\022\212\002\n" + + "\034GenerateAwsClusterAgentToken\022B.google.cloud.g" + + "kemulticloud.v1.GenerateAwsClusterAgentTokenRequest\032C.google.cloud.gkemulticloud" + + ".v1.GenerateAwsClusterAgentTokenResponse" + + "\"a\210\002\001\202\323\344\223\002X\"S/v1/{aws_cluster=projects/*" + + "/locations/*/awsClusters/*}:generateAwsClusterAgentToken:\001*\022\357\001\n" + + "\026GenerateAwsAccessToken\022<.google.cloud.gkemulticloud.v1.G" + + "enerateAwsAccessTokenRequest\032=.google.cloud.gkemulticloud.v1.GenerateAwsAccessTo" + + "kenResponse\"X\210\002\001\202\323\344\223\002O\022M/v1/{aws_cluster" + + "=projects/*/locations/*/awsClusters/*}:generateAwsAccessToken\022\221\002\n" + + "\021CreateAwsNodePool\0227.google.cloud.gkemulticloud.v1.Crea" + + "teAwsNodePoolRequest\032\035.google.longrunning.Operation\"\243\001\210\002\001\312A" + " \n" - + "\013AwsNodePool\022\021OperationMetadata\332A\031aws_node_pool,up" - + "date_mask\202\323\344\223\002]2L/v1/{aws_node_pool.name" - + "=projects/*/locations/*/awsClusters/*/awsNodePools/*}:\r" - + "aws_node_pool\022\371\001\n" - + "\031RollbackAwsNodePoolUpdate\022?.google.cloud.gkemul" - + "ticloud.v1.RollbackAwsNodePoolUpdateRequest\032\035.google.longrunning.Operation\"|\312A" + + "\013AwsNodePool\022\021OperationMetadata\332A%parent,aws_node_pool,aws_" + + "node_pool_id\202\323\344\223\002O\">/v1/{parent=projects" + + "/*/locations/*/awsClusters/*}/awsNodePools:\r" + + "aws_node_pool\022\223\002\n" + + "\021UpdateAwsNodePool\0227.google.cloud.gkemulticloud.v1.UpdateAw" + + "sNodePoolRequest\032\035.google.longrunning.Operation\"\245\001\210\002\001\312A \n" + + "\013AwsNodePool\022\021Operation" + + "Metadata\332A\031aws_node_pool,update_mask\202\323\344\223" + + "\002]2L/v1/{aws_node_pool.name=projects/*/locations/*/awsClusters/*/awsNodePools/*}:\r" + + "aws_node_pool\022\374\001\n" + + "\031RollbackAwsNodePoolUpdate\022?.google.cloud.gkemulticloud.v1.Ro" + + "llbackAwsNodePoolUpdateRequest\032\035.google.longrunning.Operation\"\177\210\002\001\312A" + " \n" - + "\013AwsNodePool\022\021OperationMetadata\332A\004name\202\323" - + "\344\223\002L\"G/v1/{name=projects/*/locations/*/a" - + "wsClusters/*/awsNodePools/*}:rollback:\001*\022\301\001\n" - + "\016GetAwsNodePool\0224.google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest\032*.goog" - + "le.cloud.gkemulticloud.v1.AwsNodePool\"M\332" - + "A\004name\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}\022\324\001\n" - + "\020ListAwsNodePools\0226.google.cloud.gkemult" - + "icloud.v1.ListAwsNodePoolsRequest\0327.google.cloud.gkemulticloud.v1.ListAwsNodePoo" - + "lsResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent" - + "=projects/*/locations/*/awsClusters/*}/awsNodePools\022\347\001\n" - + "\021DeleteAwsNodePool\0227.google.cloud.gkemulticloud.v1.DeleteAwsNodeP" - + "oolRequest\032\035.google.longrunning.Operation\"z\312A*\n" - + "\025google.protobuf.Empty\022\021Operation" - + "Metadata\332A\004name\202\323\344\223\002@*>/v1/{name=project" - + "s/*/locations/*/awsClusters/*/awsNodePools/*}\022\337\001\n" - + "\022GetAwsOpenIdConfig\0228.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigR" - + "equest\032..google.cloud.gkemulticloud.v1.A" - + "wsOpenIdConfig\"_\202\323\344\223\002Y\022W/v1/{aws_cluster" - + "=projects/*/locations/*/awsClusters/*}/.well-known/openid-configuration\022\300\001\n" - + "\021GetAwsJsonWebKeys\0227.google.cloud.gkemulticlo" - + "ud.v1.GetAwsJsonWebKeysRequest\032-.google." - + "cloud.gkemulticloud.v1.AwsJsonWebKeys\"C\202" - + "\323\344\223\002=\022;/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}/jwks\022\300\001\n" - + "\022GetAwsServerConfig\0228.google.cloud.gkemulticloud.v" - + "1.GetAwsServerConfigRequest\032..google.clo" - + "ud.gkemulticloud.v1.AwsServerConfig\"@\332A\004" - + "name\202\323\344\223\0023\0221/v1/{name=projects/*/locatio" - + "ns/*/awsServerConfig}\032P\312A\034gkemulticloud." - + "googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\342\001\n" - + "!com.google.cloud.gkemulticloud.v1B\017AwsServiceProtoP\001" - + "ZGcloud.google.com/go/gkemulticloud/apiv" - + "1/gkemulticloudpb;gkemulticloudpb\252\002\035Goog" - + "le.Cloud.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + + "\013AwsNodePool\022\021OperationMetadata\332A\004name\202\323\344\223\002L\"G/v1/" + + "{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}:rollback:\001*\022\304\001\n" + + "\016GetAwsNodePool\0224.google.cloud.gkemulticloud.v" + + "1.GetAwsNodePoolRequest\032*.google.cloud.g" + + "kemulticloud.v1.AwsNodePool\"P\210\002\001\332A\004name\202" + + "\323\344\223\002@\022>/v1/{name=projects/*/locations/*/awsClusters/*/awsNodePools/*}\022\327\001\n" + + "\020ListAwsNodePools\0226.google.cloud.gkemulticloud." + + "v1.ListAwsNodePoolsRequest\0327.google.cloud.gkemulticloud.v1.ListAwsNodePoolsRespo" + + "nse\"R\210\002\001\332A\006parent\202\323\344\223\002@\022>/v1/{parent=pro" + + "jects/*/locations/*/awsClusters/*}/awsNodePools\022\352\001\n" + + "\021DeleteAwsNodePool\0227.google.cloud.gkemulticloud.v1.DeleteAwsNodePoolR" + + "equest\032\035.google.longrunning.Operation\"}\210\002\001\312A*\n" + + "\025google.protobuf.Empty\022\021OperationM" + + "etadata\332A\004name\202\323\344\223\002@*>/v1/{name=projects" + + "/*/locations/*/awsClusters/*/awsNodePools/*}\022\342\001\n" + + "\022GetAwsOpenIdConfig\0228.google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRe" + + "quest\032..google.cloud.gkemulticloud.v1.Aw" + + "sOpenIdConfig\"b\210\002\001\202\323\344\223\002Y\022W/v1/{aws_clust" + + "er=projects/*/locations/*/awsClusters/*}/.well-known/openid-configuration\022\303\001\n" + + "\021GetAwsJsonWebKeys\0227.google.cloud.gkemultic" + + "loud.v1.GetAwsJsonWebKeysRequest\032-.google.cloud.gkemulticloud.v1.AwsJsonWebKeys\"" + + "F\210\002\001\202\323\344\223\002=\022;/v1/{aws_cluster=projects/*/locations/*/awsClusters/*}/jwks\022\303\001\n" + + "\022GetAwsServerConfig\0228.google.cloud.gkemulticl" + + "oud.v1.GetAwsServerConfigRequest\032..google.cloud.gkemulticloud.v1.AwsServerConfig" + + "\"C\210\002\001\332A\004name\202\323\344\223\0023\0221/v1/{name=projects/*" + + "/locations/*/awsServerConfig}\032S\210\002\001\312A\034gke" + + "multicloud.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\342\001\n" + + "!com.google.cloud.gkemulticloud.v1B\017AwsSer" + + "viceProtoP\001ZGcloud.google.com/go/gkemulticloud/apiv1/gkemulticloudpb;gkemulticlo" + + "udpb\252\002\035Google.Cloud.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + " Google::Cloud::GkeMultiCloud::V1b\006proto3" }; descriptor = diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthentication.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthentication.java index cdcee8640584..0d04108e0d4c 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthentication.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthentication.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsServicesAuthentication} */ +@java.lang.Deprecated public final class AwsServicesAuthentication extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsServicesAuthentication) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthenticationOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthenticationOrBuilder.java index 5e0ea04f07de..5163701fafb5 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthenticationOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsServicesAuthenticationOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsServicesAuthenticationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsServicesAuthentication) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsSshConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsSshConfig.java index 813e566c816c..7fdd81a69aac 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsSshConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsSshConfig.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsSshConfig} */ +@java.lang.Deprecated public final class AwsSshConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsSshConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsSshConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsSshConfigOrBuilder.java index cc0f3a1e6219..60751d310409 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsSshConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsSshConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsSshConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsSshConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplate.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplate.java index 45039b8746a8..411d40277bc3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplate.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplate.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AwsVolumeTemplate} */ +@java.lang.Deprecated public final class AwsVolumeTemplate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AwsVolumeTemplate) @@ -328,7 +329,7 @@ public int getIops() { * Optional. The throughput that the volume supports, in MiB/s. Only valid if * volume_type is GP3. * - * If the volume_type is GP3 and this is not speficied, it defaults to 125. + * If the volume_type is GP3 and this is not specified, it defaults to 125. * * * int32 throughput = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1087,7 +1088,7 @@ public Builder clearIops() { * Optional. The throughput that the volume supports, in MiB/s. Only valid if * volume_type is GP3. * - * If the volume_type is GP3 and this is not speficied, it defaults to 125. + * If the volume_type is GP3 and this is not specified, it defaults to 125. * * * int32 throughput = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1106,7 +1107,7 @@ public int getThroughput() { * Optional. The throughput that the volume supports, in MiB/s. Only valid if * volume_type is GP3. * - * If the volume_type is GP3 and this is not speficied, it defaults to 125. + * If the volume_type is GP3 and this is not specified, it defaults to 125. * * * int32 throughput = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1129,7 +1130,7 @@ public Builder setThroughput(int value) { * Optional. The throughput that the volume supports, in MiB/s. Only valid if * volume_type is GP3. * - * If the volume_type is GP3 and this is not speficied, it defaults to 125. + * If the volume_type is GP3 and this is not specified, it defaults to 125. * * * int32 throughput = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplateOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplateOrBuilder.java index 167a402a27c4..8f291910492f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplateOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AwsVolumeTemplateOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AwsVolumeTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AwsVolumeTemplate) @@ -95,7 +96,7 @@ public interface AwsVolumeTemplateOrBuilder * Optional. The throughput that the volume supports, in MiB/s. Only valid if * volume_type is GP3. * - * If the volume_type is GP3 and this is not speficied, it defaults to 125. + * If the volume_type is GP3 and this is not specified, it defaults to 125. * * * int32 throughput = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureAuthorization.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureAuthorization.java index 11b139b0228d..2eb3f56bcec4 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureAuthorization.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureAuthorization.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureAuthorization} */ +@java.lang.Deprecated public final class AzureAuthorization extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureAuthorization) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureAuthorizationOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureAuthorizationOrBuilder.java index 1a52e2111e27..f74dfa9f421d 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureAuthorizationOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureAuthorizationOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureAuthorizationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureAuthorization) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClient.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClient.java index b34f058d4ff4..a2365f997ebd 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClient.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClient.java @@ -39,6 +39,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureClient} */ +@java.lang.Deprecated public final class AzureClient extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureClient) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClientOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClientOrBuilder.java index f76313efe006..46ff6e958693 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClientOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClientOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureClientOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureClient) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureCluster.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureCluster.java index 6421fe7dc5a0..72a4e7946b62 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureCluster.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureCluster.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureCluster} */ +@java.lang.Deprecated public final class AzureCluster extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureCluster) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterError.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterError.java index 2a6be0005f50..65a59c8849e6 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterError.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterError.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureClusterError} */ +@java.lang.Deprecated public final class AzureClusterError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureClusterError) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterErrorOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterErrorOrBuilder.java index ceee709b539d..a5a5ef85f894 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterErrorOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterErrorOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureClusterErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureClusterError) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterGroup.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterGroup.java index 0345347afa1b..594ea46d6267 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterGroup.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterGroup.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureClusterGroup} */ +@java.lang.Deprecated public final class AzureClusterGroup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureClusterGroup) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterGroupOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterGroupOrBuilder.java index 9aa38d9927d1..95d1d9032eba 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterGroupOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterGroupOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureClusterGroupOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureClusterGroup) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworking.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworking.java index 653ef6e5e177..5aac898983a5 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworking.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworking.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureClusterNetworking} */ +@java.lang.Deprecated public final class AzureClusterNetworking extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureClusterNetworking) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworkingOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworkingOrBuilder.java index 4a1032e87a39..fd535ee709e9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworkingOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterNetworkingOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureClusterNetworkingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureClusterNetworking) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterOrBuilder.java index a416cf64ce1b..698542fa2557 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureCluster) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterResources.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterResources.java index 2829cf9f3867..183fa76d4a91 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterResources.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterResources.java @@ -30,6 +30,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureClusterResources} */ +@java.lang.Deprecated public final class AzureClusterResources extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureClusterResources) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterResourcesOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterResourcesOrBuilder.java index 8443633384fd..29064ddc1849 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterResourcesOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterResourcesOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureClusterResourcesOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureClusterResources) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterUser.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterUser.java index 48da0700d9cd..dd405bafa1cf 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterUser.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterUser.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureClusterUser} */ +@java.lang.Deprecated public final class AzureClusterUser extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureClusterUser) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterUserOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterUserOrBuilder.java index 7cb6ec010841..4ac37992414b 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterUserOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureClusterUserOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureClusterUserOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureClusterUser) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryption.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryption.java index 1fd964c9cf51..0d910d5cc900 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryption.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryption.java @@ -31,6 +31,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureConfigEncryption} */ +@java.lang.Deprecated public final class AzureConfigEncryption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureConfigEncryption) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryptionOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryptionOrBuilder.java index 68c265c25ede..09f6284c612d 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryptionOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureConfigEncryptionOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureConfigEncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureConfigEncryption) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlane.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlane.java index 9926fab45e51..cfd23d120576 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlane.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlane.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureControlPlane} */ +@java.lang.Deprecated public final class AzureControlPlane extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureControlPlane) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlaneOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlaneOrBuilder.java index ff3b1f680c5a..e13eb5abb082 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlaneOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureControlPlaneOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureControlPlaneOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureControlPlane) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDatabaseEncryption.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDatabaseEncryption.java index 501ce535bf84..e3d0931f784a 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDatabaseEncryption.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDatabaseEncryption.java @@ -31,6 +31,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureDatabaseEncryption} */ +@java.lang.Deprecated public final class AzureDatabaseEncryption extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureDatabaseEncryption) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDatabaseEncryptionOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDatabaseEncryptionOrBuilder.java index d661f594096c..661938eb5076 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDatabaseEncryptionOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDatabaseEncryptionOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureDatabaseEncryptionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureDatabaseEncryption) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDiskTemplate.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDiskTemplate.java index 797a8d07b3d9..19737c6e6e2e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDiskTemplate.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDiskTemplate.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureDiskTemplate} */ +@java.lang.Deprecated public final class AzureDiskTemplate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureDiskTemplate) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDiskTemplateOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDiskTemplateOrBuilder.java index 70cc2e615491..09bf0f1ff972 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDiskTemplateOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureDiskTemplateOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureDiskTemplateOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureDiskTemplate) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureJsonWebKeys.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureJsonWebKeys.java index 0a8eee5a2196..218fa8c84efc 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureJsonWebKeys.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureJsonWebKeys.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureJsonWebKeys} */ +@java.lang.Deprecated public final class AzureJsonWebKeys extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureJsonWebKeys) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureJsonWebKeysOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureJsonWebKeysOrBuilder.java index 6b73719cd260..58835e236e48 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureJsonWebKeysOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureJsonWebKeysOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureJsonWebKeysOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureJsonWebKeys) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureK8sVersionInfo.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureK8sVersionInfo.java index 07a765033343..00e6dd56bdca 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureK8sVersionInfo.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureK8sVersionInfo.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureK8sVersionInfo} */ +@java.lang.Deprecated public final class AzureK8sVersionInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureK8sVersionInfo) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureK8sVersionInfoOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureK8sVersionInfoOrBuilder.java index 833b41dc5dff..c88824dfbffe 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureK8sVersionInfoOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureK8sVersionInfoOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureK8sVersionInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureK8sVersionInfo) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfig.java index 8153c966ee99..e1f4076397bc 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfig.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureNodeConfig} */ +@java.lang.Deprecated public final class AzureNodeConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureNodeConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfigOrBuilder.java index d4ba51c48086..07ff26e88c4f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureNodeConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureNodeConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeManagement.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeManagement.java index c004ae3c612c..769c7b33ad38 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeManagement.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeManagement.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureNodeManagement} */ +@java.lang.Deprecated public final class AzureNodeManagement extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureNodeManagement) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeManagementOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeManagementOrBuilder.java index b31fa6d73374..86d1bbe1363c 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeManagementOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodeManagementOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureNodeManagementOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureNodeManagement) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePool.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePool.java index 3a2cc92ea182..997267a3c5f3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePool.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePool.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureNodePool} */ +@java.lang.Deprecated public final class AzureNodePool extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureNodePool) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscaling.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscaling.java index 1c2540862b9d..4aca855e1816 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscaling.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscaling.java @@ -31,6 +31,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling} */ +@java.lang.Deprecated public final class AzureNodePoolAutoscaling extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscalingOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscalingOrBuilder.java index 2598aafa2440..15e560a1467d 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscalingOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolAutoscalingOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureNodePoolAutoscalingOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureNodePoolAutoscaling) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolError.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolError.java index 6fd0a9fe6ba4..c25d56a09947 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolError.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolError.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureNodePoolError} */ +@java.lang.Deprecated public final class AzureNodePoolError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureNodePoolError) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolErrorOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolErrorOrBuilder.java index 2d4cb467828d..2ba0c33076f7 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolErrorOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolErrorOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureNodePoolErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureNodePoolError) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolOrBuilder.java index 54a742385aa0..66e2b2c5b445 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureNodePoolOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureNodePoolOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureNodePool) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureOpenIdConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureOpenIdConfig.java index 7278bcb28613..028f6b386b09 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureOpenIdConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureOpenIdConfig.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureOpenIdConfig} */ +@java.lang.Deprecated public final class AzureOpenIdConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureOpenIdConfig) @@ -136,7 +137,7 @@ public com.google.protobuf.ByteString getIssuerBytes() { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The jwksUri. */ @@ -160,7 +161,7 @@ public java.lang.String getJwksUri() { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The bytes for jwksUri. */ @@ -190,7 +191,8 @@ public com.google.protobuf.ByteString getJwksUriBytes() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return A list containing the responseTypesSupported. */ @@ -205,7 +207,8 @@ public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return The count of responseTypesSupported. */ @@ -220,7 +223,8 @@ public int getResponseTypesSupportedCount() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the element to return. * @return The responseTypesSupported at the given index. @@ -236,7 +240,8 @@ public java.lang.String getResponseTypesSupported(int index) { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the responseTypesSupported at the given index. @@ -258,7 +263,8 @@ public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return A list containing the subjectTypesSupported. */ @@ -273,7 +279,8 @@ public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return The count of subjectTypesSupported. */ @@ -288,7 +295,8 @@ public int getSubjectTypesSupportedCount() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the element to return. * @return The subjectTypesSupported at the given index. @@ -304,7 +312,8 @@ public java.lang.String getSubjectTypesSupported(int index) { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the subjectTypesSupported at the given index. @@ -326,7 +335,9 @@ public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return A list containing the idTokenSigningAlgValuesSupported. */ @@ -341,7 +352,9 @@ public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupporte * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return The count of idTokenSigningAlgValuesSupported. */ @@ -356,7 +369,9 @@ public int getIdTokenSigningAlgValuesSupportedCount() { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the element to return. * @return The idTokenSigningAlgValuesSupported at the given index. @@ -372,7 +387,9 @@ public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. @@ -394,7 +411,7 @@ public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(i * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return A list containing the claimsSupported. */ @@ -409,7 +426,7 @@ public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return The count of claimsSupported. */ @@ -424,7 +441,7 @@ public int getClaimsSupportedCount() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the element to return. * @return The claimsSupported at the given index. @@ -440,7 +457,7 @@ public java.lang.String getClaimsSupported(int index) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the value to return. * @return The bytes of the claimsSupported at the given index. @@ -462,7 +479,7 @@ public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return A list containing the grantTypes. */ @@ -477,7 +494,7 @@ public com.google.protobuf.ProtocolStringList getGrantTypesList() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return The count of grantTypes. */ @@ -492,7 +509,7 @@ public int getGrantTypesCount() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the element to return. * @return The grantTypes at the given index. @@ -508,7 +525,7 @@ public java.lang.String getGrantTypes(int index) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the value to return. * @return The bytes of the grantTypes at the given index. @@ -1200,7 +1217,7 @@ public Builder setIssuerBytes(com.google.protobuf.ByteString value) { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The jwksUri. */ @@ -1223,7 +1240,7 @@ public java.lang.String getJwksUri() { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The bytes for jwksUri. */ @@ -1246,7 +1263,7 @@ public com.google.protobuf.ByteString getJwksUriBytes() { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @param value The jwksUri to set. * @return This builder for chaining. @@ -1268,7 +1285,7 @@ public Builder setJwksUri(java.lang.String value) { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return This builder for chaining. */ @@ -1286,7 +1303,7 @@ public Builder clearJwksUri() { * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @param value The bytes for jwksUri to set. * @return This builder for chaining. @@ -1320,7 +1337,8 @@ private void ensureResponseTypesSupportedIsMutable() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return A list containing the responseTypesSupported. */ @@ -1336,7 +1354,8 @@ public com.google.protobuf.ProtocolStringList getResponseTypesSupportedList() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return The count of responseTypesSupported. */ @@ -1351,7 +1370,8 @@ public int getResponseTypesSupportedCount() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the element to return. * @return The responseTypesSupported at the given index. @@ -1367,7 +1387,8 @@ public java.lang.String getResponseTypesSupported(int index) { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the responseTypesSupported at the given index. @@ -1383,7 +1404,8 @@ public com.google.protobuf.ByteString getResponseTypesSupportedBytes(int index) * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index to set the value at. * @param value The responseTypesSupported to set. @@ -1407,7 +1429,8 @@ public Builder setResponseTypesSupported(int index, java.lang.String value) { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param value The responseTypesSupported to add. * @return This builder for chaining. @@ -1430,7 +1453,8 @@ public Builder addResponseTypesSupported(java.lang.String value) { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param values The responseTypesSupported to add. * @return This builder for chaining. @@ -1450,7 +1474,8 @@ public Builder addAllResponseTypesSupported(java.lang.Iterable * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return This builder for chaining. */ @@ -1469,7 +1494,8 @@ public Builder clearResponseTypesSupported() { * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param value The bytes of the responseTypesSupported to add. * @return This builder for chaining. @@ -1504,7 +1530,8 @@ private void ensureSubjectTypesSupportedIsMutable() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return A list containing the subjectTypesSupported. */ @@ -1520,7 +1547,8 @@ public com.google.protobuf.ProtocolStringList getSubjectTypesSupportedList() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return The count of subjectTypesSupported. */ @@ -1535,7 +1563,8 @@ public int getSubjectTypesSupportedCount() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the element to return. * @return The subjectTypesSupported at the given index. @@ -1551,7 +1580,8 @@ public java.lang.String getSubjectTypesSupported(int index) { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the subjectTypesSupported at the given index. @@ -1567,7 +1597,8 @@ public com.google.protobuf.ByteString getSubjectTypesSupportedBytes(int index) { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index to set the value at. * @param value The subjectTypesSupported to set. @@ -1591,7 +1622,8 @@ public Builder setSubjectTypesSupported(int index, java.lang.String value) { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param value The subjectTypesSupported to add. * @return This builder for chaining. @@ -1614,7 +1646,8 @@ public Builder addSubjectTypesSupported(java.lang.String value) { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param values The subjectTypesSupported to add. * @return This builder for chaining. @@ -1634,7 +1667,8 @@ public Builder addAllSubjectTypesSupported(java.lang.Iterable * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return This builder for chaining. */ @@ -1653,7 +1687,8 @@ public Builder clearSubjectTypesSupported() { * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param value The bytes of the subjectTypesSupported to add. * @return This builder for chaining. @@ -1688,7 +1723,9 @@ private void ensureIdTokenSigningAlgValuesSupportedIsMutable() { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return A list containing the idTokenSigningAlgValuesSupported. */ @@ -1704,7 +1741,9 @@ public com.google.protobuf.ProtocolStringList getIdTokenSigningAlgValuesSupporte * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return The count of idTokenSigningAlgValuesSupported. */ @@ -1719,7 +1758,9 @@ public int getIdTokenSigningAlgValuesSupportedCount() { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the element to return. * @return The idTokenSigningAlgValuesSupported at the given index. @@ -1735,7 +1776,9 @@ public java.lang.String getIdTokenSigningAlgValuesSupported(int index) { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. @@ -1751,7 +1794,9 @@ public com.google.protobuf.ByteString getIdTokenSigningAlgValuesSupportedBytes(i * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index to set the value at. * @param value The idTokenSigningAlgValuesSupported to set. @@ -1775,7 +1820,9 @@ public Builder setIdTokenSigningAlgValuesSupported(int index, java.lang.String v * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param value The idTokenSigningAlgValuesSupported to add. * @return This builder for chaining. @@ -1798,7 +1845,9 @@ public Builder addIdTokenSigningAlgValuesSupported(java.lang.String value) { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param values The idTokenSigningAlgValuesSupported to add. * @return This builder for chaining. @@ -1820,7 +1869,9 @@ public Builder addAllIdTokenSigningAlgValuesSupported( * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return This builder for chaining. */ @@ -1839,7 +1890,9 @@ public Builder clearIdTokenSigningAlgValuesSupported() { * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param value The bytes of the idTokenSigningAlgValuesSupported to add. * @return This builder for chaining. @@ -1873,7 +1926,7 @@ private void ensureClaimsSupportedIsMutable() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return A list containing the claimsSupported. */ @@ -1889,7 +1942,7 @@ public com.google.protobuf.ProtocolStringList getClaimsSupportedList() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return The count of claimsSupported. */ @@ -1904,7 +1957,7 @@ public int getClaimsSupportedCount() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the element to return. * @return The claimsSupported at the given index. @@ -1920,7 +1973,7 @@ public java.lang.String getClaimsSupported(int index) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the value to return. * @return The bytes of the claimsSupported at the given index. @@ -1936,7 +1989,7 @@ public com.google.protobuf.ByteString getClaimsSupportedBytes(int index) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index to set the value at. * @param value The claimsSupported to set. @@ -1960,7 +2013,7 @@ public Builder setClaimsSupported(int index, java.lang.String value) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param value The claimsSupported to add. * @return This builder for chaining. @@ -1983,7 +2036,7 @@ public Builder addClaimsSupported(java.lang.String value) { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param values The claimsSupported to add. * @return This builder for chaining. @@ -2003,7 +2056,7 @@ public Builder addAllClaimsSupported(java.lang.Iterable values * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return This builder for chaining. */ @@ -2022,7 +2075,7 @@ public Builder clearClaimsSupported() { * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param value The bytes of the claimsSupported to add. * @return This builder for chaining. @@ -2056,7 +2109,7 @@ private void ensureGrantTypesIsMutable() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return A list containing the grantTypes. */ @@ -2072,7 +2125,7 @@ public com.google.protobuf.ProtocolStringList getGrantTypesList() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return The count of grantTypes. */ @@ -2087,7 +2140,7 @@ public int getGrantTypesCount() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the element to return. * @return The grantTypes at the given index. @@ -2103,7 +2156,7 @@ public java.lang.String getGrantTypes(int index) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the value to return. * @return The bytes of the grantTypes at the given index. @@ -2119,7 +2172,7 @@ public com.google.protobuf.ByteString getGrantTypesBytes(int index) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index to set the value at. * @param value The grantTypes to set. @@ -2143,7 +2196,7 @@ public Builder setGrantTypes(int index, java.lang.String value) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param value The grantTypes to add. * @return This builder for chaining. @@ -2166,7 +2219,7 @@ public Builder addGrantTypes(java.lang.String value) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param values The grantTypes to add. * @return This builder for chaining. @@ -2186,7 +2239,7 @@ public Builder addAllGrantTypes(java.lang.Iterable values) { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return This builder for chaining. */ @@ -2205,7 +2258,7 @@ public Builder clearGrantTypes() { * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param value The bytes of the grantTypes to add. * @return This builder for chaining. diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureOpenIdConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureOpenIdConfigOrBuilder.java index 1624672969ae..302c04432d74 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureOpenIdConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureOpenIdConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureOpenIdConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureOpenIdConfig) @@ -57,7 +58,7 @@ public interface AzureOpenIdConfigOrBuilder * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The jwksUri. */ @@ -70,7 +71,7 @@ public interface AzureOpenIdConfigOrBuilder * JSON Web Key uri. * * - * string jwks_uri = 2; + * string jwks_uri = 2 [json_name = "jwks_uri"]; * * @return The bytes for jwksUri. */ @@ -83,7 +84,8 @@ public interface AzureOpenIdConfigOrBuilder * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return A list containing the responseTypesSupported. */ @@ -96,7 +98,8 @@ public interface AzureOpenIdConfigOrBuilder * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @return The count of responseTypesSupported. */ @@ -109,7 +112,8 @@ public interface AzureOpenIdConfigOrBuilder * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the element to return. * @return The responseTypesSupported at the given index. @@ -123,7 +127,8 @@ public interface AzureOpenIdConfigOrBuilder * Supported response types. * * - * repeated string response_types_supported = 3; + * repeated string response_types_supported = 3 [json_name = "response_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the responseTypesSupported at the given index. @@ -137,7 +142,8 @@ public interface AzureOpenIdConfigOrBuilder * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return A list containing the subjectTypesSupported. */ @@ -150,7 +156,8 @@ public interface AzureOpenIdConfigOrBuilder * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @return The count of subjectTypesSupported. */ @@ -163,7 +170,8 @@ public interface AzureOpenIdConfigOrBuilder * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the element to return. * @return The subjectTypesSupported at the given index. @@ -177,7 +185,8 @@ public interface AzureOpenIdConfigOrBuilder * Supported subject types. * * - * repeated string subject_types_supported = 4; + * repeated string subject_types_supported = 4 [json_name = "subject_types_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the subjectTypesSupported at the given index. @@ -191,7 +200,9 @@ public interface AzureOpenIdConfigOrBuilder * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return A list containing the idTokenSigningAlgValuesSupported. */ @@ -204,7 +215,9 @@ public interface AzureOpenIdConfigOrBuilder * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @return The count of idTokenSigningAlgValuesSupported. */ @@ -217,7 +230,9 @@ public interface AzureOpenIdConfigOrBuilder * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the element to return. * @return The idTokenSigningAlgValuesSupported at the given index. @@ -231,7 +246,9 @@ public interface AzureOpenIdConfigOrBuilder * supported ID Token signing Algorithms. * * - * repeated string id_token_signing_alg_values_supported = 5; + * + * repeated string id_token_signing_alg_values_supported = 5 [json_name = "id_token_signing_alg_values_supported"]; + * * * @param index The index of the value to return. * @return The bytes of the idTokenSigningAlgValuesSupported at the given index. @@ -245,7 +262,7 @@ public interface AzureOpenIdConfigOrBuilder * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return A list containing the claimsSupported. */ @@ -258,7 +275,7 @@ public interface AzureOpenIdConfigOrBuilder * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @return The count of claimsSupported. */ @@ -271,7 +288,7 @@ public interface AzureOpenIdConfigOrBuilder * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the element to return. * @return The claimsSupported at the given index. @@ -285,7 +302,7 @@ public interface AzureOpenIdConfigOrBuilder * Supported claims. * * - * repeated string claims_supported = 6; + * repeated string claims_supported = 6 [json_name = "claims_supported"]; * * @param index The index of the value to return. * @return The bytes of the claimsSupported at the given index. @@ -299,7 +316,7 @@ public interface AzureOpenIdConfigOrBuilder * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return A list containing the grantTypes. */ @@ -312,7 +329,7 @@ public interface AzureOpenIdConfigOrBuilder * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @return The count of grantTypes. */ @@ -325,7 +342,7 @@ public interface AzureOpenIdConfigOrBuilder * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the element to return. * @return The grantTypes at the given index. @@ -339,7 +356,7 @@ public interface AzureOpenIdConfigOrBuilder * Supported grant types. * * - * repeated string grant_types = 7; + * repeated string grant_types = 7 [json_name = "grant_types"]; * * @param index The index of the value to return. * @return The bytes of the grantTypes at the given index. diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfig.java index a0c2daaa14f3..b095ef31986c 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfig.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureProxyConfig} */ +@java.lang.Deprecated public final class AzureProxyConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureProxyConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfigOrBuilder.java index c66c7268c845..420b7ff667ae 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureProxyConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureProxyConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureProxyConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureResourcesProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureResourcesProto.java index fb6cab3cb582..603e33698c4c 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureResourcesProto.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureResourcesProto.java @@ -166,7 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "d.v1\032\037google/api/field_behavior.proto\032\031g" + "oogle/api/resource.proto\0324google/cloud/g" + "kemulticloud/v1/common_resources.proto\032\037" - + "google/protobuf/timestamp.proto\032\026google/type/date.proto\"\325\014\n" + + "google/protobuf/timestamp.proto\032\026google/type/date.proto\"\327\014\n" + "\014AzureCluster\022\014\n" + "\004name\030\001 \001(\t\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022\031\n" @@ -216,14 +216,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013RECONCILING\020\003\022\014\n" + "\010STOPPING\020\004\022\t\n" + "\005ERROR\020\005\022\014\n" - + "\010DEGRADED\020\006:u\352Ar\n" - + ")gkemulticloud.googleapis.com/AzureCluster\022Eprojects/{project}/locations/{" - + "location}/azureClusters/{azure_cluster}\"\267\001\n" + + "\010DEGRADED\020\006:w\030\001\352Ar\n" + + ")gkemulticloud.googleapis.com/AzureCluster\022Eprojects/{project}/locations" + + "/{location}/azureClusters/{azure_cluster}\"\273\001\n" + "\026AzureClusterNetworking\022\037\n" + "\022virtual_network_id\030\001 \001(\tB\003\340A\002\022$\n" + "\027pod_address_cidr_blocks\030\002 \003(\tB\003\340A\002\022(\n" + "\033service_address_cidr_blocks\030\003 \003(\tB\003\340A\002\022,\n" - + "\037service_load_balancer_subnet_id\030\005 \001(\tB\003\340A\001\"\242\006\n" + + "\037service_load_balancer_subnet_id\030\005 \001(" + + "\tB\003\340A\001:\002\030\001\"\246\006\n" + "\021AzureControlPlane\022\024\n" + "\007version\030\001 \001(\tB\003\340A\002\022\026\n" + "\tsubnet_id\030\002 \001(\tB\003\340A\001\022\024\n" @@ -247,27 +248,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022endpoint_subnet_id\030\017 \001(\tB\003\340A\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"P\n" + + "\005value\030\002 \001(\t:\0028\001:\002\030\001\"T\n" + "\020ReplicaPlacement\022\026\n" + "\tsubnet_id\030\001 \001(\tB\003\340A\002\022$\n" - + "\027azure_availability_zone\030\002 \001(\tB\003\340A\002\"@\n" + + "\027azure_availability_zone\030\002 \001(\tB\003\340A\002:\002\030\001\"D\n" + "\020AzureProxyConfig\022\031\n" + "\021resource_group_id\030\001 \001(\t\022\021\n" - + "\tsecret_id\030\002 \001(\t\".\n" + + "\tsecret_id\030\002 \001(\t:\002\030\001\"2\n" + "\027AzureDatabaseEncryption\022\023\n" - + "\006key_id\030\003 \001(\tB\003\340A\002\"E\n" + + "\006key_id\030\003 \001(\tB\003\340A\002:\002\030\001\"I\n" + "\025AzureConfigEncryption\022\023\n" + "\006key_id\030\002 \001(\tB\003\340A\002\022\027\n\n" - + "public_key\030\003 \001(\tB\003\340A\001\"*\n" + + "public_key\030\003 \001(\tB\003\340A\001:\002\030\001\".\n" + "\021AzureDiskTemplate\022\025\n" - + "\010size_gib\030\001 \001(\005B\003\340A\001\"\205\004\n" + + "\010size_gib\030\001 \001(\005B\003\340A\001:\002\030\001\"\207\004\n" + "\013AzureClient\022\014\n" + "\004name\030\001 \001(\t\022\026\n" + "\ttenant_id\030\002 \001(\tB\003\340A\002\022\033\n" + "\016application_id\030\003 \001(\tB\003\340A\002\022\030\n" + "\013reconciling\030\t \001(\010B\003\340A\003\022U\n" - + "\013annotations\030\010 \003(\0132;.google" - + ".cloud.gkemulticloud.v1.AzureClient.AnnotationsEntryB\003\340A\001\022\034\n" + + "\013annotations\030\010 \003(\0132;.google.cloud.gke" + + "multicloud.v1.AzureClient.AnnotationsEntryB\003\340A\001\022\034\n" + "\017pem_certificate\030\007 \001(\tB\003\340A\003\022\020\n" + "\003uid\030\005 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" @@ -275,29 +276,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001:r\352Ao\n" - + "(gkemulticloud.googleapis.com/AzureClient\022Cprojec" - + "ts/{project}/locations/{location}/azureClients/{azure_client}\"\254\001\n" + + "\005value\030\002 \001(\t:\0028\001:t\030\001\352Ao\n" + + "(gkemulticloud.googleapis.com/AzureClient\022Cprojects/{proj" + + "ect}/locations/{location}/azureClients/{azure_client}\"\260\001\n" + "\022AzureAuthorization\022I\n" - + "\013admin_users\030\001 \003(\0132/.google.cloud" - + ".gkemulticloud.v1.AzureClusterUserB\003\340A\001\022K\n" + + "\013admin_users\030\001" + + " \003(\0132/.google.cloud.gkemulticloud.v1.AzureClusterUserB\003\340A\001\022K\n" + "\014admin_groups\030\002" - + " \003(\01320.google.cloud.gkemulticloud.v1.AzureClusterGroupB\003\340A\001\"R\n" + + " \003(\01320.google.cloud.gkemulticloud.v1.AzureClusterGroupB\003\340A\001:\002\030\001\"V\n" + "\033AzureServicesAuthentication\022\026\n" + "\ttenant_id\030\001 \001(\tB\003\340A\002\022\033\n" - + "\016application_id\030\002 \001(\tB\003\340A\002\")\n" + + "\016application_id\030\002 \001(\tB\003\340A\002:\002\030\001\"-\n" + "\020AzureClusterUser\022\025\n" - + "\010username\030\001 \001(\tB\003\340A\002\"\'\n" + + "\010username\030\001 \001(\tB\003\340A\002:\002\030\001\"+\n" + "\021AzureClusterGroup\022\022\n" - + "\005group\030\001 \001(\tB\003\340A\002\"\377\010\n\r" + + "\005group\030\001 \001(\tB\003\340A\002:\002\030\001\"\201\t\n\r" + "AzureNodePool\022\014\n" + "\004name\030\001 \001(\t\022\024\n" + "\007version\030\002 \001(\tB\003\340A\002\022C\n" - + "\006config\030\026 \001(\0132..goo" - + "gle.cloud.gkemulticloud.v1.AzureNodeConfigB\003\340A\002\022\026\n" + + "\006config\030\026 \001" + + "(\0132..google.cloud.gkemulticloud.v1.AzureNodeConfigB\003\340A\002\022\026\n" + "\tsubnet_id\030\003 \001(\tB\003\340A\002\022Q\n" - + "\013autoscaling\030\004" - + " \001(\01327.google.cloud.gkemulticloud.v1.AzureNodePoolAutoscalingB\003\340A\002\022F\n" + + "\013autoscaling\030\004 \001(\01327.google.cloud.gkem" + + "ulticloud.v1.AzureNodePoolAutoscalingB\003\340A\002\022F\n" + "\005state\030\006" + " \001(\01622.google.cloud.gkemulticloud.v1.AzureNodePool.StateB\003\340A\003\022\020\n" + "\003uid\030\010 \001(\tB\003\340A\003\022\030\n" @@ -308,15 +309,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\014\n" + "\004etag\030\014 \001(\t\022W\n" + "\013annotations\030\r" - + " \003(\0132=.google.cloud.gkemulticlo" - + "ud.v1.AzureNodePool.AnnotationsEntryB\003\340A\001\022R\n" - + "\023max_pods_constraint\030\025 \001(\01320.google." - + "cloud.gkemulticloud.v1.MaxPodsConstraintB\003\340A\002\022$\n" + + " \003(\0132=.google.cloud.gke" + + "multicloud.v1.AzureNodePool.AnnotationsEntryB\003\340A\001\022R\n" + + "\023max_pods_constraint\030\025 \001(\01320" + + ".google.cloud.gkemulticloud.v1.MaxPodsConstraintB\003\340A\002\022$\n" + "\027azure_availability_zone\030\027 \001(\tB\003\340A\001\022F\n" - + "\006errors\030\035" - + " \003(\01321.google.cloud.gkemulticloud.v1.AzureNodePoolErrorB\003\340A\003\022K\n\n" - + "management\030\036" - + " \001(\01322.google.cloud.gkemulticloud.v1.AzureNodeManagementB\003\340A\001\0322\n" + + "\006errors\030\035 \003(\01321.google.clo" + + "ud.gkemulticloud.v1.AzureNodePoolErrorB\003\340A\003\022K\n\n" + + "management\030\036 \001(\01322.google.cloud.g" + + "kemulticloud.v1.AzureNodeManagementB\003\340A\001\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"u\n" @@ -327,73 +328,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013RECONCILING\020\003\022\014\n" + "\010STOPPING\020\004\022\t\n" + "\005ERROR\020\005\022\014\n" - + "\010DEGRADED\020\006:\230\001\352A\224\001\n" - + "*gkemulticloud.googleapis.com/AzureNodePool\022fprojects/{project}/locat" - + "ions/{location}/azureClusters/{azure_cluster}/azureNodePools/{azure_node_pool}\"/\n" + + "\010DEGRADED\020\006:\232\001\030\001\352A\224\001\n" + + "*gkemulticloud.googleapis.com/AzureNodePool\022fprojects/{proj" + + "ect}/locations/{location}/azureClusters/" + + "{azure_cluster}/azureNodePools/{azure_node_pool}\"3\n" + "\023AzureNodeManagement\022\030\n" - + "\013auto_repair\030\001 \001(\010B\003\340A\001\"\257\005\n" + + "\013auto_repair\030\001 \001(\010B\003\340A\001:\002\030\001\"\263\005\n" + "\017AzureNodeConfig\022\024\n" + "\007vm_size\030\001 \001(\tB\003\340A\001\022J\n" - + "\013root_volume\030\002 \001(\01320.google." - + "cloud.gkemulticloud.v1.AzureDiskTemplateB\003\340A\001\022K\n" - + "\004tags\030\003 \003(\01328.google.cloud.gkemu" - + "lticloud.v1.AzureNodeConfig.TagsEntryB\003\340A\001\022\027\n\n" + + "\013root_volume\030\002" + + " \001(\01320.google.cloud.gkemulticloud.v1.AzureDiskTemplateB\003\340A\001\022K\n" + + "\004tags\030\003 \003(\01328.goog" + + "le.cloud.gkemulticloud.v1.AzureNodeConfig.TagsEntryB\003\340A\001\022\027\n\n" + "image_type\030\010 \001(\tB\003\340A\001\022F\n\n" + "ssh_config\030\007" + " \001(\0132-.google.cloud.gkemulticloud.v1.AzureSshConfigB\003\340A\002\022J\n" - + "\014proxy_config\030\t \001(" - + "\0132/.google.cloud.gkemulticloud.v1.AzureProxyConfigB\003\340A\001\022T\n" - + "\021config_encryption\030\014 \001" - + "(\01324.google.cloud.gkemulticloud.v1.AzureConfigEncryptionB\003\340A\001\022=\n" + + "\014proxy_config\030\t" + + " \001(\0132/.google.cloud.gkemulticloud.v1.AzureProxyConfigB\003\340A\001\022T\n" + + "\021config_encryption\030\014" + + " \001(\01324.google.cloud.gkemulticloud.v1.AzureConfigEncryptionB\003\340A\001\022=\n" + "\006taints\030\n" + " \003(\0132(.google.cloud.gkemulticloud.v1.NodeTaintB\003\340A\001\022O\n" - + "\006labels\030\013 \003(\0132:.google.cloud.gkem" - + "ulticloud.v1.AzureNodeConfig.LabelsEntryB\003\340A\001\032+\n" + + "\006labels\030\013 \003(\0132:.goo" + + "gle.cloud.gkemulticloud.v1.AzureNodeConfig.LabelsEntryB\003\340A\001\032+\n" + "\tTagsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" - + "\005value\030\002 \001(\t:\0028\001\"T\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\002\030\001\"X\n" + "\030AzureNodePoolAutoscaling\022\033\n" + "\016min_node_count\030\001 \001(\005B\003\340A\002\022\033\n" - + "\016max_node_count\030\002 \001(\005B\003\340A\002\"\326\001\n" + + "\016max_node_count\030\002 \001(\005B\003\340A\002:\002\030\001\"\335\002\n" + "\021AzureOpenIdConfig\022\016\n" - + "\006issuer\030\001 \001(\t\022\020\n" - + "\010jwks_uri\030\002 \001(\t\022 \n" - + "\030response_types_supported\030\003 \003(\t\022\037\n" - + "\027subject_types_supported\030\004 \003(\t\022-\n" - + "%id_token_signing_alg_values_supported\030\005 \003(\t\022\030\n" - + "\020claims_supported\030\006 \003(\t\022\023\n" - + "\013grant_types\030\007 \003(\t\"D\n" + + "\006issuer\030\001 \001(\t\022\032\n" + + "\010jwks_uri\030\002 \001(\tR\010jwks_uri\022:\n" + + "\030response_types_supported\030\003 \003(\tR\030response_types_supported\0228\n" + + "\027subject_types_supported\030\004 \003(\tR\027subject_types_supported\022T\n" + + "%id_token_signing_alg_values_supported\030\005 \003(" + + "\tR%id_token_signing_alg_values_supported\022*\n" + + "\020claims_supported\030\006 \003(\tR\020claims_supported\022 \n" + + "\013grant_types\030\007 \003(\tR\013grant_types:\002\030\001\"H\n" + "\020AzureJsonWebKeys\0220\n" - + "\004keys\030\001 \003(\0132\".google.cloud.gkemulticloud.v1.Jwk\"\376\001\n" + + "\004keys\030\001" + + " \003(\0132\".google.cloud.gkemulticloud.v1.Jwk:\002\030\001\"\200\002\n" + "\021AzureServerConfig\022\014\n" + "\004name\030\001 \001(\t\022J\n" + "\016valid_versions\030\002" + " \003(\01322.google.cloud.gkemulticloud.v1.AzureK8sVersionInfo\022\037\n" - + "\027supported_azure_regions\030\003 \003(\t:n\352Ak\n" - + ".gkemulticloud.googleapis.com/AzureServerConfig\0229projects/{" - + "project}/locations/{location}/azureServerConfig\"\266\001\n" + + "\027supported_azure_regions\030\003 \003(\t:p\030\001\352Ak\n" + + ".gkemulticloud.googleapis.com/AzureServerConfig\0229project" + + "s/{project}/locations/{location}/azureServerConfig\"\272\001\n" + "\023AzureK8sVersionInfo\022\017\n" + "\007version\030\001 \001(\t\022\024\n" + "\007enabled\030\003 \001(\010B\003\340A\001\022\030\n" + "\013end_of_life\030\004 \001(\010B\003\340A\001\0220\n" + "\020end_of_life_date\030\005 \001(\0132\021.google.type.DateB\003\340A\001\022,\n" - + "\014release_date\030\006 \001(\0132\021.google.type.DateB\003\340A\001\"-\n" + + "\014release_date\030\006" + + " \001(\0132\021.google.type.DateB\003\340A\001:\002\030\001\"1\n" + "\016AzureSshConfig\022\033\n" - + "\016authorized_key\030\001 \001(\tB\003\340A\002\"y\n" + + "\016authorized_key\030\001 \001(\tB\003\340A\002:\002\030\001\"}\n" + "\025AzureClusterResources\022&\n" + "\031network_security_group_id\030\001 \001(\tB\003\340A\003\0228\n" - + "+control_plane_application_security_group_id\030\002 \001(\tB\003\340A\003\"$\n" + + "+control_plane_application_security_group_id\030\002 \001(" + + "\tB\003\340A\003:\002\030\001\"(\n" + "\021AzureClusterError\022\017\n" - + "\007message\030\001 \001(\t\"%\n" + + "\007message\030\001 \001(\t:\002\030\001\")\n" + "\022AzureNodePoolError\022\017\n" - + "\007message\030\001 \001(\tB\346\001\n" - + "!com.google.cloud.gkemulticloud.v1B\023AzureResourcesProtoP\001ZGcloud.google.com/g" - + "o/gkemulticloud/apiv1/gkemulticloudpb;gk" - + "emulticloudpb\252\002\035Google.Cloud.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + + "\007message\030\001 \001(\t:\002\030\001B\346\001\n" + + "!com.google.cloud.gkemulticloud.v1B\023AzureResourcesProt" + + "oP\001ZGcloud.google.com/go/gkemulticloud/a" + + "piv1/gkemulticloudpb;gkemulticloudpb\252\002\035G" + + "oogle.Cloud.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + " Google::Cloud::GkeMultiCloud::V1b\006proto3" }; descriptor = diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfig.java index 7eb163cec5c4..cd9775847b67 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfig.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureServerConfig} */ +@java.lang.Deprecated public final class AzureServerConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureServerConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfigOrBuilder.java index 4751c10b95d2..859835e21f41 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServerConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureServerConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureServerConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServiceProto.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServiceProto.java index 06bb96bc1428..2be163fbb5ed 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServiceProto.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServiceProto.java @@ -141,109 +141,110 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle/cloud/gkemulticloud/v1/azure_resources.proto\0324google/cloud/gkemulticloud/v" + "1/common_resources.proto\032#google/longrun" + "ning/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\335\001\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\341\001\n" + "\031CreateAzureClusterRequest\022A\n" + "\006parent\030\001 \001(" + "\tB1\340A\002\372A+\022)gkemulticloud.googleapis.com/AzureCluster\022G\n\r" + "azure_cluster\030\002 \001(\0132+." + "google.cloud.gkemulticloud.v1.AzureClusterB\003\340A\002\022\035\n" + "\020azure_cluster_id\030\003 \001(\tB\003\340A\002\022\025\n\r" - + "validate_only\030\004 \001(\010\"\261\001\n" + + "validate_only\030\004 \001(\010:\002\030\001\"\265\001\n" + "\031UpdateAzureClusterRequest\022G\n\r" - + "azure_cluster\030\001 \001(\0132+.goo" - + "gle.cloud.gkemulticloud.v1.AzureClusterB\003\340A\002\022\025\n\r" + + "azure_cluster\030\001 \001(\0132+" + + ".google.cloud.gkemulticloud.v1.AzureClusterB\003\340A\002\022\025\n\r" + "validate_only\030\002 \001(\010\0224\n" - + "\013update_mask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"Y\n" + + "\013update_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002:\002\030\001\"]\n" + "\026GetAzureClusterRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")gkemulticloud.googleapis.com/AzureCluster\"\204\001\n" + + ")gkemulticloud.googleapis.com/AzureCluster:\002\030\001\"\210\001\n" + "\030ListAzureClustersRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\340A\002\372A+\022)gkemulticloud.googleapis.com/AzureCluster\022\021\n" + + "\006parent\030\001 \001(\tB1\340A\002\372A+\022)g" + + "kemulticloud.googleapis.com/AzureCluster\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"y\n" + + "page_token\030\003 \001(\t:\002\030\001\"}\n" + "\031ListAzureClustersResponse\022C\n" - + "\016azure_clusters\030\001 \003(\013" - + "2+.google.cloud.gkemulticloud.v1.AzureCluster\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\264\001\n" + + "\016azure_clusters\030\001" + + " \003(\0132+.google.cloud.gkemulticloud.v1.AzureCluster\022\027\n" + + "\017next_page_token\030\002 \001(\t:\002\030\001\"\270\001\n" + "\031DeleteAzureClusterRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")gkemulticloud.googleapis.com/AzureCluster\022\025\n\r" + "allow_missing\030\002 \001(\010\022\025\n\r" + "validate_only\030\003 \001(\010\022\014\n" + "\004etag\030\004 \001(\t\022\032\n\r" - + "ignore_errors\030\005 \001(\010B\003\340A\001\"\344\001\n" + + "ignore_errors\030\005 \001(\010B\003\340A\001:\002\030\001\"\350\001\n" + "\032CreateAzureNodePoolRequest\022B\n" + "\006parent\030\001 \001(" + "\tB2\340A\002\372A,\022*gkemulticloud.googleapis.com/AzureNodePool\022J\n" - + "\017azure_node_pool\030\002" - + " \001(\0132,.google.cloud.gkemulticloud.v1.AzureNodePoolB\003\340A\002\022\037\n" + + "\017azure_node_pool\030\002 \001(" + + "\0132,.google.cloud.gkemulticloud.v1.AzureNodePoolB\003\340A\002\022\037\n" + "\022azure_node_pool_id\030\003 \001(\tB\003\340A\002\022\025\n\r" - + "validate_only\030\004 \001(\010\"\265\001\n" + + "validate_only\030\004 \001(\010:\002\030\001\"\271\001\n" + "\032UpdateAzureNodePoolRequest\022J\n" + "\017azure_node_pool\030\001" + " \001(\0132,.google.cloud.gkemulticloud.v1.AzureNodePoolB\003\340A\002\022\025\n\r" + "validate_only\030\002 \001(\010\0224\n" - + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"[\n" + + "\013update_mask\030\003" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002:\002\030\001\"_\n" + "\027GetAzureNodePoolRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*gkemulticloud.googleapis.com/AzureNodePool\"\206\001\n" + + "*gkemulticloud.googleapis.com/AzureNodePool:\002\030\001\"\212\001\n" + "\031ListAzureNodePoolsRequest\022B\n" + "\006parent\030\001 \001(" + "\tB2\340A\002\372A,\022*gkemulticloud.googleapis.com/AzureNodePool\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"}\n" + + "page_token\030\003 \001(\t:\002\030\001\"\201\001\n" + "\032ListAzureNodePoolsResponse\022F\n" - + "\020azure_node_pools\030\001 \003(\0132,.goo" - + "gle.cloud.gkemulticloud.v1.AzureNodePool\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\266\001\n" + + "\020azure_node_pools\030\001 \003(\0132,.go" + + "ogle.cloud.gkemulticloud.v1.AzureNodePool\022\027\n" + + "\017next_page_token\030\002 \001(\t:\002\030\001\"\272\001\n" + "\032DeleteAzureNodePoolRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*gkemulticloud.googleapis.com/AzureNodePool\022\025\n\r" + "validate_only\030\002 \001(\010\022\025\n\r" + "allow_missing\030\003 \001(\010\022\014\n" + "\004etag\030\004 \001(\t\022\032\n\r" - + "ignore_errors\030\005 \001(\010B\003\340A\001\"g\n" + + "ignore_errors\030\005 \001(\010B\003\340A\001:\002\030\001\"k\n" + "\033GetAzureOpenIdConfigRequest\022H\n\r" + "azure_cluster\030\001 \001(\tB1\340A\002\372A+\n" - + ")gkemulticloud.googleapis.com/AzureCluster\"f\n" + + ")gkemulticloud.googleapis.com/AzureCluster:\002\030\001\"j\n" + "\032GetAzureJsonWebKeysRequest\022H\n\r" + "azure_cluster\030\001 \001(\tB1\340A\002\372A+\n" - + ")gkemulticloud.googleapis.com/AzureCluster\"c\n" + + ")gkemulticloud.googleapis.com/AzureCluster:\002\030\001\"g\n" + "\033GetAzureServerConfigRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" - + ".gkemulticloud.googleapis.com/AzureServerConfig\"\330\001\n" + + ".gkemulticloud.googleapis.com/AzureServerConfig:\002\030\001\"\334\001\n" + "\030CreateAzureClientRequest\022@\n" + "\006parent\030\001 \001(" + "\tB0\340A\002\372A*\022(gkemulticloud.googleapis.com/AzureClient\022E\n" - + "\014azure_client\030\002 \001(\0132*." - + "google.cloud.gkemulticloud.v1.AzureClientB\003\340A\002\022\034\n" + + "\014azure_client\030\002" + + " \001(\0132*.google.cloud.gkemulticloud.v1.AzureClientB\003\340A\002\022\034\n" + "\017azure_client_id\030\004 \001(\tB\003\340A\002\022\025\n\r" - + "validate_only\030\003 \001(\010\"W\n" + + "validate_only\030\003 \001(\010:\002\030\001\"[\n" + "\025GetAzureClientRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(gkemulticloud.googleapis.com/AzureClient\"\202\001\n" + + "(gkemulticloud.googleapis.com/AzureClient:\002\030\001\"\206\001\n" + "\027ListAzureClientsRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A*" - + "\022(gkemulticloud.googleapis.com/AzureClient\022\021\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(gkemulticloud.googleapis.com/AzureClient\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"v\n" + + "page_token\030\003 \001(\t:\002\030\001\"z\n" + "\030ListAzureClientsResponse\022A\n\r" + "azure_clients\030\001 \003(\0132*.google.cloud.gkemulticloud.v1.AzureClient\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\210\001\n" + + "\017next_page_token\030\002 \001(\t:\002\030\001\"\214\001\n" + "\030DeleteAzureClientRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(gkemulticloud.googleapis.com/AzureClient\022\025\n\r" - + "allow_missing\030\002 \001(\010\022\025\n" - + "\r" - + "validate_only\030\003 \001(\010\"k\n" + + "allow_missing\030\002 \001(\010\022\025\n\r" + + "validate_only\030\003 \001(\010:\002\030\001\"o\n" + "\037GenerateAzureAccessTokenRequest\022H\n\r" + "azure_cluster\030\001 \001(\tB1\340A\002\372A+\n" - + ")gkemulticloud.googleapis.com/AzureCluster\"w\n" + + ")gkemulticloud.googleapis.com/AzureCluster:\002\030\001\"{\n" + " GenerateAzureAccessTokenResponse\022\031\n" + "\014access_token\030\001 \001(\tB\003\340A\003\0228\n" + "\017expiration_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\334\002\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\002\030\001\"\340\002\n" + "%GenerateAzureClusterAgentTokenRequest\022H\n\r" + "azure_cluster\030\001 \001(\tB1\340A\002\372A+\n" + ")gkemulticloud.googleapis.com/AzureCluster\022\032\n\r" @@ -256,106 +257,108 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005scope\030\010 \001(\tB\003\340A\001\022!\n" + "\024requested_token_type\030\t \001(\tB\003\340A\001\022\024\n" + "\007options\030\n" - + " \001(\tB\003\340A\001\"f\n" - + "&GenerateAzureClusterAgentTokenResponse\022\024\n" - + "\014access_token\030\001 \001(\t\022\022\n\n" - + "expires_in\030\002 \001(\005\022\022\n\n" - + "token_type\030\003 \001(\t2\314#\n\r" - + "AzureClusters\022\375\001\n" - + "\021CreateAzureClient\0227.google.cloud" - + ".gkemulticloud.v1.CreateAzureClientRequest\032\035.google.longrunning.Operation\"\217\001\312A" - + " \n" - + "\013AzureClient\022\021OperationMetadata\332A#parent" - + ",azure_client,azure_client_id\202\323\344\223\002@\"0/v1" - + "/{parent=projects/*/locations/*}/azureClients:\014azure_client\022\263\001\n" - + "\016GetAzureClient\0224.google.cloud.gkemulticloud.v1.GetAzureC" - + "lientRequest\032*.google.cloud.gkemulticlou" - + "d.v1.AzureClient\"?\332A\004name\202\323\344\223\0022\0220/v1/{na" - + "me=projects/*/locations/*/azureClients/*}\022\306\001\n" - + "\020ListAzureClients\0226.google.cloud.gkemulticloud.v1.ListAzureClientsRequest\0327" - + ".google.cloud.gkemulticloud.v1.ListAzure" - + "ClientsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{p" - + "arent=projects/*/locations/*}/azureClients\022\331\001\n" - + "\021DeleteAzureClient\0227.google.cloud." - + "gkemulticloud.v1.DeleteAzureClientRequest\032\035.google.longrunning.Operation\"l\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332" - + "A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/azureClients/*}\022\204\002\n" - + "\022CreateAzureCluster\0228.google.cloud.gkemulticloud.v1.Cr" - + "eateAzureClusterRequest\032\035.google.longrunning.Operation\"\224\001\312A!\n" - + "\014AzureCluster\022\021OperationMetadata\332A%parent,azure_cluster,azu" - + "re_cluster_id\202\323\344\223\002B\"1/v1/{parent=projects/*/locations/*}/azureClusters:\r" - + "azure_cluster\022\206\002\n" - + "\022UpdateAzureCluster\0228.google.cloud.gkemulticloud.v1.UpdateAzureClusterR" - + "equest\032\035.google.longrunning.Operation\"\226\001\312A!\n" - + "\014AzureCluster\022\021OperationMetadata\332A\031a" - + "zure_cluster,update_mask\202\323\344\223\002P2?/v1/{azu" - + "re_cluster.name=projects/*/locations/*/azureClusters/*}:\r" - + "azure_cluster\022\267\001\n" - + "\017GetAzureCluster\0225.google.cloud.gkemulticloud." - + "v1.GetAzureClusterRequest\032+.google.cloud" - + ".gkemulticloud.v1.AzureCluster\"@\332A\004name\202" - + "\323\344\223\0023\0221/v1/{name=projects/*/locations/*/azureClusters/*}\022\312\001\n" - + "\021ListAzureClusters\0227.google.cloud.gkemulticloud.v1.ListAzure" - + "ClustersRequest\0328.google.cloud.gkemultic" - + "loud.v1.ListAzureClustersResponse\"B\332A\006pa" - + "rent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*}/azureClusters\022\334\001\n" + + " \001(\tB\003\340A\001:\002\030\001\"\220\001\n" + + "&GenerateAzureClusterAgentTokenResponse\022\"\n" + + "\014access_token\030\001 \001(\tR\014access_token\022\036\n\n" + + "expires_in\030\002 \001(\005R\n" + + "expires_in\022\036\n\n" + + "token_type\030\003 \001(\tR\n" + + "token_type:\002\030\0012\211$\n\r" + + "AzureClusters\022\200\002\n" + + "\021CreateAzureClient\0227.google.cloud.gkemulticloud.v1.Create" + + "AzureClientRequest\032\035.google.longrunning.Operation\"\222\001\210\002\001\312A \n" + + "\013AzureClient\022\021OperationMetadata\332A#parent,azure_client,azure_c" + + "lient_id\202\323\344\223\002@\"0/v1/{parent=projects/*/l" + + "ocations/*}/azureClients:\014azure_client\022\266\001\n" + + "\016GetAzureClient\0224.google.cloud.gkemult" + + "icloud.v1.GetAzureClientRequest\032*.google" + + ".cloud.gkemulticloud.v1.AzureClient\"B\210\002\001" + + "\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/azureClients/*}\022\311\001\n" + + "\020ListAzureClients\0226.google.cloud.gkemulticloud.v1.Lis" + + "tAzureClientsRequest\0327.google.cloud.gkem" + + "ulticloud.v1.ListAzureClientsResponse\"D\210" + + "\002\001\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/azureClients\022\334\001\n" + + "\021DeleteAzureClient\0227.google.cloud.gkemulticloud.v" + + "1.DeleteAzureClientRequest\032\035.google.longrunning.Operation\"o\210\002\001\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0022" + + "*0/v1/{name=projects/*/locations/*/azureClients/*}\022\207\002\n" + + "\022CreateAzureCluster\0228.google.cloud.gkemulticloud.v1.CreateAzureClu" + + "sterRequest\032\035.google.longrunning.Operation\"\227\001\210\002\001\312A!\n" + + "\014AzureCluster\022\021OperationMetadata\332A%parent,azure_cluster,azure_cluste" + + "r_id\202\323\344\223\002B\"1/v1/{parent=projects/*/locations/*}/azureClusters:\r" + + "azure_cluster\022\211\002\n" + + "\022UpdateAzureCluster\0228.google.cloud.gkemu" + + "lticloud.v1.UpdateAzureClusterRequest\032\035.google.longrunning.Operation\"\231\001\210\002\001\312A!\n" + + "\014AzureCluster\022\021OperationMetadata\332A\031azure_c" + + "luster,update_mask\202\323\344\223\002P2?/v1/{azure_clu" + + "ster.name=projects/*/locations/*/azureClusters/*}:\r" + + "azure_cluster\022\272\001\n" + + "\017GetAzureCluster\0225.google.cloud.gkemulticloud.v1.Get" + + "AzureClusterRequest\032+.google.cloud.gkemu" + + "lticloud.v1.AzureCluster\"C\210\002\001\332A\004name\202\323\344\223" + + "\0023\0221/v1/{name=projects/*/locations/*/azureClusters/*}\022\315\001\n" + + "\021ListAzureClusters\0227.google.cloud.gkemulticloud.v1.ListAzureClu" + + "stersRequest\0328.google.cloud.gkemulticlou" + + "d.v1.ListAzureClustersResponse\"E\210\002\001\332A\006pa" + + "rent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*}/azureClusters\022\337\001\n" + "\022DeleteAzureCluster\0228.google.cloud.gkemulticloud.v1.Del" - + "eteAzureClusterRequest\032\035.google.longrunning.Operation\"m\312A*\n" - + "\025google.protobuf.Empt" - + "y\022\021OperationMetadata\332A\004name\202\323\344\223\0023*1/v1/{" - + "name=projects/*/locations/*/azureClusters/*}\022\223\002\n" - + "\036GenerateAzureClusterAgentToken\022D.google.cloud.gkemulticloud.v1.Generate" - + "AzureClusterAgentTokenRequest\032E.google.cloud.gkemulticloud.v1.GenerateAzureClust" - + "erAgentTokenResponse\"d\202\323\344\223\002^\"Y/v1/{azure" - + "_cluster=projects/*/locations/*/azureClu" - + "sters/*}:generateAzureClusterAgentToken:\001*\022\370\001\n" - + "\030GenerateAzureAccessToken\022>.google.cloud.gkemulticloud.v1.GenerateAzureAcc" - + "essTokenRequest\032?.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse" - + "\"[\202\323\344\223\002U\022S/v1/{azure_cluster=projects/*/" - + "locations/*/azureClusters/*}:generateAzureAccessToken\022\236\002\n" - + "\023CreateAzureNodePool\0229.google.cloud.gkemulticloud.v1.CreateAzur" - + "eNodePoolRequest\032\035.google.longrunning.Operation\"\254\001\312A\"\n\r" - + "AzureNodePool\022\021OperationMetadata\332A)parent,azure_node_pool,azure_n" - + "ode_pool_id\202\323\344\223\002U\"B/v1/{parent=projects/" - + "*/locations/*/azureClusters/*}/azureNodePools:\017azure_node_pool\022\240\002\n" - + "\023UpdateAzureNodePool\0229.google.cloud.gkemulticloud.v1.U" - + "pdateAzureNodePoolRequest\032\035.google.longrunning.Operation\"\256\001\312A\"\n\r" - + "AzureNodePool\022\021OperationMetadata\332A\033azure_node_pool,updat" - + "e_mask\202\323\344\223\002e2R/v1/{azure_node_pool.name=" - + "projects/*/locations/*/azureClusters/*/azureNodePools/*}:\017azure_node_pool\022\313\001\n" - + "\020GetAzureNodePool\0226.google.cloud.gkemulticl" - + "oud.v1.GetAzureNodePoolRequest\032,.google." - + "cloud.gkemulticloud.v1.AzureNodePool\"Q\332A" - + "\004name\202\323\344\223\002D\022B/v1/{name=projects/*/locati" - + "ons/*/azureClusters/*/azureNodePools/*}\022\336\001\n" - + "\022ListAzureNodePools\0228.google.cloud.gkemulticloud.v1.ListAzureNodePoolsRequest" - + "\0329.google.cloud.gkemulticloud.v1.ListAzu" - + "reNodePoolsResponse\"S\332A\006parent\202\323\344\223\002D\022B/v" - + "1/{parent=projects/*/locations/*/azureClusters/*}/azureNodePools\022\357\001\n" - + "\023DeleteAzureNodePool\0229.google.cloud.gkemulticloud.v1" - + ".DeleteAzureNodePoolRequest\032\035.google.longrunning.Operation\"~\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002D*B" - + "/v1/{name=projects/*/locations/*/azureClusters/*/azureNodePools/*}\022\371\001\n" - + "\024GetAzureOpenIdConfig\022:.google.cloud.gkemulticloud" - + ".v1.GetAzureOpenIdConfigRequest\0320.google" - + ".cloud.gkemulticloud.v1.AzureOpenIdConfig\"s\332A\r" - + "azure_cluster\202\323\344\223\002]\022[/v1/{azure_cl" - + "uster=projects/*/locations/*/azureCluste" - + "rs/*}/.well-known/openid-configuration\022\332\001\n" - + "\023GetAzureJsonWebKeys\0229.google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysReques" - + "t\032/.google.cloud.gkemulticloud.v1.AzureJsonWebKeys\"W\332A\r" - + "azure_cluster\202\323\344\223\002A\022?/v1/" - + "{azure_cluster=projects/*/locations/*/azureClusters/*}/jwks\022\310\001\n" - + "\024GetAzureServerConfig\022:.google.cloud.gkemulticloud.v1.Get" - + "AzureServerConfigRequest\0320.google.cloud." - + "gkemulticloud.v1.AzureServerConfig\"B\332A\004n" - + "ame\202\323\344\223\0025\0223/v1/{name=projects/*/location" - + "s/*/azureServerConfig}\032P\312A\034gkemulticloud" - + ".googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\344\001\n" - + "!com.google.cloud.gkemulticloud.v1B\021AzureServiceProt" - + "oP\001ZGcloud.google.com/go/gkemulticloud/a" - + "piv1/gkemulticloudpb;gkemulticloudpb\252\002\035G" - + "oogle.Cloud.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + + "eteAzureClusterRequest\032\035.google.longrunning.Operation\"p\210\002\001\312A*\n" + + "\025google.protobuf.E" + + "mpty\022\021OperationMetadata\332A\004name\202\323\344\223\0023*1/v" + + "1/{name=projects/*/locations/*/azureClusters/*}\022\226\002\n" + + "\036GenerateAzureClusterAgentToken\022D.google.cloud.gkemulticloud.v1.Gener" + + "ateAzureClusterAgentTokenRequest\032E.google.cloud.gkemulticloud.v1.GenerateAzureCl" + + "usterAgentTokenResponse\"g\210\002\001\202\323\344\223\002^\"Y/v1/" + + "{azure_cluster=projects/*/locations/*/az" + + "ureClusters/*}:generateAzureClusterAgentToken:\001*\022\373\001\n" + + "\030GenerateAzureAccessToken\022>.google.cloud.gkemulticloud.v1.GenerateAz" + + "ureAccessTokenRequest\032?.google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRe" + + "sponse\"^\210\002\001\202\323\344\223\002U\022S/v1/{azure_cluster=pr" + + "ojects/*/locations/*/azureClusters/*}:generateAzureAccessToken\022\241\002\n" + + "\023CreateAzureNodePool\0229.google.cloud.gkemulticloud.v1.C" + + "reateAzureNodePoolRequest\032\035.google.longrunning.Operation\"\257\001\210\002\001\312A\"\n\r" + + "AzureNodePool\022\021OperationMetadata\332A)parent,azure_node_" + + "pool,azure_node_pool_id\202\323\344\223\002U\"B/v1/{pare" + + "nt=projects/*/locations/*/azureClusters/*}/azureNodePools:\017azure_node_pool\022\243\002\n" + + "\023UpdateAzureNodePool\0229.google.cloud.gkemul" + + "ticloud.v1.UpdateAzureNodePoolRequest\032\035.google.longrunning.Operation\"\261\001\210\002\001\312A\"\n\r" + + "AzureNodePool\022\021OperationMetadata\332A\033azure_" + + "node_pool,update_mask\202\323\344\223\002e2R/v1/{azure_" + + "node_pool.name=projects/*/locations/*/az" + + "ureClusters/*/azureNodePools/*}:\017azure_node_pool\022\316\001\n" + + "\020GetAzureNodePool\0226.google.cloud.gkemulticloud.v1.GetAzureNodePoolRe" + + "quest\032,.google.cloud.gkemulticloud.v1.Az" + + "ureNodePool\"T\210\002\001\332A\004name\202\323\344\223\002D\022B/v1/{name" + + "=projects/*/locations/*/azureClusters/*/azureNodePools/*}\022\341\001\n" + + "\022ListAzureNodePools\0228.google.cloud.gkemulticloud.v1.ListAzu" + + "reNodePoolsRequest\0329.google.cloud.gkemul" + + "ticloud.v1.ListAzureNodePoolsResponse\"V\210" + + "\002\001\332A\006parent\202\323\344\223\002D\022B/v1/{parent=projects/" + + "*/locations/*/azureClusters/*}/azureNodePools\022\363\001\n" + + "\023DeleteAzureNodePool\0229.google.cloud.gkemulticloud.v1.DeleteAzureNodePoo" + + "lRequest\032\035.google.longrunning.Operation\"\201\001\210\002\001\312A*\n" + + "\025google.protobuf.Empty\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\002D*B/v1/{name=proje" + + "cts/*/locations/*/azureClusters/*/azureNodePools/*}\022\374\001\n" + + "\024GetAzureOpenIdConfig\022:.google.cloud.gkemulticloud.v1.GetAzureOpe" + + "nIdConfigRequest\0320.google.cloud.gkemulticloud.v1.AzureOpenIdConfig\"v\210\002\001\332A\r" + + "azure_cluster\202\323\344\223\002]\022[/v1/{azure_cluster=projec" + + "ts/*/locations/*/azureClusters/*}/.well-known/openid-configuration\022\335\001\n" + + "\023GetAzureJsonWebKeys\0229.google.cloud.gkemulticloud." + + "v1.GetAzureJsonWebKeysRequest\032/.google.c" + + "loud.gkemulticloud.v1.AzureJsonWebKeys\"Z\210\002\001\332A\r" + + "azure_cluster\202\323\344\223\002A\022?/v1/{azure_cl" + + "uster=projects/*/locations/*/azureClusters/*}/jwks\022\313\001\n" + + "\024GetAzureServerConfig\022:.google.cloud.gkemulticloud.v1.GetAzureServ" + + "erConfigRequest\0320.google.cloud.gkemultic" + + "loud.v1.AzureServerConfig\"E\210\002\001\332A\004name\202\323\344" + + "\223\0025\0223/v1/{name=projects/*/locations/*/az" + + "ureServerConfig}\032S\210\002\001\312A\034gkemulticloud.go" + + "ogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\344\001\n" + + "!com.google.cloud.gkemulticloud.v1B\021AzureServiceProtoP\001" + + "ZGcloud.google.com/go/gkemulticloud/apiv" + + "1/gkemulticloudpb;gkemulticloudpb\252\002\035Goog" + + "le.Cloud.GkeMultiCloud.V1\312\002\035Google\\Cloud\\GkeMultiCloud\\V1\352\002" + " Google::Cloud::GkeMultiCloud::V1b\006proto3" }; descriptor = diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServicesAuthentication.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServicesAuthentication.java index a550fff45b65..491749eedd21 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServicesAuthentication.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServicesAuthentication.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureServicesAuthentication} */ +@java.lang.Deprecated public final class AzureServicesAuthentication extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureServicesAuthentication) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServicesAuthenticationOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServicesAuthenticationOrBuilder.java index 2ae5d6260735..1ca1bc25e302 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServicesAuthenticationOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureServicesAuthenticationOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureServicesAuthenticationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureServicesAuthentication) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfig.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfig.java index d70129ed25a8..228a7bb262e6 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfig.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfig.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.AzureSshConfig} */ +@java.lang.Deprecated public final class AzureSshConfig extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.AzureSshConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfigOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfigOrBuilder.java index a13afe2547d9..4b27552b8197 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfigOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/AzureSshConfigOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface AzureSshConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.AzureSshConfig) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequest.java index d260bdac3db4..1dacd9166df8 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.CreateAwsClusterRequest} */ +@java.lang.Deprecated public final class CreateAwsClusterRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.CreateAwsClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequestOrBuilder.java index 09cd4bf127e1..1715a0f88c70 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsClusterRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface CreateAwsClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.CreateAwsClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequest.java index 87250d3043eb..d94893127684 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest} */ +@java.lang.Deprecated public final class CreateAwsNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequestOrBuilder.java index bc05f6841d64..bf0595d224b5 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAwsNodePoolRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface CreateAwsNodePoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.CreateAwsNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequest.java index 64865b447643..eb532fe541c8 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.CreateAzureClientRequest} */ +@java.lang.Deprecated public final class CreateAzureClientRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.CreateAzureClientRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequestOrBuilder.java index e4c5259c7c3a..1a502cf01c4e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClientRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface CreateAzureClientRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.CreateAzureClientRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequest.java index fd19738b1d15..0f782972bf13 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.CreateAzureClusterRequest} */ +@java.lang.Deprecated public final class CreateAzureClusterRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.CreateAzureClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequestOrBuilder.java index 77e9c2e51953..4bc5172e8bc6 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureClusterRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface CreateAzureClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.CreateAzureClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequest.java index 39c0f8ed78fb..eb1621e5bd55 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest} */ +@java.lang.Deprecated public final class CreateAzureNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequestOrBuilder.java index 1b1d549c3899..38cefb560dd3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/CreateAzureNodePoolRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface CreateAzureNodePoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.CreateAzureNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequest.java index a68fe584eec9..47b5ccee9569 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest} */ +@java.lang.Deprecated public final class DeleteAwsClusterRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequestOrBuilder.java index 2abffd61adcb..ba305af613eb 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsClusterRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface DeleteAwsClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.DeleteAwsClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequest.java index c41ffef3e432..0270c6fe2dbe 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest} */ +@java.lang.Deprecated public final class DeleteAwsNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequestOrBuilder.java index 65ba6638ca7c..f64ef94a06ad 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAwsNodePoolRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface DeleteAwsNodePoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.DeleteAwsNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequest.java index 064a2d3db886..67f0ad0fbf3e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAzureClientRequest} */ +@java.lang.Deprecated public final class DeleteAzureClientRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.DeleteAzureClientRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequestOrBuilder.java index 602af5f5e0a0..c76ec21d8584 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClientRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface DeleteAzureClientRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.DeleteAzureClientRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequest.java index c8f6f4ea3a59..b5e647a4eb22 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest} */ +@java.lang.Deprecated public final class DeleteAzureClusterRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequestOrBuilder.java index 126c28db9898..e4b4c10dc351 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureClusterRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface DeleteAzureClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.DeleteAzureClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequest.java index 1ddc2cce6d5c..7b0e69cbd8a7 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest} */ +@java.lang.Deprecated public final class DeleteAzureNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequestOrBuilder.java index 4b843db41ff0..0a0f4ea0d405 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/DeleteAzureNodePoolRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface DeleteAzureNodePoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.DeleteAzureNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterAgentTokenResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterAgentTokenResponse.java index 3297efd10ddc..a31bd749e35e 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterAgentTokenResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterAgentTokenResponse.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private volatile java.lang.Object accessToken_ = ""; /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The accessToken. */ @@ -84,7 +84,7 @@ public java.lang.String getAccessToken() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The bytes for accessToken. */ @@ -105,7 +105,7 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { private int expiresIn_ = 0; /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return The expiresIn. */ @@ -120,7 +120,7 @@ public int getExpiresIn() { private volatile java.lang.Object tokenType_ = ""; /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The tokenType. */ @@ -138,7 +138,7 @@ public java.lang.String getTokenType() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The bytes for tokenType. */ @@ -560,7 +560,7 @@ public Builder mergeFrom( private java.lang.Object accessToken_ = ""; /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The accessToken. */ @@ -577,7 +577,7 @@ public java.lang.String getAccessToken() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The bytes for accessToken. */ @@ -594,7 +594,7 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @param value The accessToken to set. * @return This builder for chaining. @@ -610,7 +610,7 @@ public Builder setAccessToken(java.lang.String value) { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return This builder for chaining. */ @@ -622,7 +622,7 @@ public Builder clearAccessToken() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @param value The bytes for accessToken to set. * @return This builder for chaining. @@ -641,7 +641,7 @@ public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { private int expiresIn_; /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return The expiresIn. */ @@ -651,7 +651,7 @@ public int getExpiresIn() { } /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @param value The expiresIn to set. * @return This builder for chaining. @@ -665,7 +665,7 @@ public Builder setExpiresIn(int value) { } /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return This builder for chaining. */ @@ -679,7 +679,7 @@ public Builder clearExpiresIn() { private java.lang.Object tokenType_ = ""; /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The tokenType. */ @@ -696,7 +696,7 @@ public java.lang.String getTokenType() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The bytes for tokenType. */ @@ -713,7 +713,7 @@ public com.google.protobuf.ByteString getTokenTypeBytes() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @param value The tokenType to set. * @return This builder for chaining. @@ -729,7 +729,7 @@ public Builder setTokenType(java.lang.String value) { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return This builder for chaining. */ @@ -741,7 +741,7 @@ public Builder clearTokenType() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @param value The bytes for tokenType to set. * @return This builder for chaining. diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterAgentTokenResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterAgentTokenResponseOrBuilder.java index e98b99574880..155938d6c473 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterAgentTokenResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAttachedClusterAgentTokenResponseOrBuilder.java @@ -25,35 +25,35 @@ public interface GenerateAttachedClusterAgentTokenResponseOrBuilder com.google.protobuf.MessageOrBuilder { /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The accessToken. */ java.lang.String getAccessToken(); /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The bytes for accessToken. */ com.google.protobuf.ByteString getAccessTokenBytes(); /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return The expiresIn. */ int getExpiresIn(); /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The tokenType. */ java.lang.String getTokenType(); /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The bytes for tokenType. */ diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequest.java index 13229014d599..db01c2a40dfc 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest} */ +@java.lang.Deprecated public final class GenerateAwsAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequestOrBuilder.java index 27f8827b7856..ebdd7311dfe8 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GenerateAwsAccessTokenRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenResponse.java index a8ab3aea4713..3e88ea5071f9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenResponse.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse} */ +@java.lang.Deprecated public final class GenerateAwsAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenResponseOrBuilder.java index 2fc698f6e5c9..7838c8e9f7eb 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsAccessTokenResponseOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GenerateAwsAccessTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAwsAccessTokenResponse) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenRequest.java index a7244e866bba..2f92a1009ce8 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenRequest.java @@ -20,6 +20,7 @@ package com.google.cloud.gkemulticloud.v1; /** Protobuf type {@code google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest} */ +@java.lang.Deprecated public final class GenerateAwsClusterAgentTokenRequest extends com.google.protobuf.GeneratedMessageV3 implements diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenRequestOrBuilder.java index 8464ce801a70..63599a21960c 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GenerateAwsClusterAgentTokenRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenResponse.java index 86ab20901138..bd83eb713f46 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenResponse.java @@ -20,6 +20,7 @@ package com.google.cloud.gkemulticloud.v1; /** Protobuf type {@code google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenResponse} */ +@java.lang.Deprecated public final class GenerateAwsClusterAgentTokenResponse extends com.google.protobuf.GeneratedMessageV3 implements @@ -65,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private volatile java.lang.Object accessToken_ = ""; /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The accessToken. */ @@ -83,7 +84,7 @@ public java.lang.String getAccessToken() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The bytes for accessToken. */ @@ -104,7 +105,7 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { private int expiresIn_ = 0; /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return The expiresIn. */ @@ -119,7 +120,7 @@ public int getExpiresIn() { private volatile java.lang.Object tokenType_ = ""; /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The tokenType. */ @@ -137,7 +138,7 @@ public java.lang.String getTokenType() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The bytes for tokenType. */ @@ -548,7 +549,7 @@ public Builder mergeFrom( private java.lang.Object accessToken_ = ""; /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The accessToken. */ @@ -565,7 +566,7 @@ public java.lang.String getAccessToken() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The bytes for accessToken. */ @@ -582,7 +583,7 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @param value The accessToken to set. * @return This builder for chaining. @@ -598,7 +599,7 @@ public Builder setAccessToken(java.lang.String value) { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return This builder for chaining. */ @@ -610,7 +611,7 @@ public Builder clearAccessToken() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @param value The bytes for accessToken to set. * @return This builder for chaining. @@ -629,7 +630,7 @@ public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { private int expiresIn_; /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return The expiresIn. */ @@ -639,7 +640,7 @@ public int getExpiresIn() { } /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @param value The expiresIn to set. * @return This builder for chaining. @@ -653,7 +654,7 @@ public Builder setExpiresIn(int value) { } /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return This builder for chaining. */ @@ -667,7 +668,7 @@ public Builder clearExpiresIn() { private java.lang.Object tokenType_ = ""; /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The tokenType. */ @@ -684,7 +685,7 @@ public java.lang.String getTokenType() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The bytes for tokenType. */ @@ -701,7 +702,7 @@ public com.google.protobuf.ByteString getTokenTypeBytes() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @param value The tokenType to set. * @return This builder for chaining. @@ -717,7 +718,7 @@ public Builder setTokenType(java.lang.String value) { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return This builder for chaining. */ @@ -729,7 +730,7 @@ public Builder clearTokenType() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @param value The bytes for tokenType to set. * @return This builder for chaining. diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenResponseOrBuilder.java index 56ae1bddeaf8..4a9350c2c855 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAwsClusterAgentTokenResponseOrBuilder.java @@ -19,41 +19,42 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GenerateAwsClusterAgentTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAwsClusterAgentTokenResponse) com.google.protobuf.MessageOrBuilder { /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The accessToken. */ java.lang.String getAccessToken(); /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The bytes for accessToken. */ com.google.protobuf.ByteString getAccessTokenBytes(); /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return The expiresIn. */ int getExpiresIn(); /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The tokenType. */ java.lang.String getTokenType(); /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The bytes for tokenType. */ diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequest.java index 6e0a5bf3d41d..79d87da8c814 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest} */ +@java.lang.Deprecated public final class GenerateAzureAccessTokenRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequestOrBuilder.java index cfbe3adca6e3..7cd3d69e0901 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GenerateAzureAccessTokenRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenResponse.java index f4e5f36f683e..e5fff30f9964 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenResponse.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse} */ +@java.lang.Deprecated public final class GenerateAzureAccessTokenResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenResponseOrBuilder.java index 08ee4978b6d1..e725266bd231 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureAccessTokenResponseOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GenerateAzureAccessTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAzureAccessTokenResponse) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenRequest.java index 819e0bb0ac39..b36a146a9b20 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenRequest.java @@ -20,6 +20,7 @@ package com.google.cloud.gkemulticloud.v1; /** Protobuf type {@code google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenRequest} */ +@java.lang.Deprecated public final class GenerateAzureClusterAgentTokenRequest extends com.google.protobuf.GeneratedMessageV3 implements diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenRequestOrBuilder.java index d524117a5f83..4ac74a77a817 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GenerateAzureClusterAgentTokenRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenResponse.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenResponse.java index e24010d0786e..cd5404cce9d9 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenResponse.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenResponse.java @@ -20,6 +20,7 @@ package com.google.cloud.gkemulticloud.v1; /** Protobuf type {@code google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenResponse} */ +@java.lang.Deprecated public final class GenerateAzureClusterAgentTokenResponse extends com.google.protobuf.GeneratedMessageV3 implements @@ -65,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private volatile java.lang.Object accessToken_ = ""; /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The accessToken. */ @@ -83,7 +84,7 @@ public java.lang.String getAccessToken() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The bytes for accessToken. */ @@ -104,7 +105,7 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { private int expiresIn_ = 0; /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return The expiresIn. */ @@ -119,7 +120,7 @@ public int getExpiresIn() { private volatile java.lang.Object tokenType_ = ""; /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The tokenType. */ @@ -137,7 +138,7 @@ public java.lang.String getTokenType() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The bytes for tokenType. */ @@ -551,7 +552,7 @@ public Builder mergeFrom( private java.lang.Object accessToken_ = ""; /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The accessToken. */ @@ -568,7 +569,7 @@ public java.lang.String getAccessToken() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The bytes for accessToken. */ @@ -585,7 +586,7 @@ public com.google.protobuf.ByteString getAccessTokenBytes() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @param value The accessToken to set. * @return This builder for chaining. @@ -601,7 +602,7 @@ public Builder setAccessToken(java.lang.String value) { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return This builder for chaining. */ @@ -613,7 +614,7 @@ public Builder clearAccessToken() { } /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @param value The bytes for accessToken to set. * @return This builder for chaining. @@ -632,7 +633,7 @@ public Builder setAccessTokenBytes(com.google.protobuf.ByteString value) { private int expiresIn_; /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return The expiresIn. */ @@ -642,7 +643,7 @@ public int getExpiresIn() { } /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @param value The expiresIn to set. * @return This builder for chaining. @@ -656,7 +657,7 @@ public Builder setExpiresIn(int value) { } /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return This builder for chaining. */ @@ -670,7 +671,7 @@ public Builder clearExpiresIn() { private java.lang.Object tokenType_ = ""; /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The tokenType. */ @@ -687,7 +688,7 @@ public java.lang.String getTokenType() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The bytes for tokenType. */ @@ -704,7 +705,7 @@ public com.google.protobuf.ByteString getTokenTypeBytes() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @param value The tokenType to set. * @return This builder for chaining. @@ -720,7 +721,7 @@ public Builder setTokenType(java.lang.String value) { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return This builder for chaining. */ @@ -732,7 +733,7 @@ public Builder clearTokenType() { } /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @param value The bytes for tokenType to set. * @return This builder for chaining. diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenResponseOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenResponseOrBuilder.java index 1a0ece2083dd..513d071c792f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenResponseOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GenerateAzureClusterAgentTokenResponseOrBuilder.java @@ -19,41 +19,42 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GenerateAzureClusterAgentTokenResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GenerateAzureClusterAgentTokenResponse) com.google.protobuf.MessageOrBuilder { /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The accessToken. */ java.lang.String getAccessToken(); /** - * string access_token = 1; + * string access_token = 1 [json_name = "access_token"]; * * @return The bytes for accessToken. */ com.google.protobuf.ByteString getAccessTokenBytes(); /** - * int32 expires_in = 2; + * int32 expires_in = 2 [json_name = "expires_in"]; * * @return The expiresIn. */ int getExpiresIn(); /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The tokenType. */ java.lang.String getTokenType(); /** - * string token_type = 3; + * string token_type = 3 [json_name = "token_type"]; * * @return The bytes for tokenType. */ diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequest.java index 203979365044..543123652453 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAwsClusterRequest} */ +@java.lang.Deprecated public final class GetAwsClusterRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAwsClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequestOrBuilder.java index 3a4ef428794f..cff2aa652344 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsClusterRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAwsClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAwsClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsJsonWebKeysRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsJsonWebKeysRequest.java index 1d680a99d1c2..766ba30257c1 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsJsonWebKeysRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsJsonWebKeysRequest.java @@ -31,6 +31,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest} */ +@java.lang.Deprecated public final class GetAwsJsonWebKeysRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsJsonWebKeysRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsJsonWebKeysRequestOrBuilder.java index edbfd104a0c3..2f58bf879554 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsJsonWebKeysRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsJsonWebKeysRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAwsJsonWebKeysRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAwsJsonWebKeysRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequest.java index 86b659cb190c..e10ae370b380 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest} */ +@java.lang.Deprecated public final class GetAwsNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequestOrBuilder.java index 2fa05f7ce892..d4e20866e818 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsNodePoolRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAwsNodePoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAwsNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsOpenIdConfigRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsOpenIdConfigRequest.java index 91bfcd50e86c..a81470dec25c 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsOpenIdConfigRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsOpenIdConfigRequest.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest} */ +@java.lang.Deprecated public final class GetAwsOpenIdConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsOpenIdConfigRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsOpenIdConfigRequestOrBuilder.java index 9bcca9601d96..3bdd3f31d895 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsOpenIdConfigRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsOpenIdConfigRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAwsOpenIdConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAwsOpenIdConfigRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequest.java index afdd936ba3f2..14f277215fc1 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest} */ +@java.lang.Deprecated public final class GetAwsServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequestOrBuilder.java index 67378804270d..6d7655670d6b 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAwsServerConfigRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAwsServerConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAwsServerConfigRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequest.java index 5d9c00d81a0e..2e77e50606a2 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAzureClientRequest} */ +@java.lang.Deprecated public final class GetAzureClientRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAzureClientRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequestOrBuilder.java index af1850bfeb51..c77c64817c3c 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClientRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAzureClientRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAzureClientRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequest.java index b6c88a557cb8..de77f0982f3f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAzureClusterRequest} */ +@java.lang.Deprecated public final class GetAzureClusterRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAzureClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequestOrBuilder.java index 08618681f4d9..07dbd5d4af1c 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureClusterRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAzureClusterRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAzureClusterRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureJsonWebKeysRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureJsonWebKeysRequest.java index 558105fcd409..edafb9646e8b 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureJsonWebKeysRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureJsonWebKeysRequest.java @@ -31,6 +31,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest} */ +@java.lang.Deprecated public final class GetAzureJsonWebKeysRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureJsonWebKeysRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureJsonWebKeysRequestOrBuilder.java index fdb0fe53d797..4859b8523a74 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureJsonWebKeysRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureJsonWebKeysRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAzureJsonWebKeysRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAzureJsonWebKeysRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequest.java index 71b4a9e93385..a9641c57b247 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest} */ +@java.lang.Deprecated public final class GetAzureNodePoolRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequestOrBuilder.java index 38e962b84e9e..5e962f56f02f 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureNodePoolRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAzureNodePoolRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAzureNodePoolRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureOpenIdConfigRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureOpenIdConfigRequest.java index f2b6e4eb52d9..e0f7ef0a7e22 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureOpenIdConfigRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureOpenIdConfigRequest.java @@ -29,6 +29,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest} */ +@java.lang.Deprecated public final class GetAzureOpenIdConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureOpenIdConfigRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureOpenIdConfigRequestOrBuilder.java index ded2a36e6c31..d02fcef12725 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureOpenIdConfigRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureOpenIdConfigRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAzureOpenIdConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAzureOpenIdConfigRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequest.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequest.java index 7a20cd47df47..3809d8593ba3 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequest.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequest.java @@ -28,6 +28,7 @@ * * Protobuf type {@code google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest} */ +@java.lang.Deprecated public final class GetAzureServerConfigRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequestOrBuilder.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequestOrBuilder.java index 13fff97742a8..84f34a4ddb6b 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequestOrBuilder.java +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/GetAzureServerConfigRequestOrBuilder.java @@ -19,6 +19,7 @@ // Protobuf Java Version: 3.25.8 package com.google.cloud.gkemulticloud.v1; +@java.lang.Deprecated public interface GetAzureServerConfigRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.gkemulticloud.v1.GetAzureServerConfigRequest) diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/Label.java b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/Label.java new file mode 100644 index 000000000000..029fa61887fe --- /dev/null +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/src/main/java/com/google/cloud/gkemulticloud/v1/Label.java @@ -0,0 +1,823 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/gkemulticloud/v1/attached_resources.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.gkemulticloud.v1; + +/** + * + * + *
+ * Label defines the additional fields for labels for pods created by
+ * auto-installed components.
+ * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.Label} + */ +public final class Label extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.gkemulticloud.v1.Label) + LabelOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Label.newBuilder() to construct. + private Label(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Label() { + key_ = ""; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Label(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_Label_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_Label_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.Label.class, + com.google.cloud.gkemulticloud.v1.Label.Builder.class); + } + + public static final int KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+   * This is the key of the label.
+   * 
+ * + * string key = 1; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } + } + + /** + * + * + *
+   * This is the key of the label.
+   * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + + /** + * + * + *
+   * This is the value of the label.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + + /** + * + * + *
+   * This is the value of the label.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = 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(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + 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(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + 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.gkemulticloud.v1.Label)) { + return super.equals(obj); + } + com.google.cloud.gkemulticloud.v1.Label other = (com.google.cloud.gkemulticloud.v1.Label) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.gkemulticloud.v1.Label parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.Label 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.gkemulticloud.v1.Label parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.Label parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.Label parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.gkemulticloud.v1.Label parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.gkemulticloud.v1.Label parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.Label 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.gkemulticloud.v1.Label parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.Label 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.gkemulticloud.v1.Label parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.gkemulticloud.v1.Label 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.gkemulticloud.v1.Label 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; + } + + /** + * + * + *
+   * Label defines the additional fields for labels for pods created by
+   * auto-installed components.
+   * 
+ * + * Protobuf type {@code google.cloud.gkemulticloud.v1.Label} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.gkemulticloud.v1.Label) + com.google.cloud.gkemulticloud.v1.LabelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_Label_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_Label_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.gkemulticloud.v1.Label.class, + com.google.cloud.gkemulticloud.v1.Label.Builder.class); + } + + // Construct using com.google.cloud.gkemulticloud.v1.Label.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.gkemulticloud.v1.AttachedResourcesProto + .internal_static_google_cloud_gkemulticloud_v1_Label_descriptor; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.Label getDefaultInstanceForType() { + return com.google.cloud.gkemulticloud.v1.Label.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.Label build() { + com.google.cloud.gkemulticloud.v1.Label result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.gkemulticloud.v1.Label buildPartial() { + com.google.cloud.gkemulticloud.v1.Label result = + new com.google.cloud.gkemulticloud.v1.Label(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.gkemulticloud.v1.Label result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + + @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.gkemulticloud.v1.Label) { + return mergeFrom((com.google.cloud.gkemulticloud.v1.Label) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.gkemulticloud.v1.Label other) { + if (other == com.google.cloud.gkemulticloud.v1.Label.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object key_ = ""; + + /** + * + * + *
+     * This is the key of the label.
+     * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This is the key of the label.
+     * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * This is the key of the label.
+     * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * This is the key of the label.
+     * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * This is the key of the label.
+     * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + + /** + * + * + *
+     * This is the value of the label.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * This is the value of the label.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * This is the value of the label.
+     * 
+ * + * string value = 2; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * This is the value of the label.
+     * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * This is the value of the label.
+     * 
+ * + * string value = 2; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.gkemulticloud.v1.Label) + } + + // @@protoc_insertion_point(class_scope:google.cloud.gkemulticloud.v1.Label) + private static final com.google.cloud.gkemulticloud.v1.Label DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.gkemulticloud.v1.Label(); + } + + public static com.google.cloud.gkemulticloud.v1.Label getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser